mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 07:04:36 +00:00
Loads an IES Photometric profile.
ADDED: Ability to add IES profile as the cookie texture slot in both point lights and spot lights TODO: Have the IES Profile also drive the settings for the lights. Make it work with Cookie textures. IES profiles are to be another slot in the advanced light section.
This commit is contained in:
parent
429585f060
commit
a12d915180
7 changed files with 832 additions and 37 deletions
|
|
@ -830,6 +830,7 @@ void AdvancedLightBinManager::LightMaterialInfo::setLightParameters( const Light
|
|||
const F32 radius = lightInfo->getRange().x;
|
||||
const F32 invSqrRadius = 1.0f / (radius * radius);
|
||||
matParams->setSafe( lightRange, radius);
|
||||
matParams->setSafe( lightDirection, -lightInfo->getTransform().getUpVector());
|
||||
matParams->setSafe( lightInvSqrRange, invSqrRadius);
|
||||
luxTargMultiplier =radius;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue