Browse Source

Merge pull request #16888 from aardgoose/example-fix

examples: fix material_compile example for node object rename
Mr.doob 6 years ago
parent
commit
d40871d618
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/webgl_materials_compile.html

+ 2 - 2
examples/webgl_materials_compile.html

@@ -175,7 +175,7 @@
 				THREE.OperatorNode.MUL
 			);
 
-			var cycle = new THREE.Math1Node( sinCycleInSecs, THREE.Math1Node.SIN );
+			var cycle = new THREE.MathNode( sinCycleInSecs, THREE.MathNode.SIN );
 
 			var cycleColor = new THREE.OperatorNode(
 				cycle,
@@ -183,7 +183,7 @@
 				THREE.OperatorNode.MUL
 			);
 
-			var cos = new THREE.Math1Node( cycleColor, THREE.Math1Node.SIN );
+			var cos = new THREE.MathNode( cycleColor, THREE.MathNode.SIN );
 
 			mtl.color = new THREE.ColorNode( 0 );
 			mtl.emissive = cos;