mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-24 04:58:59 -05:00
Start correcting fixes for wrong image origin
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user