diff options
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl index ac7b5938fd..822b3e473d 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/softenLightF.glsl @@ -23,6 +23,7 @@ * $/LicenseInfo$ */ +#define PBR_USE_ATMOS 1 #define PBR_USE_GGX_APPROX 1 #define PBR_USE_GGX_EMS_HACK 1 #define PBR_USE_IRRADIANCE_HACK 1 @@ -336,6 +337,14 @@ void main() color.rgb = colorDiffuse + colorEmissive + colorSpec; + vec3 sun_contrib = min(da, scol) * sunlit; +#if PBR_USE_ATMOS + color += sun_contrib; + color *= atten.r; + color += 0.5*additive; + color = scaleSoftClipFrag(color); +#endif // PBR_USE_ATMOS + #if DEBUG_PBR_DIFFUSE color.rgb = colorDiffuse; #endif |