Model loading · interface

DrawGrouping

The fields a merged group carries, resolved from a material and its override.

Explained in Importing models.

interface DrawGrouping
import type { DrawGrouping } from '@driftengine/assets';

In depth

Named for what they are on a group rather than for what they are called on a material — ormMap is orm here — because these are the values the renderer is handed, and the group is what holds them between the loader and the draw.

Properties

NameTypeDescription
albedoreadonlynumber
ormreadonlynumber
normalreadonlynumber
emissivereadonlynumber
opacityreadonlynumber
reflectivityreadonlynumber
roughnessScalereadonlynumber
metallicScalereadonlynumber
occlusionStrengthreadonlynumber
cutoutreadonlynumber
blendreadonlybooleanWhether the texture's alpha is coverage, so the part is drawn blended whatever its opacity.
doubleSidedreadonlybooleanWhether both faces are drawn and lit. A merge of a two-sided part and a one-sided one would cull one of them or unhide the back of the other, so it is part of the key.
transmissionreadonlynumberGlass. Zero transmission is not glass, and then frost is 0 and the tint white whatever the file or the override said, so a stray value on an opaque surface never splits a draw.
frostreadonlynumber
tintreadonlyreadonly [number, number, number]