summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2025-02-18 11:33:32 +0200
committerGitHub <noreply@github.com>2025-02-18 11:33:32 +0200
commit8114850e947f2a76e54912524722c48f22851228 (patch)
treec6dbb53065c2875c8a38e97ad12388ac3ce77bcc /indra/newview
parent9b0c167b84f4f5a1f691ab57270dc30fa58bc800 (diff)
#3511 fix for PBR skies being too bright on Low Graphics
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llsettingsvo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/llsettingsvo.cpp b/indra/newview/llsettingsvo.cpp
index 62df6cd275..6023f6885d 100644
--- a/indra/newview/llsettingsvo.cpp
+++ b/indra/newview/llsettingsvo.cpp
@@ -832,6 +832,10 @@ void LLSettingsVOSky::applySpecial(void *ptarget, bool force)
{
shader->uniform3fv(LLShaderMgr::AMBIENT, LLVector3(ambient.mV));
shader->uniform1f(LLShaderMgr::SKY_HDR_SCALE, sqrtf(g)*2.0f); // use a modifier here so 1.0 maps to the "most desirable" default and the maximum value doesn't go off the rails
+
+ // Low quality setting
+ if (!LLPipeline::sReflectionProbesEnabled)
+ probe_ambiance = DEFAULT_AUTO_ADJUST_PROBE_AMBIANCE;
}
else if (psky->canAutoAdjust() && should_auto_adjust)
{ // auto-adjust legacy sky to take advantage of probe ambiance