/**************************************************************************** ** ** Copyright (C) 2020 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of Qt 3D Studio. ** ** $QT_BEGIN_LICENSE:FDL$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU Free Documentation License Usage ** Alternatively, this file may be used under the terms of the GNU Free ** Documentation License version 1.3 as published by the Free Software ** Foundation and appearing in the file included in the packaging of ** this file. Please review the following information to ensure ** the GNU Free Documentation License version 1.3 requirements ** will be met: https://www.gnu.org/licenses/fdl-1.3.html. ** $QT_END_LICENSE$ ** ****************************************************************************/ /*! \title Screen Space AO \page screen-space-ao-effect.html \ingroup qt3dstudio-best-practices Screen space ambient occlusion efficiently approximates the ambient occlusion of you layer in real time. It is independent from the layers complexity and works with dynamic scenes. \image effects-screen-space-ao.png \table \header \li Pros \li Cons \row \li \list \li Independent from scene complexity. \li No data pre-processing needed. \li Works with dynamic scenes. \li Works in the same consistent way for every pixel on the screen. \li No CPU usage. \endlist \li \list \li Rather local and in many cases view-dependent, as it is dependent on adjacent texel depths which may be generated by any geometry whatsoever. \li Hard to correctly smooth/blur out the noise without bleeding onto objects. \endlist \endtable \table \header \li Property \li Description \row \li Filter Size \li Controls the shadows size. \row \li Distance Scale \li How strong the shadows are. \row \li Distance Bias \li Controls distance offset. \endtable \section1 Usage The layer which the effect is applied to requires depth prepass for the effect to work. Make sure in your layer's advanced options "disable depth prepass" is unchecked. */