mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Source changes needed for Linux build.
This commit is contained in:
parent
109a766748
commit
d2700f881c
16 changed files with 73 additions and 27 deletions
|
|
@ -92,14 +92,14 @@ struct SilhouetteExtractorBasePerspective : public SilhouetteExtractorBase< Poly
|
|||
|
||||
// Determine orientation of each of the polygons.
|
||||
|
||||
const U32 numPolygons = mPolyhedron->getNumPlanes();
|
||||
const U32 numPolygons = this->mPolyhedron->getNumPlanes();
|
||||
mPolygonOrientations = ( Orientation* ) FrameAllocator::alloc( sizeof( Orientation ) * numPolygons );
|
||||
|
||||
Point3F camPos = camView.getPosition();
|
||||
|
||||
for( U32 i = 0; i < numPolygons; ++ i )
|
||||
{
|
||||
if (mPolyhedron->getPlanes()[i].whichSide( camPos ) == PlaneF::Front)
|
||||
if (this->mPolyhedron->getPlanes()[i].whichSide( camPos ) == PlaneF::Front)
|
||||
mPolygonOrientations[i] = FrontFacing;
|
||||
else
|
||||
mPolygonOrientations[i] = BackFacing;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue