Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve glsl shader performance (#211)
Most optimizations are done by abusing mathematical properties and replacing slow on some hardware(e.g. Inetl) min and max with saturation. For example dot product is in range [-1, 1], so `max(0, dot(...))` = `sat(dot(...))`. In places where this potentially can mess with HDR comments were added.
- Loading branch information