Clip the rays instead of shrinking them

This commit is contained in:
Guillaume Meunier
2024-11-01 14:13:58 +01:00
parent a5fda396b9
commit 1d9db26a6b
11 changed files with 99 additions and 78 deletions
+1 -1
View File
@@ -49,7 +49,6 @@ struct pipeline_info
// Specialization constants data
int32_t nb_texcoords = 2;
int32_t nb_clipping = 1;
VkBool32 dithering = true;
VkBool32 alpha_cutout = false;
VkBool32 skinning = false;
@@ -151,6 +150,7 @@ class scene_renderer
glm::mat4 model;
glm::mat4 modelview;
glm::mat4 modelviewproj;
std::array<glm::vec4, 4> clipping_planes;
};
struct per_frame_resources