-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pbr.wgsl: Move discard after textureSample
In order for texture sampling to be able to do mipmapping, it must be done uniformly across a pixel quad. As such, the discard must come after all textureSample calls. Note that one can use textureSampleLevel to remove the requirement for uniformity, but then one has to supply a specific mip level.
- Loading branch information
Showing
1 changed file
with
14 additions
and
15 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