ExtractShadowProjViewMatrix method
Implementation
@override
VM.Matrix4 ExtractShadowProjViewMatrix() {
VM.Vector3 up = (dir.x == 0.0 && dir.z == 0.0) ? _up2 : _up;
VM.setViewMatrix(_m1, pos, dir + pos, up);
// 2.1 = 2.0 + epsilon
VM.setPerspectiveMatrix(_m2, 2.1 * angle, _aspect, _near, _far);
_m2.multiply(_m1);
return _m2;
}