Browse Source

Examples: Simplify decal example. (#24555)

Michael Herzog 2 years ago
parent
commit
3c84d5f645
1 changed files with 2 additions and 4 deletions
  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() {