diff options
author | Erwin Coumans <blender@erwincoumans.com> | 2006-02-13 08:45:32 +0300 |
---|---|---|
committer | Erwin Coumans <blender@erwincoumans.com> | 2006-02-13 08:45:32 +0300 |
commit | e4790aef46f7ca0b4ab01c34f043be9e7b1fa7f1 (patch) | |
tree | 0d83145e454cc7b5947ec657dbd9e415aac9d809 /source/gameengine/Rasterizer/RAS_TexVert.cpp | |
parent | 6c325d74f534d259820c2b2d94d5b73b3acf0a35 (diff) |
Improved OpenGL Shader Language support for game engine. The python interface is much simplified. Drawback is that scripts need to be updated next release. Testfiles:
http://www.continuousphysics.com/ftp/pub/test/index.php?dir=blender/&file=demos-2.42.zip
patch by Charlie Carley (snailrose @ elysiun.com)
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; |