Vixen
02b45cc4
csharp
public readonly record struct MeshShapeVertex

One corner of a shape that lives on the device.

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

Remarks

Twenty-four bytes, and no colour — which is the difference from MeshVertex and the reason both exist. A colour per vertex is what lets one buffer hold twenty objects each in its own colour when the buffer is rewritten every frame. Here the vertices are uploaded once and shared by every entity that has this shape, so a colour on them would be a colour every instance had to agree about — it belongs to MeshInstance.

Fields and properties (2)

  • public Vector3 Position

    Where it is, in the shape's own space.

  • public Vector3 Normal

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

Methods (1)

  • public MeshShapeVertex(Vector3 Position, Vector3 Normal)

    One corner of a shape that lives on the device.

Used by (2)

  • MeshInstanceRendererVixen.Rendering
  • MeshInstanceRendererTestsVixen.Rendering.Tests