MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / UpdateCachedData

Method UpdateCachedData

Source/Engine/Graphics/RenderView.cs:25–34  ·  view source on GitHub ↗

Updates the cached data for the view (inverse matrices, etc.).

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

InvertMethod · 0.45
MultiplyMethod · 0.45

Tested by

no test coverage detected