From eb6fc926be7f29d6d92f238146180d510d69c79e Mon Sep 17 00:00:00 2001 From: Frederico Linhares Date: Thu, 11 Aug 2022 15:46:36 -0300 Subject: feat Create directional light --- src/vk/graphics_pipeline.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/vk/graphics_pipeline.hpp') diff --git a/src/vk/graphics_pipeline.hpp b/src/vk/graphics_pipeline.hpp index c7cc0a0..dffd6fb 100644 --- a/src/vk/graphics_pipeline.hpp +++ b/src/vk/graphics_pipeline.hpp @@ -34,7 +34,7 @@ namespace VK struct GraphicsPipeline { VkDescriptorSetLayout descriptor_set_layout_model_instance; - VkDescriptorSetLayout descriptor_set_layout_view_projection; + VkDescriptorSetLayout descriptor_set_layout_world_view; VkPipelineLayout pipeline_layout; // Depth image. @@ -44,9 +44,10 @@ struct GraphicsPipeline // FIXME: if this vector get resized, it will cause a segmentation fault! std::vector ub_view_projection; + std::vector ub_directional_light; VkDescriptorPool descriptor_pool; - std::vector view_projection_descriptor_sets; + std::vector world_view_descriptor_sets; VkRenderPass render_pass; std::vector swapchain_framebuffers; -- cgit v1.2.3