We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f50e034 + d248f6b commit fe7f25aCopy full SHA for fe7f25a
examples/webgl_terrain_dynamic.html
@@ -419,7 +419,7 @@
419
420
quadTarget = new THREE.Mesh( plane, new THREE.MeshBasicMaterial( { color: 0xff0000 } ) );
421
quadTarget.position.z = -500;
422
- sceneRenderTarget.__addObject( quadTarget );
+ sceneRenderTarget.add( quadTarget );
423
424
// TERRAIN MESH
425
src/core/Math.js
@@ -59,6 +59,12 @@ THREE.Math = {
59
60
return range * ( 0.5 - Math.random() );
61
62
+ },
63
+
64
+ sign: function ( x ) {
65
66
+ return ( x < 0 ) ? -1 : ( ( x > 0 ) ? 1 : 0 );
67
68
}
69
70
};
0 commit comments