Renderer · interface
SurfaceDetail
A material's tiled detail.
Explained in Hello world.
interface SurfaceDetail<Texture>import type { SurfaceDetail } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
mapsreadonly | Texture | The array whose layers the regions name, read where a shading model's map is. A material with
a modelMap puts its detail layers in that array and names it here too. |
regionLayerreadonlyoptional | number | The layer of the material's ORM array holding the region map: in its red, each texel's region
as an index from 0, stored as index / 255, read exactly at the base coordinates. Absent, every
texel is region 0, which is a surface with one detail all over: a face's pores. |
regionsreadonly | readonly SurfaceDetailRegion[] | Up to sixteen, by index. A texel naming a region past the last wears the last. |