( scene, drawingBufferPosition, width, height, viewport, )
| 196 | } |
| 197 | |
| 198 | function getPickCullingVolume( |
| 199 | scene, |
| 200 | drawingBufferPosition, |
| 201 | width, |
| 202 | height, |
| 203 | viewport, |
| 204 | ) { |
| 205 | const frustum = scene.camera.frustum; |
| 206 | if ( |
| 207 | frustum instanceof OrthographicFrustum || |
| 208 | frustum instanceof OrthographicOffCenterFrustum |
| 209 | ) { |
| 210 | return getPickOrthographicCullingVolume( |
| 211 | scene, |
| 212 | drawingBufferPosition, |
| 213 | width, |
| 214 | height, |
| 215 | viewport, |
| 216 | ); |
| 217 | } |
| 218 | |
| 219 | return getPickPerspectiveCullingVolume( |
| 220 | scene, |
| 221 | drawingBufferPosition, |
| 222 | width, |
| 223 | height, |
| 224 | viewport, |
| 225 | ); |
| 226 | } |
| 227 | |
| 228 | // Pick position and rectangle, used in all picking functions, |
| 229 | // filled in computePickingDrawingBufferRectangle and passed |
no test coverage detected
searching dependent graphs…