Vixen
02b45cc4
csharp
public readonly record struct DebugView

Where the camera is, which is all the geometry builder needs of a view.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Two axes rather than a whole camera, because the only thing world-space text needs is the plane to lie in. Taking the basis rather than the matrix also means a caller with an orthographic view, a shadow view or a hand-built one can billboard against it without first having to construct something that calls itself a camera.

Fields and properties (2)

  • public Vector3 Right

    The camera's world-space right axis, unit length.

  • public Vector3 Up

    Its world-space up axis, unit length.

Methods (2)

  • public DebugView(Vector3 Right, Vector3 Up)

    Where the camera is, which is all the geometry builder needs of a view.

  • public static DebugView FromView(in Matrix4x4 view)

    The basis a world-to-view matrix implies.

Used by (4)

  • DebugDrawRendererVixen.Engine.Renderer
  • DebugGeometryVixen.Engine.Renderer
  • DebugGeometryTestsVixen.Engine.Renderer.Tests
  • WorldSinkVixen.Engine.Renderer