Don't "optimize" conditional moves in shaders with mix()+step()(iquilezles.org)
395 points by romes | 192 comments
Inigo Quilez article correcting the misconception that GPU conditionals should be replaced with mix() and step() in shader code.
1 story tagged branching, newest first.
395 points by romes | 192 comments
Inigo Quilez article correcting the misconception that GPU conditionals should be replaced with mix() and step() in shader code.