Skip to content

Commit d40871d

Browse files
authored
Merge pull request #16888 from aardgoose/example-fix
examples: fix material_compile example for node object rename
2 parents c0df5ec + 295c2bd commit d40871d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/webgl_materials_compile.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,15 @@
175175
THREE.OperatorNode.MUL
176176
);
177177

178-
var cycle = new THREE.Math1Node( sinCycleInSecs, THREE.Math1Node.SIN );
178+
var cycle = new THREE.MathNode( sinCycleInSecs, THREE.MathNode.SIN );
179179

180180
var cycleColor = new THREE.OperatorNode(
181181
cycle,
182182
color,
183183
THREE.OperatorNode.MUL
184184
);
185185

186-
var cos = new THREE.Math1Node( cycleColor, THREE.Math1Node.SIN );
186+
var cos = new THREE.MathNode( cycleColor, THREE.MathNode.SIN );
187187

188188
mtl.color = new THREE.ColorNode( 0 );
189189
mtl.emissive = cos;

0 commit comments

Comments
 (0)