Taos API Reference
    Preparing search index...

    Class SkyTextureFeature

    Renders the sky as a fullscreen background by sampling an equirectangular HDR texture, clearing the HDR target. Writes frame.hdr.

    Implements

    Index

    Constructors

    Properties

    name: string = SkyTextureFeature.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: SkyTexturePass | null = null

    Methods

    • Swap the sky panorama at runtime. Safe to call any frame; downstream passes see the new texture since the SkyTexturePass owns the sampler binding.

      Parameters

      • texture: Texture
      • Optionalexposure: number

      Returns void