You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In ofxShaderFX_LightingShader.cpp edit line 354-355 as follows; m_normalMatrix = ofMatrix4x4::getTransposedOf(m_cam->getModelViewMatrix()); m_shader.setUniformMatrix4f("normalMatrix", m_normalMatrix.getInverse());
Also, line 439 should be updated as follows; glm::vec4 eyeSpaceLightPos = glm::vec4(m_lights[lightIndex]->getGlobalPosition().x,m_lights[lightIndex]->getGlobalPosition().y,m_lights[lightIndex]->getGlobalPosition().z,1.0) * m_cam->getModelViewMatrix();
The text was updated successfully, but these errors were encountered:
In ofxShaderFX_LightingShader.cpp edit line 354-355 as follows;
m_normalMatrix = ofMatrix4x4::getTransposedOf(m_cam->getModelViewMatrix()); m_shader.setUniformMatrix4f("normalMatrix", m_normalMatrix.getInverse());
Also, line 439 should be updated as follows;
glm::vec4 eyeSpaceLightPos = glm::vec4(m_lights[lightIndex]->getGlobalPosition().x,m_lights[lightIndex]->getGlobalPosition().y,m_lights[lightIndex]->getGlobalPosition().z,1.0) * m_cam->getModelViewMatrix();
The text was updated successfully, but these errors were encountered: