Commit b6f9e543 authored by hybrid's avatar hybrid

Make proper texture coords which are not clamped...

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1789 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 4a89e8f7
......@@ -2087,7 +2087,7 @@ void CColladaFileLoader::readPolygonSection(io::IXMLReaderUTF8* reader,
case ECIS_TEXCOORD:
case ECIS_UV:
vtx.TCoords.X = Inputs[k].Data[idx+0];
vtx.TCoords.Y = -Inputs[k].Data[idx+1];
vtx.TCoords.Y = 1-Inputs[k].Data[idx+1];
break;
case ECIS_TANGENT:
break;
......@@ -2215,12 +2215,12 @@ void CColladaFileLoader::readPolygonSection(io::IXMLReaderUTF8* reader,
if (k==secondTexCoordSetIndex)
{
vtx.TCoords2.X = Inputs[k].Data[idx+0];
vtx.TCoords2.Y = -Inputs[k].Data[idx+1];
vtx.TCoords2.Y = 1-Inputs[k].Data[idx+1];
}
else
{
vtx.TCoords.X = Inputs[k].Data[idx+0];
vtx.TCoords.Y = -Inputs[k].Data[idx+1];
vtx.TCoords.Y = 1-Inputs[k].Data[idx+1];
}
break;
case ECIS_TANGENT:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment