Changeset 2445


Ignore:
Timestamp:
Feb 19, 2013, 8:32:24 AM (6 years ago)
Author:
sam
Message:

build: avoid M_PI_2, the PS3 doesn’t have it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/easymesh/easymesh.cpp

    r2443 r2445  
    14531453                if (abs(p[k].y) >= 1.0f)
    14541454                    uv[k].x = -1.f;
    1455                 uv[k].y = (lol::atan2(p[k].y, dot(p[k], normalize(p[k] * vec3(1.f,0.f,1.f)))) + (float)M_PI_2) / (float)M_PI;
     1455                uv[k].y = lol::atan2(p[k].y, dot(p[k], normalize(p[k] * vec3(1.f,0.f,1.f)))) / (float)M_PI + 0.5f;
    14561456                if (h)
    14571457                {
Note: See TracChangeset for help on using the changeset viewer.