Bitbybit Docs
    Preparing search index...

    Class TextureSimpleDto (Inputs.BabylonTexture)

    Feeds babylon.texture.createSimple: the image address of a texture for material slots, how it tiles, shifts and turns over the surface, and how it is filtered.

    Index

    Constructors

    • Parameters

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

      Returns TextureSimpleDto

    Properties

    name: string

    Name the texture is known by in the scene

    Custom Texture
    
    url: string

    Address of the image; for an uploaded file, make an object URL with asset.createObjectURL first

    undefined
    
    invertY: boolean

    When true, the image is flipped top to bottom; use it when a texture appears upside down

    false
    
    invertZ: boolean

    When true, the image is flipped along the third texture axis, which matters for volume textures only

    false
    
    wAng: number

    How far the image is turned over the surface, in radians

    0
    
    uScale: number

    How many times the image repeats across the surface horizontally; 2 tiles it twice

    1
    
    vScale: number

    How many times the image repeats across the surface vertically; 2 tiles it twice

    1
    
    uOffset: number

    How far the image is shifted horizontally, as a fraction of its width

    0
    
    vOffset: number

    How far the image is shifted vertically, as a fraction of its height

    0
    

    How pixels are read when the image is scaled: nearest keeps hard pixels, bilinear and trilinear blend them

    nearest