Skip to content

Commit

Permalink
Merge pull request #120 from knnyism/main
Browse files Browse the repository at this point in the history
Fix r2 and r3 using the incorrect noise variable.
  • Loading branch information
jbikker authored Feb 21, 2025
2 parents 5ab6e68 + 82b7787 commit 89c7bb0
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 89c7bb0

Please sign in to comment.