Browse Source

Background: Fix update when changing env map. (#28966)

Michael Herzog 1 year ago
parent
commit
95f114226f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/renderers/common/Background.js

+ 1 - 0
src/renderers/common/Background.js

@@ -90,6 +90,7 @@ class Background extends DataMap {
 			if ( sceneData.backgroundCacheKey !== backgroundCacheKey ) {
 
 				sceneData.backgroundMeshNode.node = vec4( backgroundNode ).mul( backgroundIntensity );
+				sceneData.backgroundMeshNode.needsUpdate = true;
 
 				backgroundMesh.material.needsUpdate = true;
 

粤ICP备19079148号