Changeset 5ab1b20 in opengl-game
- Timestamp:
- Nov 18, 2019, 9:41:39 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 15104a8
- Parents:
- 5a0242e
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
r5a0242e r5ab1b20 1005 1005 ubo.model = rotate(mat4(1.0f), time * radians(90.0f), vec3(0.0f, 0.0f, 1.0f)); 1006 1006 ubo.view = lookAt(vec3(0.0f, 2.0f, 2.0f), vec3(0.0f, 0.0f, 0.0f), vec3(0.0f, 1.0f, 0.0f)); 1007 ubo.proj = perspective(radians( 45.0f), swapChainExtent.width / (float)swapChainExtent.height, 0.1f, 10.0f);1007 ubo.proj = perspective(radians(FOV_ANGLE), (float)swapChainExtent.width / (float)swapChainExtent.height, NEAR_CLIP, FAR_CLIP); 1008 1008 ubo.proj[1][1] *= -1; // flip the y-axis so that +y is up 1009 1009 -
vulkan-game.hpp
r5a0242e r5ab1b20 35 35 private: 36 36 const int MAX_FRAMES_IN_FLIGHT; 37 38 const float NEAR_CLIP = 0.1f; 39 const float FAR_CLIP = 100.0f; 40 const float FOV_ANGLE = 67.0f; 37 41 38 42 GameGui* gui;
Note:
See TracChangeset
for help on using the changeset viewer.