X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuilders%2Fsphere.cpp;fp=source%2Fbuilders%2Fsphere.cpp;h=f7e06eb7041de62564329a807236a3db799e5ae0;hb=86721a55699193e63c76e8a0a7b0ced0416c1cce;hp=dd27fad40e28cc1608ad9699b121d1c4af0f0ffb;hpb=34e3f9d66eb394d8ad69ee66db0cca35b0a15123;p=libs%2Fgl.git diff --git a/source/builders/sphere.cpp b/source/builders/sphere.cpp index dd27fad4..f7e06eb7 100644 --- a/source/builders/sphere.cpp +++ b/source/builders/sphere.cpp @@ -43,11 +43,8 @@ void UvSphereBuilder::build(PrimitiveBuilder &builder) const builder.normal(cv*cu, cv*su, sv); builder.texcoord(j*u_scale, i*v_scale); - if(generate_tbn) - { + if(generate_tan) builder.tangent(-su, cu, 0); - builder.binormal(-sv*cu, -sv*su, cv); - } builder.vertex(cv*cu*radius, cv*su*radius, sv*radius); } }