From cbd03a41a76d5b900fd5ba544badc1806fef9520 Mon Sep 17 00:00:00 2001 From: Yvain Douard Date: Fri, 10 May 2024 15:20:24 +0200 Subject: [PATCH] don't clamp radiance. --- Shaders/voxel_temporal/voxel_temporal.comp.glsl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Shaders/voxel_temporal/voxel_temporal.comp.glsl b/Shaders/voxel_temporal/voxel_temporal.comp.glsl index 38080a79f..3789d5a85 100644 --- a/Shaders/voxel_temporal/voxel_temporal.comp.glsl +++ b/Shaders/voxel_temporal/voxel_temporal.comp.glsl @@ -237,9 +237,8 @@ void main() { vec4 trace = traceDiffuse(wposition, wnormal, voxelsSampler, clipmaps); vec3 indirect = trace.rgb + envl.rgb * (1.0 - trace.a); - radiance.rgb *= light.rgb / PI + indirect.rgb; + radiance.rgb *= light.rgb + indirect.rgb; radiance.rgb += emission.rgb; - radiance = clamp(radiance, vec4(0.0), vec4(1.0)); #else opac = float(imageLoad(voxels, src)) / 255;