Skip to content

Documentation / scene / getDefaultTexture2D

Function: getDefaultTexture2D()

getDefaultTexture2D(): Texture2D

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

Gets or creates the default 2D texture

Returns

Texture2D

A 1x1 white Texture2D instance

Remarks

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

Released under the MIT License.