mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Update vectorLightP.glsl
This commit is contained in:
parent
1c5ab1371e
commit
bfbfed6d66
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ void main()
|
||||||
|
|
||||||
float Sat_NL_Att = saturate( dotNL * shadowed ) * lightBrightness;
|
float Sat_NL_Att = saturate( dotNL * shadowed ) * lightBrightness;
|
||||||
vec3 lightColorOut = lightMapParams.rgb * lightColor.rgb;
|
vec3 lightColorOut = lightMapParams.rgb * lightColor.rgb;
|
||||||
vec4 addToResult = lightAmbient;
|
vec4 addToResult = (lightAmbient * (1 - ambientCameraFactor)) + ( lightAmbient * ambientCameraFactor * saturate(dot(normalize(-vsEyeRay), normal)) );
|
||||||
|
|
||||||
// TODO: This needs to be removed when lightmapping is disabled
|
// TODO: This needs to be removed when lightmapping is disabled
|
||||||
// as its extra work per-pixel on dynamic lit scenes.
|
// as its extra work per-pixel on dynamic lit scenes.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue