Linloir 955c8da52e
Update mesh class
- set vertex attribute on setup mesh
- use new API of shader.setUniform
2022-12-13 12:29:54 +08:00

18 lines
596 B
C++

#pragma once
#include "vertex.h"
Vertex::Vertex() {}
Vertex::Vertex(glm::vec3 position) :
_position(position) {}
Vertex::Vertex(glm::vec3 position, glm::vec3 normal) :
_position(position), _normal(normal) {}
Vertex::Vertex(glm::vec3 position, glm::vec3 normal, glm::vec2 texCoords) :
_position(position), _normal(normal), _texCoords(texCoords) {}
//Vertex::Vertex(glm::vec3 position, glm::vec3 normal, glm::vec2 texCoords, glm::vec3 tangent, glm::vec3 bitangent) :
// _position(position), _normal(normal), _texCoords(texCoords), _tangent(tangent), _bitangent(bitangent) {}