Interface SkyRendererComputeConfig

External resources and settings required by a SkyAtmosphereLutRenderer.

interface SkyRendererComputeConfig {
    backBuffer: ComputeBackBufferConfig;
    defaultToPerPixelRayMarch?: boolean;
    depthBuffer: DepthBufferConfig;
    distanceToMaxSampleCount?: number;
    rayMarch?: FullResolutionRayMarchConfig;
    renderTarget: ComputeRenderTargetConfig;
}

Hierarchy (view full)

Properties

The back buffer texture to use as back ground for rendering the sky / atmosphere.

defaultToPerPixelRayMarch?: boolean

If this is true, SkyAtmosphereRasterRenderer.renderSky / SkyAtmosphereComputeRenderer.renderLutsAndSky will default to full-screen ray marching to render the atmosphere.

Defaults to false.

depthBuffer: DepthBufferConfig

The depth buffer to limit the ray marching distance when rendering the sky / atmosphere.

distanceToMaxSampleCount?: number

Distance in kilometers at which the maximum number of sampler per ray is used when ray marching the sky (either when rendering the sky view lookup table or when ray marching the sky per pixel).

Defaults to 100 km.

Settings for the full-resolution ray marching pass.

The render target to render into. The result will be blended with the texture data in the backBuffer.