UNPKG

playcanvas

Version:

PlayCanvas WebGL game engine

4 lines (2 loc) 228 B
var particle_softPS = "\n float depth = getLinearScreenDepth();\n float particleDepth = vDepth;\n float depthDiff = saturate(abs(particleDepth - depth) * softening);\n a *= depthDiff;\n"; export { particle_softPS as default };