diff --git a/wavefront.cl b/wavefront.cl index da28819..d881085 100644 --- a/wavefront.cl +++ b/wavefront.cl @@ -187,7 +187,7 @@ void kernel Shade( global float4* accumulator, float2 noise0 = Noise( pixelIdx % height, pixelIdx / height, sampleIdx * 2 ); float2 noise1 = Noise( pixelIdx % height, pixelIdx / height, sampleIdx * 2 + 1 ); r0 = noise0.x, r1 = noise0.y; - r2 = noise0.x, r3 = noise0.y; + r2 = noise1.x, r3 = noise1.y; } else { diff --git a/wavefront2.cl b/wavefront2.cl index 1cc1349..f1ab312 100644 --- a/wavefront2.cl +++ b/wavefront2.cl @@ -213,7 +213,7 @@ void kernel Shade( global float4* accumulator, float2 noise0 = Noise( pixelIdx % height, pixelIdx / height, sampleIdx * 2 ); float2 noise1 = Noise( pixelIdx % height, pixelIdx / height, sampleIdx * 2 + 1 ); r0 = noise0.x, r1 = noise0.y; - r2 = noise0.x, r3 = noise0.y; + r2 = noise1.x, r3 = noise1.y; } else {