Taos API Reference
    Preparing search index...

    Class GeometryFeature

    Deferred geometry pass for material-bearing meshes. Reads frame.opaque and writes the GBuffer into frame.gbuffer. When frame.gbuffer is already set (e.g. by a preceding voxel or marching-cubes feature) this feature loads it and overdraws — letting a deferred scene mix voxel terrain with regular mesh objects.

    Implements

    Index

    Constructors

    Properties

    name: string = GeometryFeature.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: GeometryPass | null = null

    Accessors

    Methods

    • Toggle GPU occlusion culling at runtime. Disabling falls back to plain drawIndexed next frame; re-enabling rebuilds the pyramid before it culls again (one warm-up frame).

      Parameters

      • enabled: boolean

      Returns void