This commit is contained in:
bird_egop
2026-06-06 00:42:07 +03:00
parent 49d9e23738
commit 0d8e4ba491
9 changed files with 266 additions and 35 deletions
@@ -226,7 +226,7 @@ public static unsafe class PrimitiveMeshes
BufferUsageARB.StaticDraw);
}
const uint stride = 6 * sizeof(float);
const uint stride = 9 * sizeof(float);
gl.EnableVertexAttribArray(0);
gl.VertexAttribPointer(
@@ -245,6 +245,16 @@ public static unsafe class PrimitiveMeshes
false,
stride,
(void*)(3 * sizeof(float)));
gl.EnableVertexAttribArray(2);
gl.VertexAttribPointer(
2,
3,
VertexAttribPointerType.Float,
false,
stride,
(void*)(6 * sizeof(float))
);
gl.BindVertexArray(0);