bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class GenericTextureDto

    Generic texture creation options that work across all supported game engines. These options are mapped to engine-specific texture properties.

    Index

    Constructors

    • Parameters

      • Optionalurl: string
      • Optionalname: string
      • OptionaluScale: number
      • OptionalvScale: number
      • OptionaluOffset: number
      • OptionalvOffset: number
      • OptionalwAng: number
      • OptionalinvertY: boolean
      • OptionalinvertZ: boolean
      • OptionalsamplingMode: Bit.Inputs.Draw.samplingModeEnum

      Returns GenericTextureDto

    Properties

    url: string

    URL of the texture image. Can be a local path or remote URL.

    undefined
    
    name: string

    Name identifier for the texture

    Texture
    
    uScale: number

    Horizontal (U) scale/tiling of the texture

    1
    

    0

    Infinity

    0.1

    vScale: number

    Vertical (V) scale/tiling of the texture

    1
    

    0

    Infinity

    0.1

    uOffset: number

    Horizontal (U) offset of the texture

    0
    

    -Infinity

    Infinity

    0.1

    vOffset: number

    Vertical (V) offset of the texture

    0
    

    -Infinity

    Infinity

    0.1

    wAng: number

    Rotation angle of the texture in radians around the W axis

    0
    

    -Infinity

    Infinity

    0.1

    invertY: boolean

    Invert the texture on the Y axis

    false
    
    invertZ: boolean

    Invert the texture on the Z axis

    false
    

    Texture sampling/filtering mode

    nearest