This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
frostbite/snowlib/Mesh.cpp
2020-02-06 00:23:46 +00:00

16 lines
249 B
C++

#include "Mesh.h"
#include "assert.h"
void Mesh::adjustUVs(int textureWidth, int textureHeight)
{
for (int i=0; i<numVertices; ++i)
{
FloatPoint& uv = uvCoords[i];
uv.x /= textureWidth;
uv.y /= textureHeight;
//uv.y = 1.0f - uv.y;
}
}