summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/materialF.glsl14
1 files changed, 5 insertions, 9 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl b/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl
index 023172c844..fafecd57cc 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/materialF.glsl
@@ -274,20 +274,16 @@ void main()
#if (DIFFUSE_ALPHA_MODE == DIFFUSE_ALPHA_MODE_EMISSIVE)
final_color.a = diffuse_linear.a;
#endif
- final_color.a = max(final_color.a, emissive_brightness);
-#if !defined(HAS_NORMAL_MAP)
- final_color.a = 0.0f;
-#endif
+ final_color.a = max(final_color.a, emissive_brightness);
+ vec4 final_normal = vec4(encode_normal(normalize(tnorm)), env_intensity, 0.0);
vec4 final_specular = spec;
+
final_specular.a = specular_color.a;
-#ifdef HAS_SPECULAR_MAP
- final_specular.a *= norm.a;
-#endif
- vec4 final_normal = vec4(encode_normal(normalize(tnorm)), env_intensity, 0.0);
-#ifdef HAS_SPECULAR_MAP
+#if HAS_SPECULAR_MAP
+ final_specular.a *= norm.a;
final_normal.z *= spec.a;
#endif