#pragma once #include namespace deerith { glm::ivec3 voxel_direction_order[6] = { glm::ivec3(-1, 0, 0), glm::ivec3(1, 0, 0), glm::ivec3(0, -1, 0), glm::ivec3(0, 1, 0), glm::ivec3(0, 0, -1), glm::ivec3(0, 0, 1), }; glm::vec3 voxel_direction_vertices[6][4] = { // -X { {0, 0, 0}, {0, 0, 1}, {0, 1, 1}, {0, 1, 0}, }, // +X { {1, 0, 0}, {1, 1, 0}, {1, 1, 1}, {1, 0, 1}, }, // -Y { {0, 0, 0}, {1, 0, 0}, {1, 0, 1}, {0, 0, 1}, }, // +Y { {0, 1, 0}, {0, 1, 1}, {1, 1, 1}, {1, 1, 0}, }, // -Z { {0, 0, 0}, {0, 1, 0}, {1, 1, 0}, {1, 0, 0}, }, // +Z { {0, 0, 1}, {1, 0, 1}, {1, 1, 1}, {0, 1, 1}, }, }; uint32_t face_indices_order[6] = { 0, 1, 2, 0, 2, 3, }; }