OpenGL State Within Shaders

Started by
0 comments, last by dbzprogrammer 18 years ago
Is it possible to obtain the current state within a shader? For example. The shader could do something different if textures were not enabled or or is lighing was turned off.
Advertisement
Don't think so, perhaps you could pass an int to the shader, with certain bits representing certain states, it could see which bits are set, and determine what to do from there.
We should do this the Microsoft way: "WAHOOOO!!! IT COMPILES! SHIP IT!"

This topic is closed to new replies.

Advertisement