summaryrefslogtreecommitdiff
path: root/src/graphics/shape.cpp
diff options
context:
space:
mode:
authorSebastian Park <SebPark03@gmail.com>2024-04-23 00:30:37 -0400
committerSebastian Park <SebPark03@gmail.com>2024-04-23 00:30:37 -0400
commitf2d61fc06387ccb22ecb5cb6c42210736ac64c9f (patch)
tree9191e1e91a79514a5231dc6e50c2ecc4feb03b16 /src/graphics/shape.cpp
parentb4be9e522b51b01c7870821648e85f97c1fdb09b (diff)
Get ground textures working, but not yet abstracted to the shape class.
Diffstat (limited to 'src/graphics/shape.cpp')
-rw-r--r--src/graphics/shape.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/graphics/shape.cpp b/src/graphics/shape.cpp
index c5dde0d..824a012 100644
--- a/src/graphics/shape.cpp
+++ b/src/graphics/shape.cpp
@@ -127,12 +127,12 @@ void Shape::draw(Shader *shader, GLenum mode)
shader->setUniform("blue", m_blue);
shader->setUniform("alpha", m_alpha);
glBindVertexArray(m_surfaceVao);
- glActiveTexture(GL_TEXTURE0);
- glBindTexture(GL_TEXTURE_2D, ocean_floor_texture);
- shader->setUniform("sampler", 1);
+// glActiveTexture(GL_TEXTURE0);
+// glBindTexture(GL_TEXTURE_2D, ocean_floor_texture);
+// shader->setUniform("sampler", 0);
glDrawElements(mode, m_numSurfaceVertices, GL_UNSIGNED_INT, reinterpret_cast<GLvoid *>(0));
glBindVertexArray(0);
- glBindTexture(GL_TEXTURE_2D, 0);
+// glBindTexture(GL_TEXTURE_2D, 0);
break;
}
case GL_POINTS: