prepareToDraw()
Prepares an effect for rendering.
Declaration
func prepareToDraw()Discussion
When the skybox shader is bound, the following state variables are altered:
GL_CURRENT_PROGRAMGL_TEXTURE_BINDING_CUBE_MAPGL_VERTEX_ARRAY_BINDING_OESGL_VERTEX_ATTRIB_ARRAY_ENABLED
Your application is responsible for saving and restoring these variables, if necessary for it to execute correctly.