Model loading · interface

DrawSurfaceOverride

The override DrftLoaderOptions.surface may return for a material.

Explained in Importing models.

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

Properties

NameTypeDescription
opacityreadonlyoptionalnumber
reflectivityreadonlyoptionalnumber
metallicScalereadonlyoptionalnumberThe scale over the ORM map's metallic channel, in place of the material's. For a map whose channel says metal where the surface is not: a bought courtyard's stone carried up to 0.37 on its clean stone, and each patch in shade swapped its diffuse light for a reflection of a dark gallery and read as a black blotch. 0 says dielectric.
transmissionreadonlyoptionalnumberGlass, in place of what the file says: the share of light that passes, how milky it is, and the colour it takes (GlassOptions in the renderer). For a model whose panes arrive as an opaque dark material, because its format or its exporter had no word for glass. Transmission above zero draws the part blended.
frostreadonlyoptionalnumber
tintreadonlyoptionalreadonly [number, number, number]