Class: TextureStyle

TextureStyle

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

new TextureStyle (options)

Name Type Description
options TextureStyleOptions

options for the style

Extends

  • EventEmitter

Implements

Members

defaultOptions TextureStyleOptions staticreadonly

default options for the style

addressMode WRAP_MODE

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

addressModeW WRAP_MODE

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

compare COMPARE_FUNCTION

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

destroyed boolean readonly

Has the style been destroyed?

Default Value:
  • false

lodMaxClamp number

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

magFilter SCALE_MODE

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

maxAnisotropy number

Specifies the maximum anisotropy value clamp used by the sampler.

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.

scaleMode SCALE_MODE

setting this will set magFilter,minFilter and mipmapFilter all at once!

Methods

destroy ()

Destroys the style