UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

9 lines (7 loc) 246 B
var particle_softPS = /* glsl */ ` float depth = getLinearScreenDepth(); float particleDepth = vDepth; float depthDiff = saturate(abs(particleDepth - depth) * softening); a *= depthDiff; `; export { particle_softPS as default };