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:
marauder2k7 2024-02-21 06:22:37 +00:00
parent 429585f060
commit a12d915180
7 changed files with 832 additions and 37 deletions

View file

@ -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;
}