This is just an optimization, right?  I'm not sure if it will actually improve performance given the high cost of a conditional in GLSL.