Taos API Reference
    Preparing search index...

    Class UnderwaterPass

    Standalone underwater post-process: sinusoidal UV ripple on the HDR sample, a blue cast and a soft radial vignette. Math is shared with the merged CompositePass via the postfx_underwater.wgsl shader module.

    Hierarchy (View Summary)

    • Pass<UnderwaterDeps, UnderwaterOutputs>
      • UnderwaterPass
    Index

    Properties

    name: "UnderwaterPass" = 'UnderwaterPass'

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

    time: number = 0

    Seconds since some arbitrary epoch — drives the ripple animation.

    Methods

    • 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: UnderwaterDeps

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

      Returns UnderwaterOutputs

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