diff options
Diffstat (limited to 'shaders')
| -rw-r--r-- | shaders/compute.comp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shaders/compute.comp b/shaders/compute.comp index c8257cf..6ca193e 100644 --- a/shaders/compute.comp +++ b/shaders/compute.comp @@ -270,6 +270,9 @@ ray generate_camera_ray(ivec2 coords, uint seed) { } void main() { + if (any(greaterThanEqual(gl_GlobalInvocationID.xy, uvec2(bufs.scene.width, bufs.scene.height)))) + return; + ivec2 coords = ivec2(gl_GlobalInvocationID.xy) * bufs.scene.downscale_factor; uint seed = uint(coords.x * uint(1973) + coords.y * uint(9277) + bufs.scene.sample_index * uint(26699)) | uint(1); |
