(_ref2)
| 79771 | return new (0, _mathGl.Matrix4)(viewport.viewProjectionMatrix).invert().transform(center); |
| 79772 | } |
| 79773 | function getViewProjectionMatrices(_ref2) { |
| 79774 | var viewport = _ref2.viewport, shadowMatrices = _ref2.shadowMatrices; |
| 79775 | var projectionMatrices = []; |
| 79776 | var pixelUnprojectionMatrix = viewport.pixelUnprojectionMatrix; |
| 79777 | var farZ = viewport.isGeospatial ? undefined : 1; |
| 79778 | var corners = [ |
| 79779 | [ |
| 79780 | 0, |
| 79781 | 0, |
| 79782 | farZ |
| 79783 | ], |
| 79784 | [ |
| 79785 | viewport.width, |
| 79786 | 0, |
| 79787 | farZ |
| 79788 | ], |
| 79789 | [ |
| 79790 | 0, |
| 79791 | viewport.height, |
| 79792 | farZ |
| 79793 | ], |
| 79794 | [ |
| 79795 | viewport.width, |
| 79796 | viewport.height, |
| 79797 | farZ |
| 79798 | ], |
| 79799 | [ |
| 79800 | 0, |
| 79801 | 0, |
| 79802 | -1 |
| 79803 | ], |
| 79804 | [ |
| 79805 | viewport.width, |
| 79806 | 0, |
| 79807 | -1 |
| 79808 | ], |
| 79809 | [ |
| 79810 | 0, |
| 79811 | viewport.height, |
| 79812 | -1 |
| 79813 | ], |
| 79814 | [ |
| 79815 | viewport.width, |
| 79816 | viewport.height, |
| 79817 | -1 |
| 79818 | ] |
| 79819 | ].map(function(pixel) { |
| 79820 | return screenToCommonSpace(pixel, pixelUnprojectionMatrix); |
| 79821 | }); |
| 79822 | var _iterator = _createForOfIteratorHelper(shadowMatrices), _step; |
| 79823 | try { |
| 79824 | var _loop = function _loop() { |
| 79825 | var shadowMatrix = _step.value; |
| 79826 | var viewMatrix = shadowMatrix.clone().translate(new (0, _mathGl.Vector3)(viewport.center).negate()); |
| 79827 | var positions = corners.map(function(corner) { |
| 79828 | return viewMatrix.transform(corner); |
| 79829 | }); |
| 79830 | var projectionMatrix = new (0, _mathGl.Matrix4)().ortho({ |
nothing calls this directly
no test coverage detected