Changeset 5ab1b20 in opengl-game for vulkan-game.cpp
- Timestamp:
- Nov 18, 2019, 9:41:39 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 15104a8
- Parents:
- 5a0242e
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.