Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb8aa9c

Browse files
committed
fix(Atmosphere): set tile atmosphere uniforms
fix #2477
1 parent 1fa5a5a commit fb8aa9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/Main/src/Core/Prefab/Globe/Atmosphere.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ class Atmosphere extends GeometryLayer {
130130

131131
update(context, layer, node) {
132132
// update uniforms
133-
node.material.fogDistance = this.fog.distance;
134-
node.material.lightingEnabled = this.realisticAtmosphere.visible;
135-
node.material.lightPosition = this.realisticLightingPosition;
133+
node.material.setUniform('fogDistance', this.fog.distance);
134+
node.material.setUniform('lightingEnabled', this.realisticAtmosphere.visible);
135+
node.material.setUniform('lightPosition', this.realisticLightingPosition);
136136
}
137137

138138
// eslint-disable-next-line no-unused-vars

0 commit comments

Comments
 (0)