Skip to content

Commit

Permalink
don't clamp radiance.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvain Douard committed May 10, 2024
1 parent dd3779a commit cbd03a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Shaders/voxel_temporal/voxel_temporal.comp.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cbd03a4

Please sign in to comment.