secondlife/viewer#711: More thoroughly clamp terrain PBR detail

meow-7.2.2
Cosmic Linden 2024-01-31 17:03:28 -08:00
parent e38a646018
commit 78f7423bcd
1 changed files with 1 additions and 0 deletions

View File

@ -640,6 +640,7 @@ std::string LLViewerShaderMgr::loadBasicShaders()
const F32 triplanar_factor = gSavedSettings.getF32("RenderTerrainPBRTriplanarBlendFactor");
attribs["TERRAIN_TRIPLANAR_BLEND_FACTOR"] = llformat("%.2f", triplanar_factor);
S32 detail = gSavedSettings.getS32("RenderTerrainPBRDetail");
detail = llclamp(detail, TERRAIN_PBR_DETAIL_MIN, TERRAIN_PBR_DETAIL_MAX);
attribs["TERRAIN_PBR_DETAIL"] = llformat("%d", detail);
}