setShaderProgram once?

  ... discussions regarding GLES2 ShaderPrograms (VertexShaders and FragmentShaders).

setShaderProgram once?

Postby Radeg » Mon Nov 18, 2013 12:14 am

Do I have to use method setShaderProgram only once or every light change? I'm trying to make light system in my game. I'm pretty sure it will work fine when I run setShaderProgram every player move, or every zoom, but I have no idea is this recommended. It's very hard to implement dynamic lights with registering setShaderProgram once.
Posts: 14
Joined: Sat Nov 02, 2013 9:23 pm

Return to ShaderPrograms

Who is online

Users browsing this forum: No registered users and 1 guest