mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-22 16:13:45 +00:00
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:
parent
84be0a369f
commit
a05c83493e
4 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue