« first day (1076 days earlier)      last day (2050 days later) » 

10:50 PM
0
Q: Can you avoid querying for a texture location in OpenGL?

MakoganThe way I learnt to send a texture to a shader is more or less //Use program //Bind texture to the texture unit to its appropriate target glActiveTexture(GL_TEXTURE0 + texture_unit); glBindTexture(target, textureID); //Get the uniform location in the program and attach the texture unit GLuint lo...

 

« first day (1076 days earlier)      last day (2050 days later) »