interface Uniforms {
    camera: Camera;
    frameId?: number;
    moon?: AtmosphereLight;
    rayMarchMaxSPP?: number;
    rayMarchMinSPP?: number;
    screenResolution: [number, number];
    sun: AtmosphereLight;
}

Properties

camera: Camera

The current camera parameter.

frameId?: number

The current frame id.

This is only used if FullResolutionRayMarchConfig.randomizeRayOffsets or AerialPerspectiveLutConfig.randomizeRayOffsets is true.

Defaults to 0.

A directional lights that influences the atmosphere.

Ignored if SkyAtmosphereLutRenderer is not configured to render the moon.

rayMarchMaxSPP?: number

Maximum number of ray marching samples per pixel when rendering the sky view lookup table or rendering the sky using per-pixel ray marching.

Defaults to 30.

rayMarchMinSPP?: number

Minimum number of ray marching samples per pixel when rendering the sky view lookup table or rendering the sky using per-pixel ray marching.

Defaults to 14.

screenResolution: [number, number]

Resolution of the output texture.

A directional light that influences the atmosphere.

Defaults to the default sun.