Bitbybit Docs
    Preparing search index...

    Class GenericTextureDto (Inputs.Draw)

    Feeds draw.createTexture: the image to load and how it lies on a surface, its tiling, offset, rotation and flip, and how it is filtered; the texture then goes into a texture slot of draw.createPBRMaterial.

    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

    Where the image is loaded from, as a path relative to the page or a full web address.

    undefined
    
    name?: string

    The name the engine gives the texture.

    Texture
    
    uScale?: number

    How many times the image repeats along U, the first texture direction of the surface; 0 counts as 1.

    1
    

    0

    Infinity

    0.1

    vScale?: number

    How many times the image repeats along V, the second texture direction of the surface; 0 counts as 1.

    1
    

    0

    Infinity

    0.1

    uOffset?: number

    How far the image is shifted along U, in image widths.

    0
    

    -Infinity

    Infinity

    0.1

    vOffset?: number

    How far the image is shifted along V, in image heights.

    0
    

    -Infinity

    Infinity

    0.1

    wAng?: number

    How far the image is turned on the surface, in radians.

    0
    

    -Infinity

    Infinity

    0.1

    invertY?: boolean

    When true, the image is flipped vertically as it loads; false, the default, keeps its rows in file order.

    false
    
    invertZ?: boolean

    Not read by this renderer; the image keeps its orientation whatever the value.

    false
    

    How the image is sampled when shown larger or smaller than its pixels: nearest keeps hard pixels, bilinear blends neighbors, and trilinear also blends between mipmap levels.

    nearest