An accessor for Pass.samplers when using PassWrappers

interface SamplerWrapper {
    filtering: FilteringMode;
    texture: Texture;
    wrap: WrapMode;
    wrapU: WrapMode;
    wrapV: WrapMode;
    wrapW: WrapMode;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

filtering: FilteringMode

How the texture will be filtered by the sampler.

texture: Texture

The texture used by the sampler.

wrap: WrapMode

Whether the texture should wrap.

wrapU: WrapMode

Whether the texture should wrap in the x-axis.

wrapV: WrapMode

Whether the texture should wrap in the y-axis.

wrapW: WrapMode

Whether the texture should wrap in the z-axis.

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean