Changeset 2567


Ignore:
Timestamp:
Mar 8, 2013, 12:47:55 PM (7 years ago)
Author:
sam
Message:

gpu: ugly hack to avoid sprite artifacts on the PS3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tileset.cpp

    r2558 r2567  
    180180vec2 TileSet::GetImageSize() const
    181181{
    182     return vec2(data->isize);
     182    return vec2(PotUp(data->isize.x), PotUp(data->isize.y));
    183183}
    184184
     
    225225        dtx = -dtx;
    226226    }
     227
     228#if 1
     229    /* HACK: tweak UV values */
     230    tx += (1.f / 128.f) * dtx;
     231    ty += (1.f / 128.f) * dty;
     232    dtx *= 126.f / 128.f;
     233    dty *= 126.f / 128.f;
     234#endif
    227235
    228236    if (!data->img && data->m_texture)
Note: See TracChangeset for help on using the changeset viewer.