Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alchemy
Alchemy Next
Commits
51435319
Commit
51435319
authored
Aug 22, 2021
by
Rye Mutt
🍞
Browse files
Limit water reflection resolution to 512 in forward rendering
parent
9a8e99d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
indra/newview/pipeline.cpp
View file @
51435319
...
...
@@ -1353,6 +1353,11 @@ void LLPipeline::createGLBuffers()
if
(
LLPipeline
::
sWaterReflections
)
{
//water reflection texture
U32
res
=
(
U32
)
llmax
(
gSavedSettings
.
getS32
(
"RenderWaterRefResolution"
),
512
);
if
(
!
sRenderDeferred
)
{
// Clamp to 512 in forward rendering to avoid breaking reflections
res
=
512U
;
}
mWaterRef
.
allocate
(
res
,
res
,
GL_RGBA
,
TRUE
,
FALSE
);
mWaterDis
.
allocate
(
res
,
res
,
GL_RGBA
,
TRUE
,
FALSE
,
LLTexUnit
::
TT_TEXTURE
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment