Vixen
02b45cc4
csharp
public readonly record struct MeshVertex

One corner of a world-space triangle.

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

Remarks

Forty bytes, and a colour per vertex for the reason LineVertex gives: it is what lets one buffer hold geometry that belongs to twenty different objects, each its own colour, without a material or a descriptor set between them.

Fields and properties (3)

  • public Vector3 Position

    Where it is.

  • public Vector3 Normal

    Which way the surface faces there. Expected to be unit length.

  • public Color4 Colour

    What colour it is, linear and straight-alpha.

Methods (1)

  • public MeshVertex(Vector3 Position, Vector3 Normal, Color4 Colour)

    One corner of a world-space triangle.

Used by (5)

  • EditorGizmoFacingDeviceTestsVixen.Graphics.Golden.Tests
  • MeshRendererVixen.Rendering
  • GizmoGeometryVixen.Editor.SceneView
  • GizmoGeometryTestsVixen.Editor.SceneView.Tests
  • SceneLinesVixen.Editor.SceneView