Model loading · interface
BlendSurface
A material's surface, channel by channel. Factors multiply the map where there is one.
Explained in Importing models.
interface BlendSurfaceimport type { BlendSurface } from '@driftengine/assets';Properties
| Name | Type | Description |
|---|---|---|
namereadonly | string | |
baseColorreadonly | [number, number, number] | |
baseColorMapreadonly | ChannelSource | null | |
alphareadonly | number | |
alphaMapreadonly | ChannelSource | null | |
alphaModereadonly | 'OPAQUE' | 'BLEND' | 'MASK' | |
alphaCutoffreadonly | number | |
vertexColorreadonly | string | null | The colour attribute the base colour is multiplied by: a name, '' for the render one. |
metallicreadonly | number | |
metallicMapreadonly | ChannelSource | null | |
roughnessreadonly | number | |
roughnessMapreadonly | ChannelSource | null | |
occlusionMapreadonly | ChannelSource | null | |
normalMapreadonly | ChannelSource | null | |
normalStrengthreadonly | number | |
emissionreadonly | [number, number, number] | |
emissionStrengthreadonly | number | |
emissionMapreadonly | ChannelSource | null | |
transmissionreadonly | number | |
doubleSidedreadonly | boolean | |
uvMapreadonly | string | null | The UV map the maps read, by name, or null for the render map. |
uvTransformreadonly | number[] | null | A 3x3 affine transform of that map, column-major, in Blender's UV space, or null. |
extrasreadonly | Record<string, unknown> | null | |
approximationsreadonly | readonly string[] | What glTF cannot say about this material by either route: a procedural texture, a Mix Shader, a math chain. Blender's exporter loses these too, so they are warnings and not a reason to ask it. |