Fixed Sun's shadow below rings.

This commit is contained in:
Jonathas Costa
2020-01-06 09:17:11 -05:00
parent e8f2fa56f3
commit 684ba237ec
2 changed files with 9 additions and 1 deletions

View File

@@ -34,7 +34,6 @@ uniform sampler1D ringTexture;
uniform vec2 textureOffset;
uniform float transparency;
uniform bool hasSunPosition;
uniform vec3 sunPosition;
uniform float _nightFactor;
uniform int nShadowSamples;

View File

@@ -910,6 +910,15 @@ void RenderableGlobe::update(const UpdateData& data) {
_layerManager.reset();
_debugProperties.resetTileProviders = false;
}
if (_hasRings) {
_ringsComponent.update(data);
}
if (_hasShadows) {
_shadowComponent.update(data);
}
#ifdef OPENSPACE_MODULE_GLOBEBROWSING_INSTRUMENTATION
_nUploadedTiles = _layerManager.update();
#else