diff options
author | iurii plugatarov <[email protected]> | 2024-09-07 16:28:02 +0200 |
---|---|---|
committer | iurii plugatarov <[email protected]> | 2024-09-07 16:28:02 +0200 |
commit | 5382908378a2e4f4f56eed3fb587a056e01190f9 (patch) | |
tree | 06f7e5ec962cc534a141fe04194d7f5d1b92b077 /src/cubes.odin | |
parent | e4e90e53f02f6a431422c7790a7df34d396a3c6a (diff) | |
download | funhalla-5382908378a2e4f4f56eed3fb587a056e01190f9.tar.gz |
update
Diffstat (limited to '')
-rw-r--r-- | src/cubes.odin | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/cubes.odin b/src/cubes.odin new file mode 100644 index 0000000..b6bcd1c --- /dev/null +++ b/src/cubes.odin @@ -0,0 +1,58 @@ +package funhalla + +vertices : []f32 : { + -0.5, -0.5, -0.5, 0.0, 0.0, -1.0, 0.0, 0.0, + 0.5, -0.5, -0.5, 0.0, 0.0, -1.0, 1.0, 0.0, + 0.5, 0.5, -0.5, 0.0, 0.0, -1.0, 1.0, 1.0, + 0.5, 0.5, -0.5, 0.0, 0.0, -1.0, 1.0, 1.0, + -0.5, 0.5, -0.5, 0.0, 0.0, -1.0, 0.0, 1.0, + -0.5, -0.5, -0.5, 0.0, 0.0, -1.0, 0.0, 0.0, + + -0.5, -0.5, 0.5, 0.0, 0.0, 1.0, 0.0, 0.0, + 0.5, -0.5, 0.5, 0.0, 0.0, 1.0, 1.0, 0.0, + 0.5, 0.5, 0.5, 0.0, 0.0, 1.0, 1.0, 1.0, + 0.5, 0.5, 0.5, 0.0, 0.0, 1.0, 1.0, 1.0, + -0.5, 0.5, 0.5, 0.0, 0.0, 1.0, 0.0, 1.0, + -0.5, -0.5, 0.5, 0.0, 0.0, 1.0, 0.0, 0.0, + + -0.5, 0.5, 0.5, -1.0, 0.0, 0.0, 1.0, 0.0, + -0.5, 0.5, -0.5, -1.0, 0.0, 0.0, 1.0, 1.0, + -0.5, -0.5, -0.5, -1.0, 0.0, 0.0, 0.0, 1.0, + -0.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