This commit is contained in:
tavo 2025-10-30 23:34:17 -06:00
parent 89773f7117
commit f07d641003
2 changed files with 20 additions and 5 deletions

2
external/skr vendored

@ -1 +1 @@
Subproject commit 2472372886571bcc38893e2c2424ce4f198f16a7 Subproject commit 021e127aa4b8f85e6cce50a6ff19e4323fa22b36

View file

@ -33,10 +33,25 @@ int main(void) {
program.Backend.GL.ID = prog; program.Backend.GL.ID = prog;
static SkrVertex vertices[] = { static SkrVertex vertices[] = {
{{0.5f, 0.5f, 0.0f}, {1.0f, 0.0f, 0.0f}, {0}, {1.0f, 1.0f}}, {.Position = {0.5f, 0.5f, 0.0f},
{{0.5f, -0.5f, 0.0f}, {0.0f, 1.0f, 0.0f}, {0}, {1.0f, 0.0f}}, .Normal = {0.0f, 0.0f, 1.0f},
{{-0.5f, -0.5f, 0.0f}, {0.0f, 0.0f, 1.0f}, {0}, {0.0f, 0.0f}}, .UV = {1.0f, 1.0f},
{{-0.5f, 0.5f, 0.0f}, {1.0f, 1.0f, 0.0f}, {0}, {0.0f, 1.0f}}, .Color = {1.0f, 0.0f, 0.0f}},
{.Position = {0.5f, -0.5f, 0.0f},
.Normal = {0.0f, 0.0f, 1.0f},
.UV = {1.0f, 0.0f},
.Color = {0.0f, 1.0f, 0.0f}},
{.Position = {-0.5f, -0.5f, 0.0f},
.Normal = {0.0f, 0.0f, 1.0f},
.UV = {0.0f, 0.0f},
.Color = {0.0f, 0.0f, 1.0f}},
{.Position = {-0.5f, 0.5f, 0.0f},
.Normal = {0.0f, 0.0f, 1.0f},
.UV = {0.0f, 1.0f},
.Color = {1.0f, 1.0f, 0.0f}},
}; };
static unsigned int indices[] = {0, 1, 3, 1, 2, 3}; static unsigned int indices[] = {0, 1, 3, 1, 2, 3};