Skip to content

Interface: ITextureOptions

ITextureOptions represents optional properties for a texture being rendered, will generally be used with defaults that are overridden.

Table of contents

Properties

Properties

generateMipmaps

Optional generateMipmaps: undefined | boolean

Flag for generating mipmaps or not, true = generate, false = don't generate


magFilter

Optional magFilter: undefined | NEAREST | BILINEAR | TRILINEAR

Magnification filter.


minFilter

Optional minFilter: undefined | NEAREST | BILINEAR | TRILINEAR

Minification filter.


mirror

Optional mirror: undefined | boolean

Flag for determining if the texture should be mirrored or not (flip horizontal and vertical), true = mirror, false = don't mirror.


xWrap

Optional xWrap: undefined | REPEAT | MIRRORED_REPEAT | CLAMP_TO_EDGE

Wrapping along the x-axis


yWrap

Optional yWrap: undefined | REPEAT | MIRRORED_REPEAT | CLAMP_TO_EDGE

Wrapping along the y-axis