From a81356f841860c0da1ff991393239f6c9221c9f1 Mon Sep 17 00:00:00 2001 From: Dave Parks Date: Wed, 4 May 2011 17:10:40 -0500 Subject: SH-1456 Fix for bad DoF focal point when camera is at rest. --- indra/newview/pipeline.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 02c17f9e78..923c02b860 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -6305,7 +6305,7 @@ void LLPipeline::renderBloom(BOOL for_snapshot, F32 zoom_factor, int subfield) LLViewerObject* obj = LLViewerMediaFocus::getInstance()->getFocusedObject(); if (obj && obj->mDrawable && obj->isSelected()) - { + { //focus on selected media object S32 face_idx = LLViewerMediaFocus::getInstance()->getFocusedFace(); if (obj && obj->mDrawable) { @@ -6320,11 +6320,11 @@ void LLPipeline::renderBloom(BOOL for_snapshot, F32 zoom_factor, int subfield) if (focus_point.isExactlyZero()) { if (LLViewerJoystick::getInstance()->getOverrideCamera()) - { + { //focus on point under cursor focus_point = gDebugRaycastIntersection; } else if (gAgentCamera.cameraMouselook()) - { + { //focus on point under mouselook crosshairs gViewerWindow->cursorIntersect(-1, -1, 512.f, NULL, -1, FALSE, NULL, &focus_point); @@ -6333,12 +6333,12 @@ void LLPipeline::renderBloom(BOOL for_snapshot, F32 zoom_factor, int subfield) { LLViewerObject* obj = gAgentCamera.getFocusObject(); if (obj) - { + { //focus on alt-zoom target focus_point = LLVector3(gAgentCamera.getFocusGlobal()-gAgent.getRegion()->getOriginGlobal()); } else - { - focus_point = gDebugRaycastIntersection; + { //focus on your avatar + focus_point = gAgent.getPositionAgent(); } } } -- cgit v1.2.3