Taos API Reference
    Preparing search index...

    Function packControlTexel

    • Pack one control-map texel (splat mode 3). Two layer ids + blend give two texture taps per texel regardless of palette size; rotation/scale detile the planar sampling frame per texel; autoshader hands the texel to the procedural height/slope rule.

      Parameters

      • opts: {
            base: number;
            overlay?: number;
            blend?: number;
            rotation?: number;
            scale?: number;
            autoshader?: boolean;
        }
        • base: number

          Base layer id (0-31).

        • Optionaloverlay?: number

          Overlay layer id (0-31). Defaults to base.

        • Optionalblend?: number

          Base->overlay blend in [0, 1]. Default 0.

        • Optionalrotation?: number

          UV rotation step (0-15, 22.5 deg each). Default 0.

        • Optionalscale?: number

          UV scale step (0-7 -> 0.75x-1.33x). Default 3 (~1.0x).

        • Optionalautoshader?: boolean

          Procedural height/slope rule wins on this texel.

      Returns number