diff options
author | Graham Linden graham@lindenlab.com <Graham Linden graham@lindenlab.com> | 2018-03-08 22:26:31 +0000 |
---|---|---|
committer | Graham Linden graham@lindenlab.com <Graham Linden graham@lindenlab.com> | 2018-03-08 22:26:31 +0000 |
commit | 84e47f45f6974ac4dad626db3bbdf3bacebd41f8 (patch) | |
tree | e713928fd44b417671913b7f4bbdec9f8f3bd5b6 /indra/newview/app_settings/shaders/class3/windlight/advancedAtmoF.glsl | |
parent | 54ee5bfc0557d301c0b29e45923a8ced959dbb66 (diff) |
Get libatmosphere shader into link chain for Adv WL shaders.
Point autobuild at fixed libatmosphere.
Diffstat (limited to 'indra/newview/app_settings/shaders/class3/windlight/advancedAtmoF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/windlight/advancedAtmoF.glsl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class3/windlight/advancedAtmoF.glsl b/indra/newview/app_settings/shaders/class3/windlight/advancedAtmoF.glsl index d27363a60c..014ab9d11b 100644 --- a/indra/newview/app_settings/shaders/class3/windlight/advancedAtmoF.glsl +++ b/indra/newview/app_settings/shaders/class3/windlight/advancedAtmoF.glsl @@ -33,6 +33,7 @@ in vec3 view_dir; uniform vec3 cameraPosLocal; uniform vec3 sun_direction; +uniform float sun_size; uniform sampler2D transmittance_texture; uniform sampler3D scattering_texture; @@ -54,7 +55,7 @@ void main() radiance *= transmittance; // If the view ray intersects the Sun, add the Sun radiance. - if (dot(view_direction, sun_direction) >= sun_size.y) + if (dot(view_direction, sun_direction) >= sun_size) { radiance = radiance + transmittance * GetSolarLuminance(); } |