diff options
Diffstat (limited to 'source/gameengine/Rasterizer/RAS_TexVert.cpp')
-rw-r--r-- | source/gameengine/Rasterizer/RAS_TexVert.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/gameengine/Rasterizer/RAS_TexVert.cpp b/source/gameengine/Rasterizer/RAS_TexVert.cpp index 9e9b5725b6b..f6174f6de62 100644 --- a/source/gameengine/Rasterizer/RAS_TexVert.cpp +++ b/source/gameengine/Rasterizer/RAS_TexVert.cpp @@ -39,6 +39,7 @@ RAS_TexVert::RAS_TexVert(const MT_Point3& xyz, const MT_Point2& uv, + const MT_Vector4& tangent, const unsigned int rgba, const MT_Vector3& normal, const short flag) @@ -48,6 +49,7 @@ RAS_TexVert::RAS_TexVert(const MT_Point3& xyz, uv.getValue(m_uv2); // ..py access SetRGBA(rgba); SetNormal(normal); + tangent.getValue(m_tangent); m_flag = flag; m_unit = 2; } @@ -127,6 +129,12 @@ const float* RAS_TexVert::getNormal() const return m_normal; } +const float* RAS_TexVert::getTangent() const +{ + return m_tangent; +} + + const float* RAS_TexVert::getLocalXYZ() const { return m_localxyz; |