Skip to content

Commit

Permalink
Remove temporary workaround (revert #338) (#346)
Browse files Browse the repository at this point in the history
gpuweb/gpuweb#4415 has been resolved and the workaround is not needed.
Restore the original code.
  • Loading branch information
ben-clayton authored Jan 11, 2024
1 parent 85beeda commit 0721d17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sample/cornell/common.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ fn rand() -> f32 {
7919 * 631 * 5 * 3);

rnd = (rnd * C) ^ (rnd.yzx >> vec3(4u));
return f32(rnd.x ^ rnd.y) / 4294967295.0; // 4294967295.0 is f32(0xffffffff). See #337
return f32(rnd.x ^ rnd.y) / f32(0xffffffff);
}

// Returns a random point within a unit sphere centered at (0,0,0).
Expand Down

0 comments on commit 0721d17

Please sign in to comment.