Model loading · interface
DrawGrouping
The fields a merged group carries, resolved from a material and its override.
Explained in Importing models.
interface DrawGroupingimport 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
| Name | Type | Description |
|---|---|---|
albedoreadonly | number | |
ormreadonly | number | |
normalreadonly | number | |
emissivereadonly | number | |
opacityreadonly | number | |
reflectivityreadonly | number | |
roughnessScalereadonly | number | |
metallicScalereadonly | number | |
occlusionStrengthreadonly | number | |
cutoutreadonly | number | |
blendreadonly | boolean | Whether the texture's alpha is coverage, so the part is drawn blended whatever its opacity. |
doubleSidedreadonly | boolean | Whether 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. |
transmissionreadonly | number | Glass. 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. |
frostreadonly | number | |
tintreadonly | readonly [number, number, number] |