/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include #define COC_EPSILON 0.0001 #define SAMPLES_LOOP_1 8 #define SAMPLES_LOOP_2 16 #define SAMPLES_LOOP_3 24 #define SAMPLES_LOOP_TOTAL 48 // Must match the struct in NewDepthOfFieldPasses.cpp struct NewDepthOfFieldConstants { float4 samplePositions[60]; // XY are sample positions (normalized so max lenght is 1) // Z is the length of XY (0 - 1) // W is unused };