UNPKG

playcanvas

Version:

Open-source WebGL/WebGPU 3D engine for the web

13 lines (12 loc) 267 B
var particle_soft_default = ( /* glsl */ ` float depth = getLinearScreenDepth(); float particleDepth = vDepth; float depthDiff = saturate(abs(particleDepth - depth) * softening); a *= depthDiff; ` ); export { particle_soft_default as default };