AutoMovie API
    Preparing search index...

    Interface IAutoMoviePatternTextureTransform

    One occurrence's sampling of its material, in the PBR record's own UV transform.

    Produced by autoMoviePatternTextureTransforms for normalized unit-square UVs. At zero texture centre the viewer/Three matrix is diag(scale) · R(-rotationDeg) · uv + offset: column vectors rotate first and then scale per axis. Offset is in sheet turns, and a mirrored piece uses negative scale.x under the producer's numerical premises.

    interface IAutoMoviePatternTextureTransform {
        id: string;
        offset: { x: number; y: number };
        rotationDeg: number;
        scale: { x: number; y: number };
    }
    Index
    id: string

    Occurrence id, "<zone>/<module>", this transform samples for.

    offset: { x: number; y: number }

    Normalized UV offset, in turns of the texture sheet.

    Type Declaration

    • x: number

      Offset along the texture's own U axis.

    • y: number

      Offset along the texture's own V axis.

    rotationDeg: number

    UV rotation in degrees, within [-180, 180].

    scale: { x: number; y: number }

    Normalized UV scale; a negative x is the mirrored piece.

    Type Declaration

    • x: number

      Scale along the texture's own U axis.

    • y: number

      Computed second-row length; positive under the producer's well-scaled numerical premises.