From 4ecdaa7cd08f4f3ee04cd49f8f2271636ac81e64 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sun, 11 Feb 2024 20:39:22 +0100 Subject: transparency Signed-off-by: Anna (navi) Figueiredo Gomes --- src/main.c | 72 +++++++++++++++++++++++++++++++------------------------------- 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 763bd4e..da3adf4 100644 --- a/src/main.c +++ b/src/main.c @@ -17,42 +17,42 @@ int main() { } struct vertex vertices[] = { - { .position = { -0.25, -0.25, -0.25 }, .color = { 0.f, 0.f, 0.f} }, - { .position = { 0.25, -0.25, -0.25,}, .color = { 1.f, 0.f, 0.f} }, - { .position = { -0.25, 0.25, -0.25,}, .color = { 0.f, 1.f, 0.f} }, - { .position = { -0.25, 0.25, -0.25,}, .color = { 0.f, 1.f, 0.f} }, - { .position = { 0.25, -0.25, -0.25,}, .color = { 1.f, 0.f, 0.f} }, - { .position = { 0.25, 0.25, -0.25,}, .color = { 1.f, 1.f, 0.f} }, - { .position = { -0.25, -0.25, 0.25,}, .color = { 0.f, 0.f, 1.f} }, - { .position = { -0.25, 0.25, 0.25,}, .color = { 0.f, 1.f, 1.f} }, - { .position = { 0.25, -0.25, 0.25,}, .color = { 1.f, 0.f, 1.f} }, - { .position = { 0.25, -0.25, 0.25,}, .color = { 1.f, 0.f, 1.f} }, - { .position = { -0.25, 0.25, 0.25,}, .color = { 0.f, 1.f, 1.f} }, - { .position = { 0.25, 0.25, 0.25,}, .color = { 1.f, 1.f, 1.f} }, - { .position = { 0.25, 0.25, 0.25,}, .color = { 1.f, 1.f, 1.f} }, - { .position = { 0.25, 0.25, -0.25,}, .color = { 1.f, 1.f, 0.f} }, - { .position = { 0.25, -0.25, 0.25,}, .color = { 1.f, 0.f, 1.f} }, - { .position = { 0.25, -0.25, 0.25,}, .color = { 1.f, 0.f, 1.f} }, - { .position = { 0.25, 0.25, -0.25,}, .color = { 1.f, 1.f, 0.f} }, - { .position = { 0.25, -0.25, -0.25,}, .color = { 1.f, 0.f, 0.f} }, - { .position = { -0.25, 0.25, 0.25,}, .color = { 0.f, 1.f, 1.f} }, - { .position = { -0.25, -0.25, 0.25,}, .color = { 0.f, 0.f, 1.f} }, - { .position = { -0.25, 0.25, -0.25,}, .color = { 0.f, 1.f, 0.f} }, - { .position = { -0.25, 0.25, -0.25,}, .color = { 0.f, 1.f, 0.f} }, - { .position = { -0.25, -0.25, 0.25,}, .color = { 0.f, 0.f, 1.f} }, - { .position = { -0.25, -0.25, -0.25,}, .color = { 0.f, 0.f, 0.f} }, - { .position = { 0.25, 0.25, 0.25,}, .color = { 1.f, 1.f, 1.f} }, - { .position = { -0.25, 0.25, 0.25,}, .color = { 0.f, 1.f, 1.f} }, - { .position = { 0.25, 0.25, -0.25,}, .color = { 1.f, 1.f, 0.f} }, - { .position = { 0.25, 0.25, -0.25,}, .color = { 1.f, 1.f, 0.f} }, - { .position = { -0.25, 0.25, 0.25,}, .color = { 0.f, 1.f, 1.f} }, - { .position = { -0.25, 0.25, -0.25,}, .color = { 0.f, 1.f, 0.f} }, - { .position = { 0.25, -0.25, 0.25,}, .color = { 1.f, 0.f, 1.f} }, - { .position = { 0.25, -0.25, -0.25,}, .color = { 1.f, 0.f, 0.f} }, - { .position = { -0.25, -0.25, 0.25,}, .color = { 0.f, 0.f, 1.f} }, - { .position = { -0.25, -0.25, 0.25,}, .color = { 0.f, 0.f, 1.f} }, - { .position = { 0.25, -0.25, -0.25,}, .color = { 1.f, 0.f, 0.f} }, - { .position = { -0.25, -0.25, -0.25,}, .color = { 0.f, 0.f, 0.f} }, + { .position = { -0.25, -0.25, -0.25 }, .color = { 0.f, 0.f, 0.f, 0.5f } }, + { .position = { 0.25, -0.25, -0.25,}, .color = { 1.f, 0.f, 0.f, 0.5f } }, + { .position = { -0.25, 0.25, -0.25,}, .color = { 0.f, 1.f, 0.f, 0.5f } }, + { .position = { -0.25, 0.25, -0.25,}, .color = { 0.f, 1.f, 0.f, 0.5f } }, + { .position = { 0.25, -0.25, -0.25,}, .color = { 1.f, 0.f, 0.f, 0.5f } }, + { .position = { 0.25, 0.25, -0.25,}, .color = { 1.f, 1.f, 0.f, 0.5f } }, + { .position = { -0.25, -0.25, 0.25,}, .color = { 0.f, 0.f, 1.f, 0.5f } }, + { .position = { -0.25, 0.25, 0.25,}, .color = { 0.f, 1.f, 1.f, 0.5f } }, + { .position = { 0.25, -0.25, 0.25,}, .color = { 1.f, 0.f, 1.f, 0.5f } }, + { .position = { 0.25, -0.25, 0.25,}, .color = { 1.f, 0.f, 1.f, 0.5f } }, + { .position = { -0.25, 0.25, 0.25,}, .color = { 0.f, 1.f, 1.f, 0.5f } }, + { .position = { 0.25, 0.25, 0.25,}, .color = { 1.f, 1.f, 1.f, 0.5f } }, + { .position = { 0.25, 0.25, 0.25,}, .color = { 1.f, 1.f, 1.f, 0.5f } }, + { .position = { 0.25, 0.25, -0.25,}, .color = { 1.f, 1.f, 0.f, 0.5f } }, + { .position = { 0.25, -0.25, 0.25,}, .color = { 1.f, 0.f, 1.f, 0.5f } }, + { .position = { 0.25, -0.25, 0.25,}, .color = { 1.f, 0.f, 1.f, 0.5f } }, + { .position = { 0.25, 0.25, -0.25,}, .color = { 1.f, 1.f, 0.f, 0.5f } }, + { .position = { 0.25, -0.25, -0.25,}, .color = { 1.f, 0.f, 0.f, 0.5f } }, + { .position = { -0.25, 0.25, 0.25,}, .color = { 0.f, 1.f, 1.f, 0.5f } }, + { .position = { -0.25, -0.25, 0.25,}, .color = { 0.f, 0.f, 1.f, 0.5f } }, + { .position = { -0.25, 0.25, -0.25,}, .color = { 0.f, 1.f, 0.f, 0.5f } }, + { .position = { -0.25, 0.25, -0.25,}, .color = { 0.f, 1.f, 0.f, 0.5f } }, + { .position = { -0.25, -0.25, 0.25,}, .color = { 0.f, 0.f, 1.f, 0.5f } }, + { .position = { -0.25, -0.25, -0.25,}, .color = { 0.f, 0.f, 0.f, 0.5f } }, + { .position = { 0.25, 0.25, 0.25,}, .color = { 1.f, 1.f, 1.f, 0.5f } }, + { .position = { -0.25, 0.25, 0.25,}, .color = { 0.f, 1.f, 1.f, 0.5f } }, + { .position = { 0.25, 0.25, -0.25,}, .color = { 1.f, 1.f, 0.f, 0.5f } }, + { .position = { 0.25, 0.25, -0.25,}, .color = { 1.f, 1.f, 0.f, 0.5f } }, + { .position = { -0.25, 0.25, 0.25,}, .color = { 0.f, 1.f, 1.f, 0.5f } }, + { .position = { -0.25, 0.25, -0.25,}, .color = { 0.f, 1.f, 0.f, 0.5f } }, + { .position = { 0.25, -0.25, 0.25,}, .color = { 1.f, 0.f, 1.f, 0.5f } }, + { .position = { 0.25, -0.25, -0.25,}, .color = { 1.f, 0.f, 0.f, 0.5f } }, + { .position = { -0.25, -0.25, 0.25,}, .color = { 0.f, 0.f, 1.f, 0.5f } }, + { .position = { -0.25, -0.25, 0.25,}, .color = { 0.f, 0.f, 1.f, 0.5f } }, + { .position = { 0.25, -0.25, -0.25,}, .color = { 1.f, 0.f, 0.f, 0.5f } }, + { .position = { -0.25, -0.25, -0.25,}, .color = { 0.f, 0.f, 0.f, 0.5f } }, }; uint32_t indices[len(vertices)]; -- cgit v1.2.3