OpenGL ES 2.0/GLKit Vertex Transparency

130 views Asked by At

What's the most efficient way to handle transparency when working with vertex data? I'm using OpenGL ES 2.0 as well as GLKit. The user has access to a UISlider control that determines what the alpha value should be for each vertex in the model (values 0 to 1). Currently, I have to cycle through each vertex in the model and modify the alpha level on the color coordinates in a for loop. This is incredibly inefficient and slows down processing. Is there another way to handle dynamic transparency for models using vertex data/VBOs? I don't believe GLKit has any built-in ways to handle this using materials or effects either. Correct me if I'm wrong, please.

0

There are 0 answers