mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-28 02:53:49 +00:00
Removed old fixed function code from GFX.
This commit is contained in:
parent
58d2e30af7
commit
5a933c00d3
53 changed files with 98 additions and 1646 deletions
|
|
@ -91,35 +91,6 @@ void LightInfo::set( const LightInfo *light )
|
|||
}
|
||||
}
|
||||
|
||||
void LightInfo::setGFXLight( GFXLightInfo *outLight )
|
||||
{
|
||||
switch( getType() )
|
||||
{
|
||||
case LightInfo::Point :
|
||||
outLight->mType = GFXLightInfo::Point;
|
||||
break;
|
||||
case LightInfo::Spot :
|
||||
outLight->mType = GFXLightInfo::Spot;
|
||||
break;
|
||||
case LightInfo::Vector:
|
||||
outLight->mType = GFXLightInfo::Vector;
|
||||
break;
|
||||
case LightInfo::Ambient:
|
||||
outLight->mType = GFXLightInfo::Ambient;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
outLight->mPos = getPosition();
|
||||
outLight->mDirection = getDirection();
|
||||
outLight->mColor = mColor * mBrightness;
|
||||
outLight->mAmbient = mAmbient;
|
||||
outLight->mRadius = mRange.x;
|
||||
outLight->mInnerConeAngle = mInnerConeAngle;
|
||||
outLight->mOuterConeAngle = mOuterConeAngle;
|
||||
}
|
||||
|
||||
void LightInfo::setDirection( const VectorF &dir )
|
||||
{
|
||||
MathUtils::getMatrixFromForwardVector( mNormalize( dir ), &mTransform );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue