File tree Expand file tree Collapse file tree 2 files changed +4
-22
lines changed Expand file tree Collapse file tree 2 files changed +4
-22
lines changed Original file line number Diff line number Diff line change @@ -1152,7 +1152,7 @@ class XRManager extends EventDispatcher {
1152
1152
1153
1153
} else {
1154
1154
1155
- // assume single camera setup (AR)
1155
+ // view frustum culling will be performed per camera, but assign this anyway
1156
1156
1157
1157
cameraXR . projectionMatrix . copy ( cameraL . projectionMatrix ) ;
1158
1158
@@ -1575,16 +1575,7 @@ function onAnimationFrame( time, frame ) {
1575
1575
1576
1576
cameraXR . cameras . length = 0 ;
1577
1577
cameraXRNeedsUpdate = true ;
1578
-
1579
- if ( views . length === 2 ) {
1580
-
1581
- cameraXR . perCameraCulling = false ;
1582
-
1583
- } else {
1584
-
1585
- cameraXR . perCameraCulling = true ;
1586
-
1587
- }
1578
+ cameraXR . perCameraCulling = views . length !== 2 ;
1588
1579
1589
1580
}
1590
1581
Original file line number Diff line number Diff line change @@ -770,7 +770,7 @@ class WebXRManager extends EventDispatcher {
770
770
771
771
} else {
772
772
773
- // assume single camera setup (AR)
773
+ // view frustum culling will be performed per camera, but assign this anyway
774
774
775
775
cameraXR . projectionMatrix . copy ( cameraL . projectionMatrix ) ;
776
776
@@ -936,16 +936,7 @@ class WebXRManager extends EventDispatcher {
936
936
937
937
cameraXR . cameras . length = 0 ;
938
938
cameraXRNeedsUpdate = true ;
939
-
940
- if ( views . length === 2 ) {
941
-
942
- cameraXR . perCameraCulling = false ;
943
-
944
- } else {
945
-
946
- cameraXR . perCameraCulling = true ;
947
-
948
- }
939
+ cameraXR . perCameraCulling = views . length !== 2 ;
949
940
950
941
}
951
942
You can’t perform that action at this time.
0 commit comments