Re:An Overview of Phong Shading in GLSL
by hughsk on Monday May 18, 2015 @06:07PM
(#9567129)
https://github.com/aras-p/glsl-optimizer
[ Parent
| on HN ]
Just tried it on the two examples I provided. It doesn't remove conditionals, which was basically my whole point
FWIW, I don't think it can without assuming the input lies in a certain range.