-
Notifications
You must be signed in to change notification settings - Fork 155
texture
Wiki » Internal Components » Textures » texture
Creates a THREE.Texture
string
required
: The URL to load the texture from.
Currently textures can be loaded from URLs only.
Used as the first parameter for TextureLoader.load
Default: ''
one of ['map', 'specularMap', 'lightMap', 'aoMap', 'emissiveMap', 'bumpMap', 'normalMap', 'displacementMap', 'roughnessMap', 'metalnessMap', 'alphaMap', 'envMap']
Default: 'map'
THREE.Vector2
: Sets the repeat property of the Texture.
Default: (1, 1)
.
Default: new THREE.Vector2(1, 1)
THREE.Vector2
: Sets the offset property of the Texture.
Default: (0, 0)
.
Default: new THREE.Vector2(0, 0)
one of [THREE.RepeatWrapping, THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping]
Default: THREE.ClampToEdgeWrapping
one of [THREE.RepeatWrapping, THREE.ClampToEdgeWrapping, THREE.MirroredRepeatWrapping]
Default: THREE.ClampToEdgeWrapping
number
Default: 1
string
: Sets the crossOrigin property of the TextureLoader.
function
: Callback to be called when the texture was loaded.
function
: Callback to be called while the texture is loading.
function
: Callback to be called when the texture was not loaded.
one of [THREE.LinearFilter, THREE.NearestFilter]
Default: THREE.LinearFilter
one of [THREE.LinearMipMapLinearFilter, THREE.NearestFilter, THREE.NearestMipMapNearestFilter, THREE.NearestMipMapLinearFilter, THREE.LinearFilter, THREE.LinearMipMapNearestFilter]
Default: THREE.LinearMipMapLinearFilter
string
: The resource id of this object, only used if it is placed into resources.
Default: ''
If you would like to assign this texture to a material, you can do this by declaring the texture within:
<...material>
<texture url={...} .../>
</...material>
This component can be added into <resources/>! See Resource Types for more information.
===
View Source |
---|
Home | Usage | API Reference | Examples