TextureConfig
Defined in: packages/three-flatland/src/loaders/texturePresets.ts:60
Texture-specific configuration beneath FlatlandConfig.
Leave this unset to inherit the library-wide preset. Individual loaders can
override via their static options property, and per-load overrides are
supported via options parameters.
Example
Section titled “Example”import { TextureConfig } from 'three-flatland'
// Use smooth filtering globallyTextureConfig.options = 'smooth'
// Or use custom optionsTextureConfig.options = { minFilter: NearestFilter, magFilter: LinearFilter,}Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new TextureConfig():
TextureConfig
Returns
Section titled “Returns”TextureConfig
Accessors
Section titled “Accessors”options
Section titled “options”Get Signature
Section titled “Get Signature”get
staticoptions():TexturePreset|TextureOptions
Defined in: packages/three-flatland/src/loaders/texturePresets.ts:64
Get the global texture options
Returns
Section titled “Returns”TexturePreset | TextureOptions
Set Signature
Section titled “Set Signature”set
staticoptions(value):void
Defined in: packages/three-flatland/src/loaders/texturePresets.ts:69
Set the global texture options
Parameters
Section titled “Parameters”TexturePreset | TextureOptions
Returns
Section titled “Returns”void
Methods
Section titled “Methods”reset()
Section titled “reset()”
staticreset():void
Defined in: packages/three-flatland/src/loaders/texturePresets.ts:74
Remove the texture-specific override and follow FlatlandConfig again.
Returns
Section titled “Returns”void