From ed9d441ea39800a6c239a60d4587768411cb5ff7 Mon Sep 17 00:00:00 2001 From: Joel Manasseh Date: Fri, 10 May 2024 10:11:40 -0400 Subject: sampling from the skybox, not clouds --- src/graphics/shape.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/graphics/shape.cpp') diff --git a/src/graphics/shape.cpp b/src/graphics/shape.cpp index 874a9e6..abe4f7b 100644 --- a/src/graphics/shape.cpp +++ b/src/graphics/shape.cpp @@ -173,10 +173,10 @@ void Shape::draw(Shader *shader, GLenum mode) // FIGURED OUT THE PROBLEM. it was that SAMPLERS WERE DEFAULTING TO SLOT 0 AND SETUNIFORM WASN'T WORKING // BECAUSE IT WAS CALLING SETUNIFORM WITH FREAKING FLOATS. WHAT THE FRICK C++. // https://learnopengl.com/Getting-started/Textures - glActiveTexture(GL_TEXTURE1); - glBindTexture(GL_TEXTURE_2D, m_sky_texture); - shader->setUniform("skySampler", 1); - glUniform1i(glGetUniformLocation(shader->id(), "skySampler"), 1); +// glActiveTexture(GL_TEXTURE1); +// glBindTexture(GL_TEXTURE_2D, m_sky_texture); +// shader->setUniform("skySampler", 1); +// glUniform1i(glGetUniformLocation(shader->id(), "skySampler"), 1); Eigen::Matrix3f m3 = m_modelMatrix.topLeftCorner(3, 3); Eigen::Matrix3f inverseTransposeModel = m3.inverse().transpose(); -- cgit v1.2.3-70-g09d2