From c9679c390e560126fe89ef9c9fde95e3e3def09c Mon Sep 17 00:00:00 2001 From: Nickolas McDonald <43690021+n77y@users.noreply.github.com> Date: Sat, 9 Sep 2023 12:51:14 -0400 Subject: [PATCH] Update Mesh.cs --- Raylib-cs/types/Mesh.cs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Raylib-cs/types/Mesh.cs b/Raylib-cs/types/Mesh.cs index f640db1..ccec9d3 100644 --- a/Raylib-cs/types/Mesh.cs +++ b/Raylib-cs/types/Mesh.cs @@ -154,19 +154,25 @@ public unsafe partial struct Mesh return new(Normals, 3 * VertexCount * sizeof(float) / sizeof(T)); } - /// Access + /// + /// Access + /// public readonly Span TangentsAs() where T : unmanaged { return new(Tangents, 4 * VertexCount * sizeof(float) / sizeof(T)); } - /// Access + /// + /// Access + /// public readonly Span ColorsAs() where T : unmanaged { return new(Colors, 4 * VertexCount * sizeof(byte) / sizeof(T)); } - /// Access + /// + /// Access + /// public readonly Span IndicesAs() where T : unmanaged { return new(Indices, 3 * TriangleCount * sizeof(ushort) / sizeof(T));