Struct
unknown
c_cpp
2 years ago
469 B
2
Indexable
struct VertexPTN { VertexPTN() { position = glm::vec3(0.0f, 0.0f, 0.0f); normal = glm::vec3(0.0f, 1.0f, 0.0f); texcoord = glm::vec2(0.0f, 0.0f); } VertexPTN(glm::vec3 p, glm::vec3 n, glm::vec2 uv) { position = p; normal = n; texcoord = uv; } glm::vec3 position; // Vertex position. glm::vec3 normal; // Vertex normal. glm::vec2 texcoord; // Vertex texture coordinate (will be used later HWs) }; std::vector<VertexPTN> vertices;
Editor is loading...