Skip to content

Commit a84ef80

Browse files
committed
Bump cubemap arrays RGB type back to 16F for improved HDR color precision during IBL
1 parent 1afe1c9 commit a84ef80

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

indra/llrender/llcubemaparray.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void LLCubeMapArray::allocate(U32 resolution, U32 components, U32 count, bool us
156156
bind(0);
157157
free_cur_tex_image();
158158

159-
U32 format = components == 4 ? GL_RGBA16F : GL_R11F_G11F_B10F;
159+
U32 format = components == 4 ? GL_RGBA16F : GL_RGB16F;
160160
if (!hdr)
161161
{
162162
format = components == 4 ? GL_RGBA8 : GL_RGB8;

indra/newview/llreflectionmapmanager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ void LLReflectionMapManager::update()
274274

275275
if (!mRenderTarget.isComplete())
276276
{
277-
U32 color_fmt = render_hdr ? GL_R11F_G11F_B10F : GL_RGB8;
277+
U32 color_fmt = render_hdr ? GL_RGB16F : GL_RGB8;
278278
U32 targetRes = mProbeResolution * 4; // super sample
279279
mRenderTarget.allocate(targetRes, targetRes, color_fmt, true);
280280
}
@@ -287,7 +287,7 @@ void LLReflectionMapManager::update()
287287
mMipChain.resize(count);
288288
for (U32 i = 0; i < count; ++i)
289289
{
290-
mMipChain[i].allocate(res, res, render_hdr ? GL_R11F_G11F_B10F : GL_RGB8);
290+
mMipChain[i].allocate(res, res, render_hdr ? GL_RGB16F : GL_RGB8);
291291
res /= 2;
292292
}
293293
}

0 commit comments

Comments
 (0)