mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Set ignore uniform location warning for global and local renderers in RenderableGlobe
Fixes #3770
This commit is contained in:
@@ -1275,6 +1275,10 @@ void RenderableGlobe::renderChunks(const RenderData& data, RendererTasks&,
|
||||
const glm::vec3 directionToSunObjSpace(_cachedInverseModelTransform *
|
||||
glm::dvec4(directionToSunWorldSpace, 0.0));
|
||||
|
||||
using IgnoreError = ghoul::opengl::ProgramObject::IgnoreError;
|
||||
_globalRenderer.program->setIgnoreUniformLocationError(IgnoreError::Yes);
|
||||
_localRenderer.program->setIgnoreUniformLocationError(IgnoreError::Yes);
|
||||
|
||||
// Set the light direction uniforms for local renderer
|
||||
_globalRenderer.program->setUniform(
|
||||
"lightDirectionCameraSpace",
|
||||
@@ -1295,6 +1299,8 @@ void RenderableGlobe::renderChunks(const RenderData& data, RendererTasks&,
|
||||
-glm::normalize(directionToSunObjSpace)
|
||||
);
|
||||
}
|
||||
|
||||
_globalRenderer.program->setIgnoreUniformLocationError(IgnoreError::No);
|
||||
}
|
||||
|
||||
int globalCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user