Model loading · interface
DrawSurfaceOverride
The override DrftLoaderOptions.surface may return for a material.
Explained in Importing models.
interface DrawSurfaceOverrideimport type { DrawSurfaceOverride } from '@driftengine/assets';Properties
| Name | Type | Description |
|---|---|---|
opacityreadonlyoptional | number | |
reflectivityreadonlyoptional | number | |
metallicScalereadonlyoptional | number | The 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. |
transmissionreadonlyoptional | number | Glass, 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. |
frostreadonlyoptional | number | |
tintreadonlyoptional | readonly [number, number, number] |