diff --git a/Raylib-cs/types/RenderBatch.cs b/Raylib-cs/types/RenderBatch.cs index c8e9b8e..cfc1615 100644 --- a/Raylib-cs/types/RenderBatch.cs +++ b/Raylib-cs/types/RenderBatch.cs @@ -61,6 +61,11 @@ public unsafe partial struct VertexBuffer /// public float* TexCoords; + /// + /// Vertex normal (XYZ - 3 components per vertex) (shader-location = 2) + /// + public float* Normals; + /// /// Vertex colors (RGBA - 4 components per vertex) (shader-location = 3) /// @@ -79,9 +84,9 @@ public unsafe partial struct VertexBuffer public uint VaoId; /// - /// OpenGL Vertex Buffer Objects id (4 types of vertex data) + /// OpenGL Vertex Buffer Objects id (5 types of vertex data) /// - public fixed uint VboId[4]; + public fixed uint VboId[5]; /// /// Access @@ -99,6 +104,14 @@ public unsafe partial struct VertexBuffer return new(TexCoords, ElementCount * sizeof(float) / sizeof(T)); } + /// + /// Access + /// + public readonly Span NormalsAs() where T : unmanaged + { + return new(Normals, ElementCount * sizeof(float) / sizeof(T)); + } + /// /// Access ///