Constructs a cubic 3D lookup texture.
The pixel data. The default format is RGBA.
The sidelength.
The number of samples taken along the axis through the pixel that has the highest density of texels.
The point around which rotation occurs.
Lets you select the uv attribute to map the texture to. 0
for uv
, 1
for uv1
, 2
for uv2
and 3
for
uv3
.
The Textures | {@link Texture constants} page for details of other color spaces.
Textures containing color data should be annotated with SRGBColorSpace THREE.SRGBColorSpace or LinearSRGBColorSpace THREE.LinearSRGBColorSpace.
THREE.NoColorSpace
The upper bounds of the input domain.
The lower bounds of the input domain.
These define how elements of a 2D texture, or texels, are read by shaders.
All Texture types except THREE.DepthTexture and THREE.CompressedPixelFormat expect the values be THREE.PixelFormat
THREE.RGBAFormat.
Readonly
idUnique number for this Texture instance.
The GPU Pixel Format allows the developer to specify how the data is going to be stored on the GPU.
Readonly
isRead-only flag to check if a given object is of type Data3DTexture.
Indicates whether a texture belongs to a render target or not
Readonly
isRead-only flag to check if a given object is of type Texture.
How the image is applied to the object.
The uv-transform matrix for the texture.
When .matrixAutoUpdate property is true
.
Will be updated by the renderer from the properties:
new THREE.Matrix3()
Whether is to update the texture's uv-transform .matrix.
Array of user-specified mipmaps
Optional name of the object
How much a single repetition of the texture is offset from the beginning, in each direction U and V.
A callback function, called when the texture is updated (e.g., when needsUpdate has been set to true and then the texture is used).
Indicates whether this texture should be processed by PMREMGenerator or not (only relevant for render target textures)
If set to true
, the alpha channel, if present, is multiplied into the color channels when the texture is uploaded to the GPU.
Note that this property has no effect for ImageBitmap. You need to configure on bitmap creation instead. See THREE.ImageBitmapLoader | ImageBitmapLoader.
THREE.ImageBitmapLoader | ImageBitmapLoader.
false
How many times the texture is repeated across the surface, in each direction U and V.
How much the texture is rotated around the center point, in radians.
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.
This must correspond to the .format.
THREE.UnsignedByteType, is the type most used by Texture formats.
THREE.UnsignedByteType
An object that can be used to store custom data about the texture.
UUID of this object instance.
This starts at 0
and counts how many times .needsUpdate is set to true
.
This defines how the Texture is wrapped horizontally and corresponds to U in UV mapping.
for WEBGL1 - tiling of images in textures only functions if image dimensions are powers of two (2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels. Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL1, not three.js. WEBGL2 does not have this limitation.
THREE.ClampToEdgeWrapping
This defines how the Texture is wrapped vertically and corresponds to V in UV mapping.
for WEBGL1 - tiling of images in textures only functions if image dimensions are powers of two (2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels. Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL1, not three.js. WEBGL2 does not have this limitation.
THREE.ClampToEdgeWrapping
Static
DEFAULT_The Global default value for .anisotropy.
Static
DEFAULT_The Global default value for Texture.image | .image.
Static
DEFAULT_The Global default value for .mapping.
Overridden with a record type holding data, width and height and depth.
An image object, typically created using the THREE.TextureLoader.load | TextureLoader.load() method.
Indicates that this is an instance of LookupTexture3D.
Indicates whether this texture should be processed by THREE.PMREMGenerator or not.
Set this to true
to trigger an update next time the texture is used. Particularly important for setting the wrap mode.
Adds a listener to an event type.
The type of event to listen to.
The function that gets called when the event is fired.
Applies the given LUT to this one.
A LUT. Must have the same dimensions, type and format as this LUT.
This texture.
Converts the output of this LUT into sRGB color space.
This texture.
Converts the output of this LUT into linear color space.
This texture.
Converts the LUT data into float data.
This texture.
Converts this LUT into RGBA data.
This texture.
Converts the LUT data into unsigned byte data.
This is a lossy operation which should only be performed after all other transformations have been applied.
This texture.
Fire an event type.
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.
Scales this LUT up to a given target size using tetrahedral interpolation.
The target sidelength.
Optional
transferData: booleanExtra fast mode. Set to false to keep the original data intact.
A promise that resolves with a new LUT upon completion.
Convert the texture to three.js JSON Object/Scene format.
Optional
meta: string | {}Optional object containing metadata.
Static
createCreates a neutral 3D LUT.
The sidelength.
A neutral 3D LUT.
Static
fromCreates a new 3D LUT by copying a given LUT.
Common image-based textures will be converted into 3D data textures.
The LUT. Assumed to be cubic.
A new 3D LUT.
A 3D lookup texture (LUT).
This texture can be used as-is in a WebGL 2 context. It can also be converted into a 2D texture.