Commit 9a8e99d4 authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Enable DOF underwater

parent 1259116f
......@@ -7851,8 +7851,7 @@ void LLPipeline::renderFinalize()
if (LLPipeline::sRenderDeferred)
{
auto& viewerCamera = LLViewerCamera::instance();
bool dof_enabled = !viewerCamera.cameraUnderWater() &&
(RenderDepthOfFieldInEditMode || !LLToolMgr::getInstance()->inBuildMode()) &&
bool dof_enabled = (RenderDepthOfFieldInEditMode || !LLToolMgr::getInstance()->inBuildMode()) &&
RenderDepthOfField;
bool multisample = RenderFSAASamples > 1 && (mFXAABuffer.isComplete() || (mSMAAEdgeBuffer.isComplete() && mSMAABlendBuffer.isComplete()));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment