diff options
author | Dave Houlton <euclid@lindenlab.com> | 2019-12-20 10:09:39 -0700 |
---|---|---|
committer | Dave Houlton <euclid@lindenlab.com> | 2019-12-20 10:09:39 -0700 |
commit | b4987c5f5c08669d2e7a97eeacf222ff5120c490 (patch) | |
tree | b74d90e43e2b7aa8609b84075994331f1fcae556 | |
parent | b3e11083cc31abfa7cebf2c3acc6aeebfc1f4205 (diff) | |
parent | 874368d4f30b59640e843d7e30c612dd0d0baa75 (diff) |
Sync latest from DRTVWR-440
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/materialF.glsl | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl b/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl index 52c69b46ea..1be1595a47 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl @@ -277,7 +277,7 @@ void main() final_color.a = max(final_color.a, emissive_brightness); // Texture - // [x] Full Bright Object + // [x] Full Bright (emissive_brightness >= 1.0) // Shininess (specular) // [X] Texture // Environment Intensity = 1 @@ -292,11 +292,14 @@ void main() // We remap the environment intensity to closely simulate what non-EEP is doing. // At midnight the brightness is exact. // At midday the brightness is very close. -#ifdef HAS_SKIN vec4 final_normal = vec4(abnormal, env_intensity, 0.0); -#else - float ei = env_intensity*0.5 + 0.5; - vec4 final_normal = vec4(abnormal, ei, 0.0); + +#ifdef HAS_SPECULAR_MAP + if( emissive_brightness >= 1.0) + { + float ei = env_intensity*0.5 + 0.5; + final_normal = vec4(abnormal, ei, 0.0); + } #endif vec4 final_specular = spec; |