mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-23 08:33:50 +00:00
more straightforward (and corrected) texcoord assignment
This commit is contained in:
parent
b56867be55
commit
afb3ed0f27
1 changed files with 2 additions and 2 deletions
|
|
@ -2064,7 +2064,7 @@ void ConvexShape::Geometry::generate(const Vector< PlaneF > &planes, const Vecto
|
|||
|
||||
for ( S32 j = 0; j < newFace.points.size(); j++ )
|
||||
{
|
||||
F32 x = planex.distToPlane( points[ newFace.points[ j ] ] );
|
||||
F32 x = -planex.distToPlane( points[ newFace.points[ j ] ] );
|
||||
F32 y = planey.distToPlane( points[ newFace.points[ j ] ] );
|
||||
|
||||
if (!texOffset.empty())
|
||||
|
|
@ -2086,7 +2086,7 @@ void ConvexShape::Geometry::generate(const Vector< PlaneF > &planes, const Vecto
|
|||
if (vertFlip.size() > 0 && vertFlip[i])
|
||||
y *= -1;
|
||||
|
||||
newFace.texcoords[j].set(-x, -y);
|
||||
newFace.texcoords[j].set(x, y);
|
||||
}
|
||||
|
||||
// Data verification tests.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue