浏览代码

Examples: Simplify decal example. (#24555)

Michael Herzog 3 年之前
父节点
当前提交
3c84d5f645
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      examples/webgl_decals.html

+ 2 - 4
examples/webgl_decals.html

@@ -88,7 +88,8 @@
 				}
 			};
 
-			window.addEventListener( 'load', init );
+			init();
+			animate();
 
 			function init() {
 
@@ -222,9 +223,6 @@
 				gui.add( params, 'clear' );
 				gui.open();
 
-				onWindowResize();
-				animate();
-
 			}
 
 			function loadLeePerrySmith() {