Creating an procedural cube
A Procedural cube is created using triangles. This procedural cube consists of 12 Triangles, 36 Vertices and 36 Indices. The function uses a vector3 for the size, and a vector4 RGBA for the color, and a boolean for if a cubemap is used. void CreateCube(vec3 size, vec4 color, bool cubemap) { /*4__5 / /| /7_/ |6 0| 1| / 3|_2|/ */ The cube is [...]