소스 검색

Update vectorLightP.glsl

Anis 10 년 전
부모
커밋
bfbfed6d66
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Templates/Empty/game/shaders/common/lighting/advanced/gl/vectorLightP.glsl

+ 1 - 1
Templates/Empty/game/shaders/common/lighting/advanced/gl/vectorLightP.glsl

@@ -202,7 +202,7 @@ void main()
    
    float Sat_NL_Att = saturate( dotNL * shadowed ) * lightBrightness;
    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
    // as its extra work per-pixel on dynamic lit scenes.