Model loading · function

placeholderTexture

One white texel under the name a material asked for.

Explained in Importing models.

function placeholderTexture(name: string): DrftTextureSource
import { placeholderTexture } from '@driftengine/assets';

Parameters

ParameterTypeDescription
namestring

In depth

It keeps every material's index meaning what it meant: dropping the entry instead would renumber every texture after it and repaint the model.