shaders
-
How to remove conditionals from your Shader Program
Shader conditionals can significantly slow down performance. Lets explore some GLSL-defined functions to transform comparisons into mathematical operations, thus speeding up shaders by reducing unnecessary conditionals.