2
0
Эх сурвалжийг харах

Raycaster: Ignore invisible objects. See #3647 and #6757.
If someone needs to check inivisible objects they can use material.visible.

Mr.doob 10 жил өмнө
parent
commit
05b9886727
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      src/core/Raycaster.js

+ 2 - 0
src/core/Raycaster.js

@@ -32,6 +32,8 @@
 
 	var intersectObject = function ( object, raycaster, intersects, recursive ) {
 
+		if ( object.visible === false ) return;
+
 		object.raycast( raycaster, intersects );
 
 		if ( recursive === true ) {