adress gl spotlights disapearing for deferred

It was mixing vars up between it and forward. resolved by prefixing the forward vars with "in" as the rest are, as well as pointing the val at the const String ShaderGenVars::lightSpotParams("$inlightSpotParams");
This commit is contained in:
AzaezelX 2021-10-21 22:08:56 -05:00
parent 84be0a369f
commit a05c83493e
4 changed files with 4 additions and 4 deletions

View file

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