fatuous icon indicating copy to clipboard operation
fatuous copied to clipboard

Big troubles with loading textures to OpenGL

Open hbina opened this issue 6 years ago • 0 comments

This problem will be solved with the introduction of dynamic runtime shader loading in the program, but just as a note I will post the problem here.

Loading textures into GLSL requires 2 things

  1. something like this: ShaderUtilities::setInt(model_shader, "depth_map", 4);
  2. then something like this: glBindTexture(GL_TEXTURE_CUBE_MAP, depth_cube_map);

Notice how we must store the information somehow.

hbina avatar Sep 13 '19 00:09 hbina