Skip to main content
GameDev.net gamedev.net
🔒 Locked

OpenGL State Within Shaders

Started by Deception666 Apr 25, 2006 at 2:09 PM 0 replies 700+ views
Original Post
Deception666
Deception666
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.
dbzprogrammer
dbzprogrammer
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!"

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.