Class SkyWithLutsComputeRenderer

A sky / atmosphere renderer that renders the sky based on lookup tables. It uses GPUComputePipelines to render the sky / atmosphere.

Hierarchy

  • SkyComputeRenderer
    • SkyWithLutsComputeRenderer

Constructors

Properties

bindGroupLayout: GPUBindGroupLayout
doesRayMarchDistantSky: boolean

Accessors

Methods

  • Replaces potentially screen-size dependent external resources (back buffer, depth buffer, and render target) in the internal bind groups.

    Parameters

    Returns void

  • Parameters

    • passEncoder: GPUComputePassEncoder

    Returns void

  • Parameters

    • passEncoder: GPUComputePassEncoder
    • Optional atmosphere: Atmosphere

    Returns void

  • Parameters

    • passEncoder: GPUComputePassEncoder
    • Optional uniforms: Uniforms

    Returns void

  • Parameters

    • passEncoder: GPUComputePassEncoder
    • Optional uniforms: Uniforms
    • Optional atmosphere: Atmosphere
    • Optional useFullResolutionRayMarch: boolean
    • Optional forceConstantLutRendering: boolean
    • Optional forceSkyViewLutRendering: boolean

    Returns void

  • Parameters

    • passEncoder: GPUComputePassEncoder
    • Optional uniforms: Uniforms
    • Optional atmosphere: Atmosphere
    • Optional forceConstantLutRendering: boolean

    Returns void

  • Parameters

    • passEncoder: GPUComputePassEncoder

    Returns void

  • Renders the sky / atmosphere.

    Parameters

    • passEncoder: GPUComputePassEncoder

      A GPUComputePassEncoder to encode the pass with. Can be the same encoder used to initialize lookup tables required. The encoder is not end()ed by this function.

    Returns void

  • Parameters

    • passEncoder: GPUComputePassEncoder

    Returns void

  • Parameters

    • passEncoder: GPUComputePassEncoder

    Returns void