]> git.tdb.fi Git - libs/gl.git/blobdiff - source/vertexformat.cpp
Standard vertex components for tangent and binormal vectors
[libs/gl.git] / source / vertexformat.cpp
index 1de430870d6a328d363b169f0fb53125bde2614a..8cc0cec990157719b87ffe70e640b4c579829f77 100644 (file)
@@ -139,6 +139,10 @@ void operator>>(const LexicalConverter &conv, VertexComponent &c)
                c = static_cast<VertexComponent>(COLOR3_FLOAT+(str[5]-'3'));
        else if(str=="COLOR4_UBYTE")
                c = COLOR4_UBYTE;
+       else if(str=="TANGENT3")
+               c = TANGENT3;
+       else if(str=="BINORMAL3")
+               c = BINORMAL3;
        else if(str.size()>=9 && !str.compare(0, 8, "TEXCOORD") && str[8]>='1' && str[8]<='4')
        {
                if(str.size()==9)