Sign in to follow this  
DoZo1971

Changing GL_COLOR_ARRAY on the fly

Recommended Posts

Hi, I have a scenegraph with different types of objects, one of which being a mesh that is defined and rendered using vertex arrays. These meshes have a GL_COLOR_ARRAY to define the colors in the vertici. Now i have another parameter "transparency" in the nodes of the scenegraph that defines the transparency of the object (changing this parameter propagates through the scenegraph so you can make complete subtrees transparent). I would like to be able to change the transparency parameter and render correctly without having to recalculate all the values in GL_COLOR_ARRAY, which seems inefficient. Kind Regards, Daniel Dekkers

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this