OpenGL State Within Shaders
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement