shifts spotlightparams to the actually used float2/vec2 entries (stops debug screaming every frame)

This commit is contained in:
AzaezelX 2019-11-07 23:18:14 -06:00
parent e75124fdf7
commit 0f2fd9baaa
5 changed files with 5 additions and 5 deletions

View file

@ -2188,7 +2188,7 @@ void RTLightingFeatGLSL::processPix( Vector<ShaderComponent*> &componentList,
inLightSpotDir->arraySize = 4;
inLightSpotDir->constSortPos = cspPotentialPrimitive;
Var * lightSpotParams = new Var( "lightSpotParams", "vec4" );
Var * lightSpotParams = new Var( "lightSpotParams", "vec2" );
lightSpotParams->uniform = true;
lightSpotParams->arraySize = 4;
lightSpotParams->constSortPos = cspPotentialPrimitive;