]> git.tdb.fi Git - libs/gl.git/blobdiff - source/builders/box.cpp
Some more cleanup of includes and forward declarations
[libs/gl.git] / source / builders / box.cpp
index 46f1b48ed7bfc315a23a221134544adcccf5c19e..1435c976607750294ff26ae885298b9a6ed1f848 100644 (file)
@@ -36,17 +36,14 @@ void BoxBuilder::build(PrimitiveBuilder &builder) const
 void BoxBuilder::build_face(PrimitiveBuilder &builder, const Vector3 &o, const Vector3 &s1, const Vector3 &s2) const
 {
        float l1 = 1, l2 = 1;
-       if(generate_tbn || tex_fit!=STRETCH)
+       if(generate_tan || tex_fit!=STRETCH)
        {
                l1 = s1.norm();
                l2 = s2.norm();
        }
 
-       if(generate_tbn)
-       {
+       if(generate_tan)
                builder.tangent(s1/l1);
-               builder.binormal(s2/l2);
-       }
 
        float u_size = 1;
        float v_size = 1;