summary refs log tree commit diff
path: root/src/cubes.odin
diff options
context:
space:
mode:
authoriurii plugatarov <[email protected]>2024-09-07 16:28:02 +0200
committeriurii plugatarov <[email protected]>2024-09-07 16:28:02 +0200
commit5382908378a2e4f4f56eed3fb587a056e01190f9 (patch)
tree06f7e5ec962cc534a141fe04194d7f5d1b92b077 /src/cubes.odin
parente4e90e53f02f6a431422c7790a7df34d396a3c6a (diff)
downloadfunhalla-5382908378a2e4f4f56eed3fb587a056e01190f9.tar.gz
update
Diffstat (limited to '')
-rw-r--r--src/cubes.odin58
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.5, -0.5, -0.5, -1.0,  0.0,  0.0,  0.0,  1.0,
+    -0.5, -0.5,  0.5, -1.0,  0.0,  0.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,  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.5, -0.5, -0.5,  1.0,  0.0,  0.0,  0.0,  1.0,
+     0.5, -0.5,  0.5,  1.0,  0.0,  0.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,  0.0, -1.0,  0.0,  0.0,  1.0,
+     0.5, -0.5, -0.5,  0.0, -1.0,  0.0,  1.0,  1.0,
+     0.5, -0.5,  0.5,  0.0, -1.0,  0.0,  1.0,  0.0,
+     0.5, -0.5,  0.5,  0.0, -1.0,  0.0,  1.0,  0.0,
+    -0.5, -0.5,  0.5,  0.0, -1.0,  0.0,  0.0,  0.0,
+    -0.5, -0.5, -0.5,  0.0, -1.0,  0.0,  0.0,  1.0,
+
+    -0.5,  0.5, -0.5,  0.0,  1.0,  0.0,  0.0,  1.0,
+     0.5,  0.5, -0.5,  0.0,  1.0,  0.0,  1.0,  1.0,
+     0.5,  0.5,  0.5,  0.0,  1.0,  0.0,  1.0,  0.0,
+     0.5,  0.5,  0.5,  0.0,  1.0,  0.0,  1.0,  0.0,
+    -0.5,  0.5,  0.5,  0.0,  1.0,  0.0,  0.0,  0.0,
+    -0.5,  0.5, -0.5,  0.0,  1.0,  0.0,  0.0,  1.0
+}
+
+cube_positions : []Vec3 : {
+  Vec3{ 0.0,  0.0,  0.0},
+  Vec3{ 2.0,  5.0, -15.0},
+  Vec3{-1.5, -2.2, -2.5},
+  Vec3{-3.8, -2.0, -12.3},
+  Vec3{ 2.4, -0.4, -3.5},
+  Vec3{-1.7,  3.0, -7.5},
+  Vec3{ 1.3, -2.0, -2.5},
+  Vec3{ 1.5,  2.0, -2.5},
+  Vec3{ 1.5,  0.2, -1.5},
+  Vec3{-1.3,  1.0, -1.5}
+}