fatuous
fatuous copied to clipboard
Big troubles with loading textures to OpenGL
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
- something like this:
ShaderUtilities::setInt(model_shader, "depth_map", 4); - then something like this:
glBindTexture(GL_TEXTURE_CUBE_MAP, depth_cube_map);
Notice how we must store the information somehow.