diff options
| author | RunitaiLinden <davep@lindenlab.com> | 2023-05-25 16:16:20 -0500 | 
|---|---|---|
| committer | RunitaiLinden <davep@lindenlab.com> | 2023-05-25 16:16:20 -0500 | 
| commit | 30311e5229bff107c2722de68aabb656d9b8f097 (patch) | |
| tree | fb109e438b62529a6b6f22ef4f00a8246640e776 /indra/newview/app_settings/shaders/class1 | |
| parent | c12712aa9609325ba3247a67354e91e9342106d6 (diff) | |
SL-19713 Fix for broken avatar preview render in animation upload.  Incidental decruft and camera FoV network spam reduction.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
| -rw-r--r-- | indra/newview/app_settings/shaders/class1/lighting/sumLightsV.glsl | 10 | 
1 files changed, 1 insertions, 9 deletions
| diff --git a/indra/newview/app_settings/shaders/class1/lighting/sumLightsV.glsl b/indra/newview/app_settings/shaders/class1/lighting/sumLightsV.glsl index 0c3ea4231e..75a327d3d7 100644 --- a/indra/newview/app_settings/shaders/class1/lighting/sumLightsV.glsl +++ b/indra/newview/app_settings/shaders/class1/lighting/sumLightsV.glsl @@ -38,15 +38,7 @@ vec4 sumLights(vec3 pos, vec3 norm, vec4 color)  	col.a = color.a;  	col.rgb = light_diffuse[1].rgb * calcDirectionalLight(norm, light_position[1].xyz); -	col.rgb = scaleDownLight(col.rgb); - -#if defined(LOCAL_LIGHT_KILL) -    col.rgb = vec3(0); -#endif - -#if !defined(SUNLIGHT_KILL) -	col.rgb += atmosAffectDirectionalLight(calcDirectionalLight(norm, light_position[0].xyz)); -#endif +    col.rgb += light_diffuse[1].rgb * sqrt(calcDirectionalLight(norm, -light_position[1].xyz)*0.5+0.25);  	col.rgb = min(col.rgb*color.rgb, 1.0);  	return col;	 | 
