Skip to content

Commit

Permalink
Saturate final color value.
Browse files Browse the repository at this point in the history
  • Loading branch information
kugimasa committed Aug 23, 2023
1 parent 6c0b790 commit 1d3447b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions resources/shader/compute-sample.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,6 @@ fn compute_sample(@builtin(global_invocation_id) invocation_id: vec3<u32>) {
}
col += max(path.col, kZero) / f32(kSPP);
}
col = max(col, kZero);
textureStore(frameBuffer, invocation_id.xy, vec4(col, 1.0));
textureStore(frameBuffer, invocation_id.xy, vec4(saturate(col), 1.0));
}
}

0 comments on commit 1d3447b

Please sign in to comment.