mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Fixed Sun's shadow below rings.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user