Optional
images: any[]Optional
mapping: MappingOptional
wrapS: WrappingOptional
wrapT: WrappingOptional
magFilter: TextureFilterOptional
minFilter: TextureFilterOptional
format: PixelFormatOptional
type: TextureDataTypeOptional
anisotropy: numberOptional
encoding: THREE.TextureEncoding1
new THREE.Vector2( 0, 0 )
THREE.LinearEncoding
false
THREE.RGBAFormat
true
Readonly
isfalse
Readonly
isTHREE.LinearFilter
THREE.Texture.DEFAULT_MAPPING
new THREE.Matrix3()
true
THREE.LinearMipmapLinearFilter
[]
''
false
new THREE.Vector2( 0, 0 )
false
new THREE.Vector2( 1, 1 )
0
The data definition of a texture. A reference to the data source can be shared across textures. This is often useful in context of spritesheets where multiple textures render the same data but with different texture transformations.
THREE.UnsignedByteType
4
An object that can be used to store custom data about the Material. It should not hold references to functions as these will not be cloned.
0
THREE.ClampToEdgeWrapping
THREE.ClampToEdgeWrapping
Static
DEFAULT_Static
DEFAULT_An image object, typically created using the load method. This can be any image (e.g., PNG, JPG, GIF, DDS) or video (e.g., MP4, OGG/OGV) type supported by three.js.
To use video as a texture you need to have a playing HTML5 video element as a source for your texture image and continuously update this texture as long as video is playing - the VideoTexture class handles this automatically.
An image object, typically created using the load method. This can be any image (e.g., PNG, JPG, GIF, DDS) or video (e.g., MP4, OGG/OGV) type supported by three.js.
To use video as a texture you need to have a playing HTML5 video element as a source for your texture image and continuously update this texture as long as video is playing - the VideoTexture class handles this automatically.
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Checks if listener is added to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Removes a listener from an event type.
The type of the listener that gets removed.
The listener function that gets removed.
Generated using TypeDoc
JavaScript events for custom objects
Source
src/core/EventDispatcher.js