Mercurial > games > semicongine
comparison tests/test_gltf.nim @ 1279:e0ba4aead324
merge
author | sam <sam@basx.dev> |
---|---|
date | Mon, 29 Jul 2024 15:43:44 +0700 |
parents | 772bb32c4368 01138e6257dd |
children | c09cdff9a97e |
comparison
equal
deleted
inserted
replaced
1278:772bb32c4368 | 1279:e0ba4aead324 |
---|---|
175 camPos += camDirSide * sideward * dt | 175 camPos += camDirSide * sideward * dt |
176 | 176 |
177 let view = Rotate(-camPitch, X) * Rotate(-camYaw, Y) * Translate(-camPos) | 177 let view = Rotate(-camPitch, X) * Rotate(-camYaw, Y) * Translate(-camPos) |
178 descriptors.data.camera.data.view = view | 178 descriptors.data.camera.data.view = view |
179 descriptors.data.camera.data.normal = view | 179 descriptors.data.camera.data.normal = view |
180 descriptors.data.camera.data.projection = Perspective(PI / 2, aspect = GetAspectRatio(), zNear = 0.01, zFar = 20) | 180 descriptors.data.camera.data.projection = Projection(PI / 2, aspect = GetAspectRatio(), zNear = 0.01, zFar = 20) |
181 | 181 |
182 UpdateGPUBuffer(descriptors.data.camera) | 182 UpdateGPUBuffer(descriptors.data.camera) |
183 | 183 |
184 WithNextFrame(framebuffer, commandbuffer): | 184 WithNextFrame(framebuffer, commandbuffer): |
185 | 185 |