From 2f9d08f48d879b1f8929cff513fe07359e80043d Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Thu, 13 Sep 2018 22:08:06 +0100 Subject: Spruce up the non-ALM stars too. --- .../newview/app_settings/shaders/class1/interface/customalphaF.glsl | 6 ++++-- indra/newview/llvosky.cpp | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'indra') diff --git a/indra/newview/app_settings/shaders/class1/interface/customalphaF.glsl b/indra/newview/app_settings/shaders/class1/interface/customalphaF.glsl index a96d04cc39..f6b31a5956 100644 --- a/indra/newview/app_settings/shaders/class1/interface/customalphaF.glsl +++ b/indra/newview/app_settings/shaders/class1/interface/customalphaF.glsl @@ -38,7 +38,9 @@ VARYING vec2 vary_texcoord0; void main() { - vec4 color = vertex_color*texture2D(diffuseMap, vary_texcoord0.xy); - color.a *= custom_alpha; + vec4 color = texture2D(diffuseMap, vary_texcoord0.xy); + color.rgb = pow(color.rgb, vec3(0.45)); + color.rgb *= vertex_color.rgb; + color.a *= max(custom_alpha, vertex_color.a); frag_color = color; } diff --git a/indra/newview/llvosky.cpp b/indra/newview/llvosky.cpp index 231fec46a9..c6267d50ff 100644 --- a/indra/newview/llvosky.cpp +++ b/indra/newview/llvosky.cpp @@ -56,8 +56,6 @@ #include "lltrace.h" #include "llfasttimer.h" -#pragma optimize("", off) - #undef min #undef max -- cgit v1.2.3