summaryrefslogtreecommitdiff
path: root/src/vk
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2022-09-23 10:58:25 -0300
committerFrederico Linhares <fred@linhares.blue>2022-09-23 10:58:25 -0300
commit28de1fe8713aba2c4bb23fc8640adb2747373b66 (patch)
tree20acc92f084a0833293651a9127d3c20271e8d70 /src/vk
parent78db82c0dac8db90a3de1004e5428f225947b2b9 (diff)
refa Use Vulkan coordinates instead of OpenGL
Diffstat (limited to 'src/vk')
-rw-r--r--src/vk/graphics_pipeline_3d.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vk/graphics_pipeline_3d.cpp b/src/vk/graphics_pipeline_3d.cpp
index fbf5b80..eb86401 100644
--- a/src/vk/graphics_pipeline_3d.cpp
+++ b/src/vk/graphics_pipeline_3d.cpp
@@ -627,7 +627,6 @@ GraphicsPipeline3D::draw(
glm::radians(45.0f),
view->region.z / view->region.w,
0.1f, 100.0f);
- ubo_view_3d.proj[1][1] *= -1;
view->ub_3d[image_index].copy_data(&ubo_view_3d);
}
@@ -640,7 +639,7 @@ GraphicsPipeline3D::draw(
UBOWorld3D_Frag ubo_world_3d_frag{};
ubo_world_3d_frag.directional_light_direction =
- glm::vec3{-0.57735, -0.57735, -0.57735};
+ glm::vec3{-0.57735, 0.57735, -0.57735};
ubo_world_3d_frag.directional_light_color = glm::vec4{0.8, 0.8, 0.8, 1.0};
this->ub_world_frag[image_index].copy_data(&ubo_world_3d_frag);
}