|
|
@@ -54,7 +54,8 @@ class FrustumArray {
|
|
|
|
|
|
_frustum.setFromProjectionMatrix(
|
|
|
_projScreenMatrix,
|
|
|
- this.coordinateSystem
|
|
|
+ camera.coordinateSystem,
|
|
|
+ camera.reversedDepth
|
|
|
);
|
|
|
|
|
|
if ( _frustum.intersectsObject( object ) ) {
|
|
|
@@ -96,7 +97,8 @@ class FrustumArray {
|
|
|
|
|
|
_frustum.setFromProjectionMatrix(
|
|
|
_projScreenMatrix,
|
|
|
- this.coordinateSystem
|
|
|
+ camera.coordinateSystem,
|
|
|
+ camera.reversedDepth
|
|
|
);
|
|
|
|
|
|
if ( _frustum.intersectsSprite( sprite ) ) {
|
|
|
@@ -138,7 +140,8 @@ class FrustumArray {
|
|
|
|
|
|
_frustum.setFromProjectionMatrix(
|
|
|
_projScreenMatrix,
|
|
|
- this.coordinateSystem
|
|
|
+ camera.coordinateSystem,
|
|
|
+ camera.reversedDepth
|
|
|
);
|
|
|
|
|
|
if ( _frustum.intersectsSphere( sphere ) ) {
|
|
|
@@ -180,7 +183,8 @@ class FrustumArray {
|
|
|
|
|
|
_frustum.setFromProjectionMatrix(
|
|
|
_projScreenMatrix,
|
|
|
- this.coordinateSystem
|
|
|
+ camera.coordinateSystem,
|
|
|
+ camera.reversedDepth
|
|
|
);
|
|
|
|
|
|
if ( _frustum.intersectsBox( box ) ) {
|
|
|
@@ -222,7 +226,8 @@ class FrustumArray {
|
|
|
|
|
|
_frustum.setFromProjectionMatrix(
|
|
|
_projScreenMatrix,
|
|
|
- this.coordinateSystem
|
|
|
+ camera.coordinateSystem,
|
|
|
+ camera.reversedDepth
|
|
|
);
|
|
|
|
|
|
if ( _frustum.containsPoint( point ) ) {
|