]> git.tdb.fi Git - libs/gl.git/blobdiff - source/geometrybuilder.cpp
Fix matrix interpolation parameter calculation
[libs/gl.git] / source / geometrybuilder.cpp
index 327e8fcf8a3b56b4daa35b8bf20727bc6f7c6ad6..729b40facc1709ddecc794aa2637c65ac1bdd391 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgl
-Copyright © 2011  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #include "geometrybuilder.h"
 #include "meshbuilder.h"
 
@@ -12,20 +5,13 @@ namespace Msp {
 namespace GL {
 
 GeometryBuilder::GeometryBuilder():
-       tangent_attr(-1),
-       binormal_attr(-1),
+       generate_tbn(false),
        tex_fit(STRETCH)
 { }
 
-GeometryBuilder &GeometryBuilder::tangent(unsigned t)
-{
-       tangent_attr = t;
-       return *this;
-}
-
-GeometryBuilder &GeometryBuilder::binormal(unsigned b)
+GeometryBuilder &GeometryBuilder::tbn(bool t)
 {
-       binormal_attr = b;
+       generate_tbn = t;
        return *this;
 }