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 From 46d194d352a7da88e7a9c96fba404c61a1bddb89 Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Fri, 14 Sep 2018 00:11:03 +0100 Subject: SL-1872 make daycycle water editor normal map texture control use proper blank normal map asset --- indra/newview/llpaneleditwater.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'indra') diff --git a/indra/newview/llpaneleditwater.cpp b/indra/newview/llpaneleditwater.cpp index bf00ee34f9..5d7c6f3943 100644 --- a/indra/newview/llpaneleditwater.cpp +++ b/indra/newview/llpaneleditwater.cpp @@ -32,6 +32,7 @@ #include "lltexturectrl.h" #include "llcolorswatch.h" #include "llxyvector.h" +#include "llviewercontrol.h" namespace { @@ -88,6 +89,7 @@ BOOL LLPanelSettingsWaterMainTab::postBuild() getChild(FIELD_WATER_UNDERWATER_MOD)->setCommitCallback([this](LLUICtrl *, const LLSD &) { onFogUnderWaterChanged(); }); mTxtNormalMap->setDefaultImageAssetID(LLSettingsWater::GetDefaultWaterNormalAssetId()); + mTxtNormalMap->setBlankImageAssetID(LLUUID( gSavedSettings.getString( "DefaultBlankNormalTexture" ))); mTxtNormalMap->setCommitCallback([this](LLUICtrl *, const LLSD &) { onNormalMapChanged(); }); getChild(FIELD_WATER_WAVE2_XY)->setCommitCallback([this](LLUICtrl *, const LLSD &) { onSmallWaveChanged(); }); -- cgit v1.2.3