Skip to content

Commit

Permalink
clamp return color.
Browse files Browse the repository at this point in the history
  • Loading branch information
kugimasa committed Aug 21, 2023
1 parent efe6590 commit 6c0b790
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/shader/compute-sample.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ 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));
}
}

0 comments on commit 6c0b790

Please sign in to comment.