From: Mikko Rasa Date: Thu, 3 Feb 2011 21:20:43 +0000 (+0000) Subject: Fix capsule end vertex coordinates X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9efabb345fbcc8fb183597e3a264c9847dd7fa53;p=libs%2Fgl.git Fix capsule end vertex coordinates --- diff --git a/source/capsule.cpp b/source/capsule.cpp index fd4dbb0f..e4c93ae7 100644 --- a/source/capsule.cpp +++ b/source/capsule.cpp @@ -43,7 +43,7 @@ void CapsuleBuilder::build(PrimitiveBuilder &builder) const builder.normal(0, 0, -1); builder.texcoord(0.5, 0); - builder.vertex(0, 0, -length/2+radius); + builder.vertex(0, 0, -length/2-radius); for(unsigned i=1; irings/2 ? 0.5 : -0.5); @@ -67,7 +67,7 @@ void CapsuleBuilder::build(PrimitiveBuilder &builder) const } builder.normal(0, 0, 1); builder.texcoord(0.5, (length+radius*M_PI)*v_scale); - builder.vertex(0, 0, length/2-radius); + builder.vertex(0, 0, length/2+radius); for(unsigned i=0; i