Lines Matching defs:depth
22 * \brief Inverted depth ranges tests.
77 constexpr float kDepthEpsilon = 0.00025f; // Used to decide if a calculated depth passes the depth test.
78 constexpr float kDepthThreshold = 0.0025f; // Used when checking depth buffer values. Less than depth delta in each pixel (~= 1.4/205).
83 // Maximum depth slope is constant for triangle and the value here is true only for triangle used it this tests.
431 // Interpolate depth value taking the 3 triangle corners into account.
435 const float depth = a * depthValues[0] + b * depthValues[1] + c * depthValues[2];
437 // Depth values are always limited to the range [0,1] by clamping after depth bias addition is performed
438 const float depthClamped = de::clamp(depth + depthBias, 0.0f, 1.0f);
442 if (m_params.depthClampEnable || de::inRange(depth, -kDepthEpsilon, 1.0f + kDepthEpsilon))
449 (de::inRange(depth, -kDepthEpsilon, kDepthEpsilon) ||
450 de::inRange(depth, 1.0f - kDepthEpsilon, 1.0f + kDepthEpsilon)))
761 // depthBiasClamp must be smaller then maximum depth slope to make a difference