comparison tests/test_gltf.nim @ 1277:01138e6257dd

did: fix a few things
author sam <sam@basx.dev>
date Mon, 29 Jul 2024 15:04:52 +0700
parents 4cf9872f7bb6
children e0ba4aead324 a89a70ea3da2
comparison
equal deleted inserted replaced
1276:b5fb00760162 1277:01138e6257dd
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