clamp spot angle to 179,

up custommaterial inputs to 16
add Material::PhotometricMask:handling to processedcustommaterial
and for paranoias sake go ahead and be explicit about _getLightMaterial (those *should* be unneeded as they optionally default to that, but it's how they were in the beatup fork during testing)
This commit is contained in:
AzaezelX 2024-02-23 11:52:43 -06:00
parent 4d1395dd57
commit c7cc86b357
4 changed files with 5 additions and 4 deletions

View file

@ -399,9 +399,9 @@ void AdvancedLightBinManager::render( SceneRenderState *state )
sunLight->getCastShadows() &&
!disableShadows &&
sunLight->getExtended<ShadowMapParams>() )
vectorMatInfo = _getLightMaterial( LightInfo::Vector, ShadowType_PSSM );
vectorMatInfo = _getLightMaterial( LightInfo::Vector, ShadowType_PSSM,false,false );
else
vectorMatInfo = _getLightMaterial( LightInfo::Vector, ShadowType_None );
vectorMatInfo = _getLightMaterial( LightInfo::Vector, ShadowType_None, false, false);
// Initialize and set the per-frame parameters after getting
// the vector light material as we use lazy creation.