Start correcting fixes for wrong image origin

This commit is contained in:
Alexander Bock
2016-04-20 11:35:28 +02:00
parent acc6095ba3
commit ea91d50b87
4 changed files with 18 additions and 16 deletions
+5 -3
View File
@@ -71,8 +71,9 @@ PowerScaledSphere::PowerScaledSphere(const PowerScaledScalar& radius, int segmen
if (!(x == 0.f && y == 0.f && z == 0.f))
normal = glm::normalize(normal);
const float t1 = fj / fsegments;
const float t2 = fi / fsegments;
const float t1 = (fj / fsegments);
const float t2 = 1.f - (fi / fsegments);
//const float t2 = fi / fsegments;
//double tp = 1.0 / pow(10, static_cast<GLfloat>(radius[1]));
@@ -204,7 +205,8 @@ PowerScaledSphere::PowerScaledSphere(properties::Vec4Property &radius, int segme
_varray[nr].normal[2] = normal[2];
const float t1 = fj / fsegments;
const float t2 = fi / fsegments;
//const float t2 = fi / fsegments;
const float t2 = 1.f - (fi / fsegments);
_varray[nr].tex[0] = t1;
_varray[nr].tex[1] = t2;