mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Fixed: V coordinates are inverted
This commit is contained in:
parent
ede299924f
commit
fcee44b388
1 changed files with 2 additions and 1 deletions
|
@ -312,7 +312,8 @@ int main(int argc, char **argv)
|
||||||
NLMISC::fromString(tokens[1], u);
|
NLMISC::fromString(tokens[1], u);
|
||||||
NLMISC::fromString(tokens[2], v);
|
NLMISC::fromString(tokens[2], v);
|
||||||
|
|
||||||
verticeTextureCoords.push_back(NLMISC::CUV(u * (float)TextureSize, v * (float)TextureSize));
|
// V coordinates are inverted
|
||||||
|
verticeTextureCoords.push_back(NLMISC::CUV(u * (float)TextureSize, (1.f - v) * (float)TextureSize));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue