Taos API Reference
    Preparing search index...

    Class AerialVolumePass

    Bakes the aerial-perspective froxel volume each frame: one compute dispatch marching a 32×32 grid of view rays through 32 squared-depth slices (see aerial_volume.wgsl). DeferredLightingFeature runs it whenever aerial perspective is enabled and hands the two 3D textures to DeferredLightingPass, which applies the haze with a single trilinear tap per shaded pixel.

    Hierarchy (View Summary)

    • Pass<AerialVolumeDeps, AerialVolumeOutputs>
      • AerialVolumePass
    Index

    Properties

    Methods

    Properties

    name: "AerialVolumePass" = 'AerialVolumePass'

    Human-readable identifier used in graph node labels and error messages.

    Methods

    • Upload this frame's march parameters. Pass the SAME aerial params the lighting pass holds (plus its planet center/mode) and the toward-sun vector the aerial fog uses, so the volume and the composite agree.

      Parameters

      Returns void

    • Insert the pass into graph for one frame. Implementations call graph.addPass(name, type, b => { ... }) exactly once and use the supplied PassBuilder to declare reads, writes, transient resources, and the execute callback.

      Parameters

      • graph: RenderGraph

        Graph being built this frame.

      • deps: AerialVolumeDeps = {}

        Pass-specific dependency record (handles, scene data, etc.).

      Returns AerialVolumeOutputs

      Pass-specific output record (typically a set of handles downstream passes will consume).