Skip to content

Documentation / scene / getDefaultTextureCube

Function: getDefaultTextureCube()

getDefaultTextureCube(): TextureCube

Defined in: libs/scene/src/utility/blueprint/material/texture.ts:87

Gets or creates the default cubemap texture

Returns

TextureCube

A 1x1 white TextureCube instance

Remarks

Returns a 1x1 white (255, 255, 255, 255) cubemap texture (all 6 faces white) used as a fallback when no texture is assigned to a cubemap texture node.

Released under the MIT License.