pixi.js
    Preparing search index...

    Class TextureStyleAdvanced

    A texture style describes how a texture should be sampled by a shader.

    Hierarchy

    Implements

    Index

    Constructors

    Properties

    addressModeU?: WRAP_MODE
    addressModeV?: WRAP_MODE
    addressModeW?: WRAP_MODE

    Specifies the {{GPUAddressMode|address modes}} for the texture width, height, and depth coordinates, respectively.

    When provided the sampler will be a comparison sampler with the specified COMPARE_FUNCTION. Note: Comparison samplers may use filtering, but the sampling results will be implementation-dependent and may differ from the normal filtering rules.

    destroyed: boolean = false

    Has the style been destroyed?

    lodMaxClamp?: number

    Specifies the minimum and maximum levels of detail, respectively, used internally when sampling a texture.

    lodMinClamp?: number
    magFilter?: SCALE_MODE

    Specifies the sampling behavior when the sample footprint is smaller than or equal to one texel.

    minFilter?: SCALE_MODE

    Specifies the sampling behavior when the sample footprint is larger than one texel.

    mipmapFilter?: SCALE_MODE

    Specifies behavior for sampling between mipmap levels.

    defaultOptions: TextureStyleOptions = ...

    default options for the style

    Accessors

    • get addressMode(): WRAP_MODE

      setting this will set wrapModeU,wrapModeV and wrapModeW all at once!

      Returns WRAP_MODE

    • set addressMode(value: WRAP_MODE): void

      Parameters

      Returns void

    • get maxAnisotropy(): number

      Returns number

    • set maxAnisotropy(value: number): void

      Specifies the maximum anisotropy value clamp used by the sampler.

      Parameters

      • value: number

      Returns void

    Methods

    • Destroys the style

      Returns void

    • Returns void