This repository was archived by the owner on Oct 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 203
Adds the possibility to enable/disable StateAttribute per StateSet #258
Comments
ON|OFF in osg is used to enable/disable a state on opengl, in opengl es 2.0 there are a few state that exists, but on the users point on view it makes sense to still control StateAttribute.
So adding a full implementation of mode in State like osg seems a bit overkill. To keep the implementation simple, we could:
Others questions, what happens to those attributes if they can be ON|OFF
|
Modifying a bit your idea... I would add the following:
To implement this we would need to keep track of modes separately. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In OSG you have the possibility of disable lighting in a node via stateset mode using:
node->getOrCreateStateSet()->setMode(GL_LIGHTING, osg::StateAttribute::OFF );
If I understood well, in OSG the default behaviour when no lighting is diffuse*texture + emissive. That's if the texture environment is set to MODULATE which is also the default.
If the TexEnv is DECAL then it should be texture+emissive.
The text was updated successfully, but these errors were encountered: