diff options
author | Dave Parks <davep@lindenlab.com> | 2022-09-20 19:09:26 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2022-09-20 19:09:26 -0500 |
commit | c466e44334fd60c8270b68c70b8ae999b8dbd395 (patch) | |
tree | 6e5a5e79f9f8af154eee42fb85ed3e1f3c9bb048 /indra/llrender | |
parent | a66a65e047fb662e35eaaa68de6da9e2786db8ed (diff) |
SL-18190 Reduce banding (stay in linear space as much as possible, increase precision of reflection probes). Faster radiance and irradiance map generation.
Diffstat (limited to 'indra/llrender')
-rw-r--r-- | indra/llrender/llcubemaparray.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llrender/llcubemaparray.cpp b/indra/llrender/llcubemaparray.cpp index bb4bd58121..0e452b3d0a 100644 --- a/indra/llrender/llcubemaparray.cpp +++ b/indra/llrender/llcubemaparray.cpp @@ -122,7 +122,7 @@ void LLCubeMapArray::allocate(U32 resolution, U32 components, U32 count, BOOL us bind(0); - glTexImage3D(GL_TEXTURE_CUBE_MAP_ARRAY, 0, GL_RGB, resolution, resolution, count*6, 0, + glTexImage3D(GL_TEXTURE_CUBE_MAP_ARRAY, 0, GL_RGB10_A2, resolution, resolution, count*6, 0, GL_RGB, GL_UNSIGNED_BYTE, nullptr); mImage->setAddressMode(LLTexUnit::TAM_CLAMP); |