浏览代码

webgl_simple_gi: Fix (#25605)

`Scene.autoUpdate` was renamed to `Scene.matrixWorldAutoUpdate`.
Levi Pesin 2 年之前
父节点
当前提交
edb16f950f
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      examples/webgl_simple_gi.html

+ 2 - 2
examples/webgl_simple_gi.html

@@ -56,7 +56,7 @@
 				scene.updateMatrixWorld( true );
 				scene.updateMatrixWorld( true );
 
 
 				let clone = scene.clone();
 				let clone = scene.clone();
-				clone.autoUpdate = false;
+				clone.matrixWorldAutoUpdate = false;
 
 
 				const rt = new THREE.WebGLRenderTarget( SIZE, SIZE );
 				const rt = new THREE.WebGLRenderTarget( SIZE, SIZE );
 
 
@@ -139,7 +139,7 @@
 					if ( currentVertex >= totalVertex ) {
 					if ( currentVertex >= totalVertex ) {
 
 
 						clone = scene.clone();
 						clone = scene.clone();
-						clone.autoUpdate = false;
+						clone.matrixWorldAutoUpdate = false;
 
 
 						bounces ++;
 						bounces ++;
 						currentVertex = 0;
 						currentVertex = 0;