Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Simplify vertex colour handling in interaction shader
Modern shaders can work fine with boolean uniforms, so we don't need the awkward "scale and offset" approach to vertex colour handling. Instead we just examine a boolean to determine if the vertex colour should be inverted, and perform the calculation accordingly.
- Loading branch information
Matthew Mott
committed
Mar 8, 2021
1 parent
4d19f81
commit 0b00b9f
Showing
3 changed files
with
14 additions
and
29 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
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
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