@pixi/3d
    Preparing search index...

    Interface Fog

    Distance fog settings for View3D#fog

    Materials with fog turned off, such as a skybox or water that fades itself, ignore it.

    const haze: Fog = { type: 'linear', color: 0xadb2ba, near: 30, far: 55 };

    view.fog = haze;
    haze.far = 80;

    view.fog = { type: 'exp2', color: 0xadb2ba, density: 0.05 };
    view.fog = null;
    interface Fog {
        color?: ColorSource;
        density?: number;
        far?: number;
        near?: number;
        type?: FogType;
    }
    Index
    color?: ColorSource

    Fog colour, in display (sRGB) space like every other colour

    Exposure and the tone curve apply to it as they do to the scene, so give View3D#background the same colour and fully fogged surfaces meet it with no seam, whatever the tone mapping and exposure.

    0xcccccc
    
    view.fog = { color: 'lightsteelblue', near: 20, far: 60 };
    
    density?: number

    How quickly exponential fog thickens, where 0 means no fog; linear fog ignores it

    0
    
    view.fog = { type: 'exponential', density: 0.02 };
    
    far?: number

    Distance where linear fog becomes solid, in world units; the other curves ignore it

    99999999
    
    view.fog = { type: 'linear', near: 0, far: 120 };
    
    near?: number

    Distance where linear fog starts, in world units; the other curves ignore it

    0
    
    view.fog = { type: 'linear', near: 10, far: 40 };
    
    type?: FogType

    How the fog thickens with distance; see FogType

    Read-only: assign a new object to View3D#fog to switch curves.

    'linear'
    
    view.fog = { type: 'exp2', density: 0.04 };