2d
This commit is contained in:
parent
112a8f568b
commit
2a4c8de8d7
2 changed files with 39 additions and 0 deletions
|
|
@ -77,6 +77,16 @@ namespace fishbone {
|
|||
this->triangle(v, t, n);
|
||||
}
|
||||
void triangle(std::vector<struct fishbone::Vector3> vertices, std::vector<struct fishbone::Vector2> texcoords, std::vector<struct fishbone::Vector3> normals);
|
||||
void quad(std::vector<struct fishbone::Vector2> vertices, std::vector<struct fishbone::Vector2> texcoords) {
|
||||
std::vector<struct fishbone::Vector2> v;
|
||||
std::vector<struct fishbone::Vector2> t;
|
||||
|
||||
v = fishbone::quadToTriangle<struct fishbone::Vector2>(vertices);
|
||||
t = fishbone::quadToTriangle<struct fishbone::Vector2>(texcoords);
|
||||
|
||||
this->triangle(v, t);
|
||||
}
|
||||
void triangle(std::vector<struct fishbone::Vector2> vertices, std::vector<struct fishbone::Vector2> texcoords);
|
||||
};
|
||||
|
||||
static float maxDistance = 64;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue