UNPKG

@openhps/core

Version:

Open Hybrid Positioning System - Core component

9 lines (7 loc) 277 B
export default /* glsl */` #if defined( USE_LOGDEPTHBUF ) // Doing a strict comparison with == 1.0 can cause noise artifacts // on some platforms. See issue #17623. gl_FragDepth = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5; #endif `;