浏览代码

Revert "ignore plane render"

This reverts commit de1531b3185590e1b4f50c0e895bca786c801715.
sunag 8 年之前
父节点
当前提交
c73af6aec8
共有 2 个文件被更改,包括 1 次插入3 次删除
  1. 0 2
      examples/js/Mirror.js
  2. 1 1
      examples/webgl_mirror_nodes.html

+ 0 - 2
examples/js/Mirror.js

@@ -6,8 +6,6 @@ THREE.Mirror = function ( width, height, options ) {
 
 	THREE.Mesh.call( this, new THREE.PlaneBufferGeometry( width, height ) );
 
-	if ( options.render === false ) this.geometry.setDrawRange( 0, 0 );
-
 	var scope = this;
 
 	scope.name = 'mirror_' + scope.id;

+ 1 - 1
examples/webgl_mirror_nodes.html

@@ -152,7 +152,7 @@
 				var planeGeo = new THREE.PlaneBufferGeometry( 100.1, 100.1 );
 
 				// MIRROR planes
-				var groundMirror = new THREE.Mirror( 100, 100, { clipBias: 0.003, textureWidth: WIDTH, textureHeight: HEIGHT, render: false } );
+				var groundMirror = new THREE.Mirror( 100, 100, { clipBias: 0.003, textureWidth: WIDTH, textureHeight: HEIGHT } );
 
 				var mask = new THREE.SwitchNode( new THREE.TextureNode( decalDiffuse ), 'w' );
 				var maskFlip = new THREE.Math1Node( mask, THREE.Math1Node.INVERT );