Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fa5a5a commit fb8aa9cCopy full SHA for fb8aa9c
packages/Main/src/Core/Prefab/Globe/Atmosphere.js
@@ -130,9 +130,9 @@ class Atmosphere extends GeometryLayer {
130
131
update(context, layer, node) {
132
// update uniforms
133
- node.material.fogDistance = this.fog.distance;
134
- node.material.lightingEnabled = this.realisticAtmosphere.visible;
135
- node.material.lightPosition = this.realisticLightingPosition;
+ node.material.setUniform('fogDistance', this.fog.distance);
+ node.material.setUniform('lightingEnabled', this.realisticAtmosphere.visible);
+ node.material.setUniform('lightPosition', this.realisticLightingPosition);
136
}
137
138
// eslint-disable-next-line no-unused-vars
0 commit comments