aboutsummaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 142a8e1..792b99f 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -1700,13 +1700,10 @@ static int main_graphical() {
// update uniform buffer
{
// TODO: should use push constants
- // TODO: we shouldn't have to transpose, we could change the Matrix4 implementation to
- // make all operation on transpose, which wouldn't change anything for the software
- // renderer
engine::vk::UniformBufferObject ubo {
- .model = Matrix4::rot_z(time * PI / 2.f).transpose(),
- .view = Matrix4::look_at(Vector3(2.f, 2.f, 2.f), Vector3(0.f, 0.f, 0.f), Vector3(0.f, 0.f, 1.f)).transpose(),
- .proj = Matrix4::perspective(PI / 4.f, static_cast<float>(swapchain_extent.width) / static_cast<float>(swapchain_extent.height), .1f, 10.f).transpose(),
+ .model = Matrix4::rot_z(time * PI / 2.f),
+ .view = Matrix4::look_at(Vector3(2.f, 2.f, 2.f), Vector3(0.f, 0.f, 0.f), Vector3(0.f, 0.f, 1.f)),
+ .proj = Matrix4::perspective(PI / 4.f, static_cast<float>(swapchain_extent.width) / static_cast<float>(swapchain_extent.height), .1f, 10.f),
};
memcpy(uniform_buf_mems[frame_idx], &ubo, sizeof(engine::vk::UniformBufferObject));
}