forked from AcademySoftwareFoundation/OpenShadingLanguage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernize sampler in testrender (AcademySoftwareFoundation#1534)
The sampler implementation in testrender was very close to the 2020 article from Brent Burley. This patch catches up to best practices, including a faster owen scrambler from Nathan Vegdahl and recognizing that the index scrambling can be achived by the same owen scrambler method (which saves a bunch of logic and runs faster). Finally, avoid the redundant bit reversals and use compiler intrinsics when available to benefit from hardware instructions (for ARM or GPUs). Finally the integer hash constants were updated to the latest from the hash prospector project. While more optimizations are certainly possible, this is a reasonable balance between quality and speed. Update reference images for new sampler Signed-off-by: Chris Kulla <[email protected]>
- Loading branch information
1 parent
4e34e8d
commit b561a67
Showing
10 changed files
with
49 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.