@newkrok/three-particles - v2.16.1
    Preparing search index...

    Type Alias SoftParticlesConfig

    Configuration for soft (depth-faded) particles. When enabled, particles fade out smoothly near opaque geometry instead of producing a hard intersection line.

    Requires a depth texture from a WebGLRenderTarget with DepthTexture. If depthTexture is not provided, soft particles are automatically disabled regardless of the enabled flag.

    false
    
    1.0
    
    // Create a render target with a depth texture
    const rt = new THREE.WebGLRenderTarget(width, height, {
    depthTexture: new THREE.DepthTexture(width, height),
    });

    // Pass it to the particle system config
    const config = {
    renderer: {
    softParticles: {
    enabled: true,
    intensity: 1.5,
    depthTexture: rt.depthTexture,
    },
    },
    };
    type SoftParticlesConfig = {
        depthTexture?: THREE.DepthTexture;
        enabled?: boolean;
        intensity?: number;
    }
    Index

    Properties

    depthTexture?: THREE.DepthTexture

    A THREE.DepthTexture attached to the render target that contains the scene's depth pass. Must be updated every frame before the particle system renders.

    enabled?: boolean

    Whether soft particle fading is active.

    intensity?: number

    Controls the fade distance in world units. Higher values produce a wider fade zone. Typical range: 0.1 to 5.0.