Skip to content

Commit

Permalink
fix voxelsLight not defined with AO
Browse files Browse the repository at this point in the history
  • Loading branch information
e2002e committed Jul 28, 2024
1 parent baf8416 commit 0608545
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Shaders/voxel_temporal/voxel_temporal.comp.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,13 @@ void main() {
#endif
#endif

#ifdef _VoxelGI
vec3 light = vec3(0.0);
light.r = float(imageLoad(voxelsLight, ivec3(gl_GlobalInvocationID.xyz))) / 255;
light.g = float(imageLoad(voxelsLight, ivec3(gl_GlobalInvocationID.xyz) + ivec3(0, 0, voxelgiResolution.x))) / 255;
light.b = float(imageLoad(voxelsLight, ivec3(gl_GlobalInvocationID.xyz) + ivec3(0, 0, voxelgiResolution.x * 2))) / 255;
light /= 3;
#endif

for (int i = 0; i < 6 + DIFFUSE_CONE_COUNT; i++)
{
Expand Down

0 comments on commit 0608545

Please sign in to comment.