diff options
author | Sebastian Park <SebPark03@gmail.com> | 2024-05-08 01:14:11 -0400 |
---|---|---|
committer | Sebastian Park <SebPark03@gmail.com> | 2024-05-08 01:14:11 -0400 |
commit | 3d9a55316dbcfb2ca1f32f5554d1948fcabb5d74 (patch) | |
tree | f2ca9a05d094ab0a85a42f500fb9ea1cc6630240 /src/graphics/shape.cpp | |
parent | dcab788763ff0af5918ca0c50538daa8bbfc84d8 (diff) |
Do some scuffed caustics.
Diffstat (limited to 'src/graphics/shape.cpp')
-rw-r--r-- | src/graphics/shape.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graphics/shape.cpp b/src/graphics/shape.cpp index 7a33140..4b1d4d4 100644 --- a/src/graphics/shape.cpp +++ b/src/graphics/shape.cpp @@ -138,13 +138,13 @@ void Shape::draw(Shader *shader, GLenum mode) // Not that one texture is overwriting the other, because if we just load sky it doesn't work // Draws whatever is bound to texture0 no matter what. // Drawing the ground texture. - /* // When ground is being rendered dynamically, don't use static ground image. +/* // When ground is being rendered dynamically, don't use static ground image. glActiveTexture(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D, m_ground_texture); // glBindTexture(GL_TEXTURE_2D, 0); shader->setUniform("groundSampler", 0); - glUniform1i(glGetUniformLocation(shader->id(), "groundSampler"), 0); - */ + glUniform1i(glGetUniformLocation(shader->id(), "groundSampler"), 0);*/ + // https://stackoverflow.com/questions/67277087/opengl-glsl-multiple-texture-binding-not-working // FIGURED OUT THE PROBLEM. it was that SAMPLERS WERE DEFAULTING TO SLOT 0 AND SETUNIFORM WASN'T WORKING |