calculate polygon normal, tangent, and bitangent,

next step, use them for calculation
This commit is contained in:
Anakin
2017-02-05 16:39:37 +01:00
parent 4c40d140a9
commit cdf19911f6
2 changed files with 187 additions and 6 deletions

View File

@@ -18,6 +18,9 @@ struct VertexData
QVector3D position;
QVector2D texCoord;
QVector3D vertexNormal;
QVector3D polygonNormal;
QVector3D tangent;
QVector3D bitangent;
};
struct Segment {