Skip to content

Commit

Permalink
Fix r2 and r3 using the incorrect noise variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oktay Can Işmar committed Feb 21, 2025
1 parent 5ab6e68 commit 82b7787
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wavefront.cl
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion wavefront2.cl
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 82b7787

Please sign in to comment.