Updates the cached data for the view (inverse matrices, etc.).
()
| 23 | /// Updates the cached data for the view (inverse matrices, etc.). |
| 24 | /// </summary> |
| 25 | public void UpdateCachedData() |
| 26 | { |
| 27 | Matrix.Invert(ref View, out IV); |
| 28 | Matrix.Invert(ref Projection, out IP); |
| 29 | Matrix.Multiply(ref View, ref Projection, out var viewProjection); |
| 30 | Frustum = new BoundingFrustum(ref viewProjection); |
| 31 | Matrix.Invert(ref viewProjection, out IVP); |
| 32 | CullingFrustum = Frustum; |
| 33 | NonJitteredProjection = Projection; |
| 34 | } |
| 35 | |
| 36 | /// <summary> |
| 37 | /// Initializes render view data. |