Model loading · interface
EncodedMaterial
Explained in Importing models.
interface EncodedMaterialimport type { EncodedMaterial } from '@driftengine/assets';Properties
| Name | Type | Description |
|---|---|---|
latentreadonly | Uint8Array | |
latentWidthreadonly | number | |
latentHeightreadonly | number | |
componentsreadonly | number | |
weightsreadonly | Float32Array | |
shapereadonly | NetworkShape | |
graphreadonly | DecodeGraph | |
mipsreadonly | readonly { width: number; height: number; data: Uint8Array; }[] | |
mipRoughnessreadonly | Float32Array | null | The roughness a variance-preserving mip reduction handed back, or null.MoreNon-null exactly when a channel's semantic says mipping it must preserve the normal distribution. A normal map averaged naively loses the disagreement between neighbouring normals, and the surface reads as polished at distance — the roughness is where that disagreement goes instead of being thrown away. |