@pixi/3d
    Preparing search index...

    Type Alias FogType

    FogType: "linear" | "exponential" | "exp2"

    How distance fog thickens with depth, the distance in front of the camera

    • 'linear': smoothstep(near, far, depth), from no fog at near to full fog at far.
    • 'exponential': 1 - exp(-density * depth). A soft haze that starts right at the camera.
    • 'exp2': 1 - exp(-(density * depth)²). Clear near the camera, then closing in.
    new View3D({ width, height, fog: { type: 'exponential', color: 0xadb2ba, density: 0.18 } });