baseColorTexture property

Texture get baseColorTexture

The base color texture, sampled and multiplied by baseColorFactor.

Accepts a gpu.Texture or a RenderTexture (sampled live). The getter never returns null; an empty slot (or a render texture with no completed frame yet) resolves to a 1×1 white placeholder so the final color reduces to baseColorFactor.

Implementation

gpu.Texture get baseColorTexture =>
    Material.whitePlaceholder(resolveTextureSource(_baseColorSource));
set baseColorTexture (Object? value)

Implementation

set baseColorTexture(Object? value) =>
    _baseColorSource = checkTextureSource(value, 'baseColorTexture');