summaryrefslogtreecommitdiff
path: root/indra/newview/pipeline.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-03-04 08:04:18 -0800
committerGraham Linden <graham@lindenlab.com>2019-03-04 08:04:18 -0800
commit45a541d2d5ccff4279441c715d3f80890e71beb9 (patch)
treef16c1cf45d8bd5e2d4d021ed7b01d729f545d688 /indra/newview/pipeline.cpp
parent4c3050a3953153aa8753fc10706ad2ef464f3e3d (diff)
SL-10566
Disable pre-cull of water causing refraction/reflection map generation more than is necessary. Re-org alpha draws to limit state changes based on render type.
Diffstat (limited to 'indra/newview/pipeline.cpp')
-rw-r--r--indra/newview/pipeline.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp
index c81d66527f..4bebf39dbc 100644
--- a/indra/newview/pipeline.cpp
+++ b/indra/newview/pipeline.cpp
@@ -9284,19 +9284,10 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in)
{
skip_avatar_update = true;
}
-
- if (!skip_avatar_update)
- {
- gAgentAvatarp->updateAttachmentVisibility(CAMERA_MODE_THIRD_PERSON);
- }
- LLVertexBuffer::unbind();
-
- LLGLState::checkStates();
- LLGLState::checkTextureChannels();
- LLGLState::checkClientArrays();
LLCamera camera = camera_in;
- camera.setFar(camera.getFar()*0.87654321f);
+
+ camera.setFar(camera_in.getFar() * 0.75f);
bool camera_is_underwater = LLViewerCamera::getInstance()->cameraUnderWater();
@@ -9443,7 +9434,7 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in)
set_current_modelview(current);
}
- //LLPipeline::sUseOcclusion = occlusion;
+ LLPipeline::sUseOcclusion = occlusion;
camera.setOrigin(camera_in.getOrigin());
//render distortion map