488 lines
16 KiB
C

const vec3 mesh_Cylinder_position[] = {
{0.000000, 1.000000, -1.000000},
{0.000000, 1.000000, 1.000000},
{0.195090, 0.980785, -1.000000},
{0.195090, 0.980785, 1.000000},
{0.382683, 0.923880, -1.000000},
{0.382683, 0.923880, 1.000000},
{0.555570, 0.831470, -1.000000},
{0.555570, 0.831470, 1.000000},
{0.707107, 0.707107, -1.000000},
{0.707107, 0.707107, 1.000000},
{0.831470, 0.555570, -1.000000},
{0.831470, 0.555570, 1.000000},
{0.923880, 0.382683, -1.000000},
{0.923880, 0.382683, 1.000000},
{0.980785, 0.195090, -1.000000},
{0.980785, 0.195090, 1.000000},
{1.000000, 0.000000, -1.000000},
{1.000000, 0.000000, 1.000000},
{0.980785, -0.195090, -1.000000},
{0.980785, -0.195090, 1.000000},
{0.923880, -0.382683, -1.000000},
{0.923880, -0.382683, 1.000000},
{0.831470, -0.555570, -1.000000},
{0.831470, -0.555570, 1.000000},
{0.707107, -0.707107, -1.000000},
{0.707107, -0.707107, 1.000000},
{0.555570, -0.831470, -1.000000},
{0.555570, -0.831470, 1.000000},
{0.382683, -0.923880, -1.000000},
{0.382683, -0.923880, 1.000000},
{0.195090, -0.980785, -1.000000},
{0.195090, -0.980785, 1.000000},
{0.000000, -1.000000, -1.000000},
{0.000000, -1.000000, 1.000000},
{-0.195090, -0.980785, -1.000000},
{-0.195090, -0.980785, 1.000000},
{-0.382683, -0.923880, -1.000000},
{-0.382683, -0.923880, 1.000000},
{-0.555570, -0.831470, -1.000000},
{-0.555570, -0.831470, 1.000000},
{-0.707107, -0.707107, -1.000000},
{-0.707107, -0.707107, 1.000000},
{-0.831470, -0.555570, -1.000000},
{-0.831470, -0.555570, 1.000000},
{-0.923880, -0.382683, -1.000000},
{-0.923880, -0.382683, 1.000000},
{-0.980785, -0.195090, -1.000000},
{-0.980785, -0.195090, 1.000000},
{-1.000000, 0.000000, -1.000000},
{-1.000000, 0.000000, 1.000000},
{-0.980785, 0.195090, -1.000000},
{-0.980785, 0.195090, 1.000000},
{-0.923880, 0.382683, -1.000000},
{-0.923880, 0.382683, 1.000000},
{-0.831470, 0.555570, -1.000000},
{-0.831470, 0.555570, 1.000000},
{-0.707107, 0.707107, -1.000000},
{-0.707107, 0.707107, 1.000000},
{-0.555570, 0.831470, -1.000000},
{-0.555570, 0.831470, 1.000000},
{-0.382683, 0.923880, -1.000000},
{-0.382683, 0.923880, 1.000000},
{-0.195090, 0.980785, -1.000000},
{-0.195090, 0.980785, 1.000000},
{-0.411373, 0.615663, 1.000000},
{-0.283359, 0.684088, 1.000000},
{-0.144455, 0.726224, 1.000000},
{-0.726224, -0.144455, 1.000000},
{-0.615663, -0.411373, 1.000000},
{-0.684088, -0.283359, 1.000000},
{0.144455, -0.726224, 1.000000},
{0.411373, -0.615663, 1.000000},
{0.283359, -0.684088, 1.000000},
{0.615663, 0.411373, 1.000000},
{0.726224, 0.144455, 1.000000},
{0.684088, 0.283359, 1.000000},
{-0.740452, 0.000000, 1.000000},
{-0.726224, 0.144455, 1.000000},
{-0.615663, 0.411373, 1.000000},
{-0.684088, 0.283359, 1.000000},
{-0.523579, 0.523579, 1.000000},
{-0.411373, -0.615663, 1.000000},
{0.000000, 0.740452, 1.000000},
{0.283359, 0.684088, 1.000000},
{0.144455, 0.726224, 1.000000},
{-0.523579, -0.523579, 1.000000},
{-0.283359, -0.684088, 1.000000},
{-0.144455, -0.726224, 1.000000},
{0.000000, -0.740452, 1.000000},
{0.411373, 0.615663, 1.000000},
{0.615663, -0.411373, 1.000000},
{0.523579, 0.523579, 1.000000},
{0.726224, -0.144455, 1.000000},
{0.740452, 0.000000, 1.000000},
{0.684088, -0.283359, 1.000000},
{0.523579, -0.523579, 1.000000},
{0.283359, 0.684088, -1.000000},
{0.523579, 0.523579, -1.000000},
{0.411373, 0.615663, -1.000000},
{0.523579, -0.523579, -1.000000},
{0.615663, -0.411373, -1.000000},
{0.684088, -0.283359, -1.000000},
{-0.523579, -0.523579, -1.000000},
{-0.411373, -0.615663, -1.000000},
{-0.283359, -0.684088, -1.000000},
{-0.684088, 0.283359, -1.000000},
{-0.523579, 0.523579, -1.000000},
{-0.615663, 0.411373, -1.000000},
{-0.144455, 0.726224, -1.000000},
{0.000000, 0.740452, -1.000000},
{0.144455, 0.726224, -1.000000},
{0.283359, -0.684088, -1.000000},
{0.684088, 0.283359, -1.000000},
{0.615663, 0.411373, -1.000000},
{0.740452, 0.000000, -1.000000},
{0.726224, -0.144455, -1.000000},
{0.726224, 0.144455, -1.000000},
{0.411373, -0.615663, -1.000000},
{-0.740452, 0.000000, -1.000000},
{-0.726224, -0.144455, -1.000000},
{-0.726224, 0.144455, -1.000000},
{-0.615663, -0.411373, -1.000000},
{-0.684088, -0.283359, -1.000000},
{-0.283359, 0.684088, -1.000000},
{-0.411373, 0.615663, -1.000000},
{0.144455, -0.726224, -1.000000},
{-0.144455, -0.726224, -1.000000},
{0.000000, -0.740452, -1.000000},
};
const vec2 mesh_Cylinder_UVMap_uvmap[] = {
};
const vec3 mesh_Cylinder_normal[] = {
{0.000000, 1.000000, 0.000000},
{0.000000, 1.000000, 0.000000},
{0.195090, 0.980785, 0.000000},
{0.195090, 0.980785, 0.000000},
{0.382683, 0.923880, 0.000000},
{0.382683, 0.923880, 0.000000},
{0.555570, 0.831470, 0.000000},
{0.555570, 0.831470, 0.000000},
{0.707107, 0.707107, 0.000000},
{0.707107, 0.707107, 0.000000},
{0.831470, 0.555570, 0.000000},
{0.831470, 0.555570, 0.000000},
{0.923880, 0.382683, 0.000000},
{0.923880, 0.382683, 0.000000},
{0.980785, 0.195090, 0.000000},
{0.980785, 0.195090, 0.000000},
{1.000000, 0.000000, 0.000000},
{1.000000, 0.000000, 0.000000},
{0.980785, -0.195090, 0.000000},
{0.980785, -0.195090, 0.000000},
{0.923880, -0.382683, 0.000000},
{0.923880, -0.382683, 0.000000},
{0.831470, -0.555570, 0.000000},
{0.831470, -0.555570, 0.000000},
{0.707107, -0.707107, 0.000000},
{0.707107, -0.707107, 0.000000},
{0.555570, -0.831470, 0.000000},
{0.555570, -0.831470, 0.000000},
{0.382683, -0.923880, 0.000000},
{0.382683, -0.923880, 0.000000},
{0.195090, -0.980785, 0.000000},
{0.195090, -0.980785, 0.000000},
{0.000000, -1.000000, 0.000000},
{0.000000, -1.000000, 0.000000},
{-0.195090, -0.980785, 0.000000},
{-0.195090, -0.980785, 0.000000},
{-0.382683, -0.923880, 0.000000},
{-0.382683, -0.923880, 0.000000},
{-0.555570, -0.831470, 0.000000},
{-0.555570, -0.831470, 0.000000},
{-0.707107, -0.707107, 0.000000},
{-0.707107, -0.707107, 0.000000},
{-0.831470, -0.555570, 0.000000},
{-0.831470, -0.555570, 0.000000},
{-0.923880, -0.382683, 0.000000},
{-0.923880, -0.382683, 0.000000},
{-0.980785, -0.195090, 0.000000},
{-0.980785, -0.195090, 0.000000},
{-1.000000, 0.000000, 0.000000},
{-1.000000, 0.000000, 0.000000},
{-0.980785, 0.195090, 0.000000},
{-0.980785, 0.195090, 0.000000},
{-0.923880, 0.382683, 0.000000},
{-0.923880, 0.382683, 0.000000},
{-0.831470, 0.555570, 0.000000},
{-0.831470, 0.555570, 0.000000},
{-0.707107, 0.707107, 0.000000},
{-0.707107, 0.707107, 0.000000},
{-0.555570, 0.831470, 0.000000},
{-0.555570, 0.831470, 0.000000},
{-0.382683, 0.923880, 0.000000},
{-0.382683, 0.923880, 0.000000},
{-0.195090, 0.980785, 0.000000},
{-0.195090, 0.980785, 0.000000},
{0.555570, -0.831470, 0.000000},
{0.382683, -0.923880, 0.000000},
{0.195090, -0.980785, 0.000000},
{0.980785, 0.195090, 0.000000},
{0.831470, 0.555570, 0.000000},
{0.923880, 0.382683, 0.000000},
{-0.195090, 0.980785, 0.000000},
{-0.555570, 0.831470, 0.000000},
{-0.382683, 0.923880, 0.000000},
{-0.831470, -0.555570, 0.000000},
{-0.980785, -0.195090, 0.000000},
{-0.923880, -0.382683, 0.000000},
{1.000000, 0.000000, 0.000000},
{0.980785, -0.195090, 0.000000},
{0.831470, -0.555570, 0.000000},
{0.923880, -0.382683, 0.000000},
{0.707107, -0.707107, 0.000000},
{0.555570, 0.831470, 0.000000},
{0.000000, -1.000000, 0.000000},
{-0.382683, -0.923880, 0.000000},
{-0.195090, -0.980785, 0.000000},
{0.707107, 0.707107, 0.000000},
{0.382683, 0.923880, 0.000000},
{0.195090, 0.980785, 0.000000},
{0.000000, 1.000000, 0.000000},
{-0.555570, -0.831470, 0.000000},
{-0.831470, 0.555570, 0.000000},
{-0.707107, -0.707107, 0.000000},
{-0.980785, 0.195090, 0.000000},
{-1.000000, 0.000000, 0.000000},
{-0.923880, 0.382683, 0.000000},
{-0.707107, 0.707107, 0.000000},
{-0.382683, -0.923880, 0.000000},
{-0.707107, -0.707107, 0.000000},
{-0.555570, -0.831470, 0.000000},
{-0.707107, 0.707107, 0.000000},
{-0.831470, 0.555570, 0.000000},
{-0.923880, 0.382683, 0.000000},
{0.707107, 0.707107, 0.000000},
{0.555570, 0.831470, 0.000000},
{0.382683, 0.923880, 0.000000},
{0.923880, -0.382683, 0.000000},
{0.707107, -0.707107, 0.000000},
{0.831470, -0.555570, 0.000000},
{0.195090, -0.980785, 0.000000},
{0.000000, -1.000000, 0.000000},
{-0.195090, -0.980785, 0.000000},
{-0.382683, 0.923880, 0.000000},
{-0.923880, -0.382683, 0.000000},
{-0.831470, -0.555570, 0.000000},
{-1.000000, 0.000000, 0.000000},
{-0.980785, 0.195090, 0.000000},
{-0.980785, -0.195090, 0.000000},
{-0.555570, 0.831470, 0.000000},
{1.000000, 0.000000, 0.000000},
{0.980785, 0.195090, 0.000000},
{0.980785, -0.195090, 0.000000},
{0.831470, 0.555570, 0.000000},
{0.923880, 0.382683, 0.000000},
{0.382683, -0.923880, 0.000000},
{0.555570, -0.831470, 0.000000},
{-0.195090, 0.980785, 0.000000},
{0.195090, 0.980785, 0.000000},
{0.000000, 1.000000, 0.000000},
};
const vec3 mesh_Cylinder_polygon_normal[] = {
{0.098017, 0.995185, 0.000000},
{0.290285, 0.956940, 0.000000},
{0.471397, 0.881921, 0.000000},
{0.634393, 0.773010, 0.000000},
{0.773010, 0.634393, 0.000000},
{0.881921, 0.471397, 0.000000},
{0.956940, 0.290285, 0.000000},
{0.995185, 0.098017, 0.000000},
{0.995185, -0.098017, 0.000000},
{0.956940, -0.290285, 0.000000},
{0.881921, -0.471397, 0.000000},
{0.773010, -0.634393, 0.000000},
{0.634393, -0.773010, 0.000000},
{0.471397, -0.881921, 0.000000},
{0.290285, -0.956940, 0.000000},
{0.098017, -0.995185, 0.000000},
{-0.098017, -0.995185, 0.000000},
{-0.290285, -0.956940, 0.000000},
{-0.471397, -0.881921, 0.000000},
{-0.634393, -0.773010, 0.000000},
{-0.773010, -0.634393, 0.000000},
{-0.881921, -0.471397, 0.000000},
{-0.956940, -0.290285, 0.000000},
{-0.995185, -0.098017, 0.000000},
{-0.995185, 0.098017, 0.000000},
{-0.956940, 0.290285, 0.000000},
{-0.881921, 0.471397, 0.000000},
{-0.773010, 0.634393, 0.000000},
{-0.634393, 0.773010, 0.000000},
{-0.471397, 0.881921, 0.000000},
{-0.290285, 0.956940, 0.000000},
{-0.098017, 0.995185, 0.000000},
{-0.098017, -0.995185, 0.000000},
{-0.290285, -0.956940, 0.000000},
{-0.471397, -0.881921, 0.000000},
{-0.634393, -0.773010, 0.000000},
{-0.773010, -0.634393, 0.000000},
{-0.881921, -0.471397, 0.000000},
{-0.956940, -0.290285, 0.000000},
{-0.995185, -0.098017, 0.000000},
{-0.995185, 0.098017, 0.000000},
{-0.956940, 0.290285, 0.000000},
{-0.881921, 0.471397, 0.000000},
{-0.773010, 0.634393, 0.000000},
{-0.634393, 0.773010, 0.000000},
{-0.471397, 0.881921, 0.000000},
{-0.290285, 0.956940, 0.000000},
{-0.098017, 0.995185, 0.000000},
{0.098017, 0.995185, 0.000000},
{0.290285, 0.956940, 0.000000},
{0.471397, 0.881921, 0.000000},
{0.634393, 0.773010, 0.000000},
{0.773010, 0.634393, 0.000000},
{0.881921, 0.471397, 0.000000},
{0.956940, 0.290285, 0.000000},
{0.995185, 0.098017, 0.000000},
{0.995185, -0.098017, 0.000000},
{0.956940, -0.290285, 0.000000},
{0.881921, -0.471397, 0.000000},
{0.773010, -0.634393, 0.000000},
{0.634393, -0.773010, 0.000000},
{0.471397, -0.881921, 0.000000},
{0.290285, -0.956940, 0.000000},
{0.098017, -0.995185, 0.000000},
};
const polygon mesh_Cylinder_polygons[] = {
{0, 1, 3, 2, 0, 0},
{2, 3, 5, 4, 0, 4},
{4, 5, 7, 6, 0, 8},
{6, 7, 9, 8, 0, 12},
{8, 9, 11, 10, 0, 16},
{10, 11, 13, 12, 0, 20},
{12, 13, 15, 14, 0, 24},
{14, 15, 17, 16, 0, 28},
{16, 17, 19, 18, 0, 32},
{18, 19, 21, 20, 0, 36},
{20, 21, 23, 22, 0, 40},
{22, 23, 25, 24, 0, 44},
{24, 25, 27, 26, 0, 48},
{26, 27, 29, 28, 0, 52},
{28, 29, 31, 30, 0, 56},
{30, 31, 33, 32, 0, 60},
{32, 33, 35, 34, 0, 64},
{34, 35, 37, 36, 0, 68},
{36, 37, 39, 38, 0, 72},
{38, 39, 41, 40, 0, 76},
{40, 41, 43, 42, 0, 80},
{42, 43, 45, 44, 0, 84},
{44, 45, 47, 46, 0, 88},
{46, 47, 49, 48, 0, 92},
{48, 49, 51, 50, 0, 96},
{50, 51, 53, 52, 0, 100},
{52, 53, 55, 54, 0, 104},
{54, 55, 57, 56, 0, 108},
{56, 57, 59, 58, 0, 112},
{58, 59, 61, 60, 0, 116},
{60, 61, 63, 62, 0, 120},
{62, 63, 1, 0, 0, 124},
{110, 84, 82, 109, 0, 128},
{96, 83, 84, 110, 0, 132},
{98, 89, 83, 96, 0, 136},
{97, 91, 89, 98, 0, 140},
{73, 91, 97, 113, 0, 144},
{75, 73, 113, 112, 0, 148},
{74, 75, 112, 116, 0, 152},
{93, 74, 116, 114, 0, 156},
{92, 93, 114, 115, 0, 160},
{94, 92, 115, 101, 0, 164},
{90, 94, 101, 100, 0, 168},
{95, 90, 100, 99, 0, 172},
{71, 95, 99, 117, 0, 176},
{72, 71, 117, 111, 0, 180},
{70, 72, 111, 125, 0, 184},
{88, 70, 125, 127, 0, 188},
{87, 88, 127, 126, 0, 192},
{86, 87, 126, 104, 0, 196},
{81, 86, 104, 103, 0, 200},
{85, 81, 103, 102, 0, 204},
{121, 68, 85, 102, 0, 208},
{122, 69, 68, 121, 0, 212},
{119, 67, 69, 122, 0, 216},
{118, 76, 67, 119, 0, 220},
{120, 77, 76, 118, 0, 224},
{105, 79, 77, 120, 0, 228},
{107, 78, 79, 105, 0, 232},
{106, 80, 78, 107, 0, 236},
{124, 64, 80, 106, 0, 240},
{123, 65, 64, 124, 0, 244},
{108, 66, 65, 123, 0, 248},
{109, 82, 66, 108, 0, 252},
};
const mesh_material mesh_Cylinder_materials[] = {
};
const vec2 * mesh_Cylinder_uv_layers[] = {
mesh_Cylinder_UVMap_uvmap,
};
const mesh mesh_Cylinder = {
.position = mesh_Cylinder_position,
.position_length = (sizeof (mesh_Cylinder_position)) / (sizeof (mesh_Cylinder_position[0])),
.normal = mesh_Cylinder_normal,
.normal_length = (sizeof (mesh_Cylinder_normal)) / (sizeof (mesh_Cylinder_normal[0])),
.polygon_normal = mesh_Cylinder_polygon_normal,
.polygon_normal_length = (sizeof (mesh_Cylinder_polygon_normal)) / (sizeof (mesh_Cylinder_polygon_normal[0])),
.polygons = mesh_Cylinder_polygons,
.polygons_length = (sizeof (mesh_Cylinder_polygons)) / (sizeof (mesh_Cylinder_polygons[0])),
.uv_layers = mesh_Cylinder_uv_layers,
.uv_layers_length = (sizeof (mesh_Cylinder_uv_layers)) / (sizeof (mesh_Cylinder_uv_layers[0])),
.materials = mesh_Cylinder_materials,
.materials_length = (sizeof (mesh_Cylinder_materials)) / (sizeof (mesh_Cylinder_materials[0])),
};
const vec3 mesh_Plane_position[] = {
{-1.000000, -1.000000, 0.000000},
{1.000000, -1.000000, 0.000000},
{-1.000000, 1.000000, 0.000000},
{1.000000, 1.000000, 0.000000},
};
const vec2 mesh_Plane_UVMap_uvmap[] = {
{0.000000, 0.000000},
{1.000000, 0.000000},
{1.000000, 1.000000},
{0.000000, 1.000000},
};
const vec3 mesh_Plane_normal[] = {
{0.000000, 0.000000, 1.000000},
{0.000000, 0.000000, 1.000000},
{0.000000, 0.000000, 1.000000},
{0.000000, 0.000000, 1.000000},
};
const vec3 mesh_Plane_polygon_normal[] = {
{0.000000, 0.000000, 1.000000},
};
const polygon mesh_Plane_polygons[] = {
{0, 1, 3, 2, 0, 0},
};
const mesh_material mesh_Plane_materials[] = {
};
const vec2 * mesh_Plane_uv_layers[] = {
mesh_Plane_UVMap_uvmap,
};
const mesh mesh_Plane = {
.position = mesh_Plane_position,
.position_length = (sizeof (mesh_Plane_position)) / (sizeof (mesh_Plane_position[0])),
.normal = mesh_Plane_normal,
.normal_length = (sizeof (mesh_Plane_normal)) / (sizeof (mesh_Plane_normal[0])),
.polygon_normal = mesh_Plane_polygon_normal,
.polygon_normal_length = (sizeof (mesh_Plane_polygon_normal)) / (sizeof (mesh_Plane_polygon_normal[0])),
.polygons = mesh_Plane_polygons,
.polygons_length = (sizeof (mesh_Plane_polygons)) / (sizeof (mesh_Plane_polygons[0])),
.uv_layers = mesh_Plane_uv_layers,
.uv_layers_length = (sizeof (mesh_Plane_uv_layers)) / (sizeof (mesh_Plane_uv_layers[0])),
.materials = mesh_Plane_materials,
.materials_length = (sizeof (mesh_Plane_materials)) / (sizeof (mesh_Plane_materials[0])),
};
const object objects[] = {
{ // object_Cylinder
.mesh = &mesh_Cylinder,
.scale = {1.000000, 1.000000, 1.000000},
.rotation = {0.000000, 0.000000, 0.000000, 1.000000}, // quaternion (XYZW)
.location = {0.000000, 0.000000, 0.000000},
},
{ // object_Plane
.mesh = &mesh_Plane,
.scale = {2.000000, 2.000000, 2.000000},
.rotation = {0.000000, 0.000000, 0.000000, 1.000000}, // quaternion (XYZW)
.location = {0.000000, 0.000000, 0.000000},
},
};
const material materials[] = {
};