From b76e309166f714b0a66fb4802f02e92a82d09082 Mon Sep 17 00:00:00 2001 From: Jonathan Bradley Date: Thu, 9 Jan 2025 14:44:31 -0500 Subject: flatten file structure + rename --- src/static-cube.cpp | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/static-cube.cpp (limited to 'src/static-cube.cpp') diff --git a/src/static-cube.cpp b/src/static-cube.cpp new file mode 100644 index 0000000..0c8e326 --- /dev/null +++ b/src/static-cube.cpp @@ -0,0 +1,49 @@ + +#include "static-cube.hpp" + +IntrinsicShapeCube pkeIntrinsicsCube { + .vert = { + {-1, -1, -1}, + {-1, -1, 1}, + {-1, 1, 1}, + {-1, 1, -1}, + {1, 1, 1}, + {1, 1, -1}, + {1, -1, -1}, + {1, -1, 1}, + }, + .norm = { + {-1, -1, -1}, + {-1, -1, 1}, + {-1, 1, 1}, + {-1, 1, -1}, + {1, 1, 1}, + {1, 1, -1}, + {1, -1, -1}, + {1, -1, 1}, + }, + .uv = { + {0, 0}, + {0, 1}, + {1, 0}, + {1, 1}, + {0, 0}, + {0, 1}, + {1, 0}, + {1, 1}, + }, + .index = { + 0, 1, 2, + 5, 0, 3, + 7, 0, 6, + 5, 6, 0, + 0, 2, 3, + 7, 1, 0, + 2, 1, 7, + 4, 6, 5, + 6, 4, 7, + 4, 5, 3, + 4, 3, 2, + 4, 2, 7, + }, +}; -- cgit v1.2.3