提交 c062737c 编写于 作者: M Mr.doob

Fixed examples that relied on raycasting invisible objects.

上级 9760cf7a
......@@ -84,8 +84,7 @@
var geometry = new THREE.PlaneBufferGeometry( 1000, 1000 );
geometry.applyMatrix( new THREE.Matrix4().makeRotationX( - Math.PI / 2 ) );
plane = new THREE.Mesh( geometry );
plane.visible = false;
plane = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial( { visible: false } ) );
scene.add( plane );
objects.push( plane );
......
......@@ -101,9 +101,8 @@
plane = new THREE.Mesh(
new THREE.PlaneBufferGeometry( 2000, 2000, 8, 8 ),
new THREE.MeshBasicMaterial( { color: 0x000000, opacity: 0.25, transparent: true } )
new THREE.MeshBasicMaterial( { visible: false } )
);
plane.visible = false;
scene.add( plane );
renderer = new THREE.WebGLRenderer( { antialias: true } );
......
......@@ -98,8 +98,7 @@
var geometry = new THREE.PlaneBufferGeometry( 1000, 1000 );
geometry.applyMatrix( new THREE.Matrix4().makeRotationX( - Math.PI / 2 ) );
plane = new THREE.Mesh( geometry );
plane.visible = false;
plane = new THREE.Mesh( geometry, new THREE.MeshBasicMaterial( { visible: false } ) );
scene.add( plane );
objects.push( plane );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册