From 30584f7b4bd401f6535d20771bc5a03526c3a8f0 Mon Sep 17 00:00:00 2001 From: sw-52 <79641713+sw-52@users.noreply.github.com> Date: Wed, 29 May 2024 20:54:41 +0200 Subject: [PATCH] Fix stained glass panes not tinting light --- shaders/include/light/lpv/voxelization.glsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shaders/include/light/lpv/voxelization.glsl b/shaders/include/light/lpv/voxelization.glsl index 705c6c75..70e87f18 100644 --- a/shaders/include/light/lpv/voxelization.glsl +++ b/shaders/include/light/lpv/voxelization.glsl @@ -26,8 +26,9 @@ bool is_voxelized(uint block_id, bool vertex_at_grid_corner) { block_id == 80u; // Miscellaneous transparent bool is_light_emitting_block = 32u <= block_id && block_id < 64u; + bool is_light_tinting_block = 64u <= block_id && block_id < 80u; - return (vertex_at_grid_corner || is_light_emitting_block) && is_terrain && !is_transparent_block; + return (vertex_at_grid_corner || is_light_emitting_block || is_light_tinting_block) && is_terrain && !is_transparent_block; } bvec3 disjunction(bvec3 a, bvec3 b) {