AdvancedHas the texture been destroyed?
OptionallabelOptional label for debugging.
ReadonlysourceThe underlying cube texture source.
Readonlyuidunique id for this cube texture
Destroy this CubeTexture.
If true, destroys the underlying CubeTextureSource.
StaticfromConvenience factory for creating a cube texture from a CubeTextureSource.
A cube texture source.
OptionalskipCache: booleanUnused for this overload.
Convenience factory for creating a cube texture from 6 face inputs.
Face inputs are converted to Texture via Texture.from. This does not load resources;
string ids must already be present in the cache (e.g. after Assets.load).
Options including the 6 face inputs.
OptionalskipCache: booleanSkip caching the resulting CubeTexture when all faces are string ids.
A cube texture that can be bound to shaders (samplerCube / texture_cube).
This is a lightweight wrapper around a CubeTextureSource.
Example
Load 6 images and create a cube texture (paths are just examples):
Example
Bind to a shader (resources differ between WebGL and WebGPU, but the cube texture binding stays the same):