summaryrefslogtreecommitdiff
path: root/src/vk/renderer.cpp
diff options
context:
space:
mode:
authorFrederico Linhares <fred@linhares.blue>2023-09-30 16:35:55 -0300
committerFrederico Linhares <fred@linhares.blue>2023-09-30 16:35:55 -0300
commite5b15b871f0cf73563431565a492d9ae3e92e35b (patch)
tree34582bf9495d60636888e7d271aef919122beab6 /src/vk/renderer.cpp
parent8b7b509077c52093a9fa936c0462248a24646c90 (diff)
refa Remove redundant descriptor sets
* src/vk/light.hpp: Move to this class, the descriptor sets used for lighting by the 3D graphics pipelines.
Diffstat (limited to 'src/vk/renderer.cpp')
-rw-r--r--src/vk/renderer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vk/renderer.cpp b/src/vk/renderer.cpp
index 3daeee7..3497db9 100644
--- a/src/vk/renderer.cpp
+++ b/src/vk/renderer.cpp
@@ -212,7 +212,7 @@ Renderer::draw()
UDOWorld3D_Vert ubo_world_3d_vert{};
ubo_world_3d_vert.ambient_light_color =
glm::vec4{0.25, 0.25, 0.25, 1.0};
- cg_core.vk_graphics_pipeline_3d->ub_world_vert[image_index].copy_data(
+ cg_core.vk_light->ub_world_vert[image_index].copy_data(
&ubo_world_3d_vert);
UDOWorld3D_Frag ubo_world_3d_frag{};
@@ -220,7 +220,7 @@ Renderer::draw()
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};
- cg_core.vk_graphics_pipeline_3d->ub_world_frag[image_index].copy_data(
+ cg_core.vk_light->ub_world_frag[image_index].copy_data(
&ubo_world_3d_frag);
}