Identities for mathematical functions in GLSL. This repository contains a list of useful mathematical identities that apply to functions used in GLSL, the language used when creating shaders in WebGL/OpenGL.
This list provides identities that allow expressions to be simplified to something mathematically equivalent to improve performance.
Contributions welcome!
1.0 - step( a, x ) === step( x, a )
1.0 - smoothstep( a, b, x ) === smoothstep( b, a, x )