mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
forest shadowvar cleanups
This commit is contained in:
parent
bc407314f8
commit
dd297ce39d
2 changed files with 4 additions and 4 deletions
|
|
@ -151,7 +151,7 @@ void ForestConvex::getFeatures( const MatrixF &mat, const VectorF &n, ConvexFeat
|
||||||
for (i = 0; i < numVerts; i++)
|
for (i = 0; i < numVerts; i++)
|
||||||
{
|
{
|
||||||
cf->mVertexList.increment();
|
cf->mVertexList.increment();
|
||||||
U32 index = emitString[currPos++];
|
index = emitString[currPos++];
|
||||||
mat.mulP(pAccel->vertexList[index], &cf->mVertexList.last());
|
mat.mulP(pAccel->vertexList[index], &cf->mVertexList.last());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -150,10 +150,10 @@ void ForestWind::processTick()
|
||||||
mCurrentInterp = 0;
|
mCurrentInterp = 0;
|
||||||
mCurrentTarget.set( 0, 0 );
|
mCurrentTarget.set( 0, 0 );
|
||||||
|
|
||||||
Point2F windDir( mDirection.x, mDirection.y );
|
Point2F windNorm( mDirection.x, mDirection.y );
|
||||||
windDir.normalizeSafe();
|
windNorm.normalizeSafe();
|
||||||
|
|
||||||
mCurrentTarget = finalVec + windDir;
|
mCurrentTarget = finalVec + windNorm;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue