summaryrefslogtreecommitdiff
path: root/indra/newview/llreflectionmapmanager.cpp
diff options
context:
space:
mode:
authorRye Mutt <rye@alchemyviewer.org>2022-09-01 17:30:48 -0400
committerRye Mutt <rye@alchemyviewer.org>2022-09-01 17:30:48 -0400
commitef98be881c3f13e7668f75cb0d302261053d9804 (patch)
tree2c3f43d746e852b4ee5064306252e427291edff9 /indra/newview/llreflectionmapmanager.cpp
parentd2d257cfa99b685160e16ed93c163018e9fe3c50 (diff)
Use an SRGB buffer for initial reflection map capture for proper linear sampling
Fix irradiance gen up vector to be properly normalized
Diffstat (limited to 'indra/newview/llreflectionmapmanager.cpp')
-rw-r--r--indra/newview/llreflectionmapmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llreflectionmapmanager.cpp b/indra/newview/llreflectionmapmanager.cpp
index d349b7e024..677e920031 100644
--- a/indra/newview/llreflectionmapmanager.cpp
+++ b/indra/newview/llreflectionmapmanager.cpp
@@ -80,7 +80,7 @@ void LLReflectionMapManager::update()
if (!mRenderTarget.isComplete())
{
- U32 color_fmt = GL_RGBA;
+ U32 color_fmt = GL_SRGB8_ALPHA8;
const bool use_depth_buffer = true;
const bool use_stencil_buffer = true;
U32 targetRes = LL_REFLECTION_PROBE_RESOLUTION * 2; // super sample