Taos API Reference
    Preparing search index...

    Class ForwardLitFeature

    Forward-lit PBR pass. Loads frame.hdr if a previous feature wrote it (e.g. a sky), otherwise creates fresh HDR + depth attachments. Reads frame.opaque (and frame.transparent if the pass supports it) for draws.

    Implements

    Index

    Constructors

    Properties

    name: string = ForwardLitFeature.name

    Stable identifier used for lookup, signature hashing, and pass-name keying.

    enabled: boolean = true

    When false, the feature is skipped each frame. Toggling triggers a cached-graph invalidation.

    pass: ForwardPass | null = null

    Methods

    • Toggle the LTC rect-area-light path live (no pass rebuild). Only has an effect when the feature was constructed with areaLightLtc: true (that compiles the LTC variant + uploads the tables); otherwise it's a no-op. When off, rect area lights fall back to representative-point shading.

      Parameters

      • enabled: boolean

      Returns void