Renderer · interface
SurfaceDetailRegion
One region's detail.
Explained in Hello world.
interface SurfaceDetailRegionimport type { SurfaceDetailRegion } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
normalLayerreadonly | number | The layer of the detail array holding this region's tangent-space normal map. |
occlusionLayerreadonlyoptional | number | The layer holding its occlusion, in red; absent, the region adds none. |
repeatreadonly | number | readonly [number, number] | Repeats across the base coordinates, the same both ways or across and down apart. |
offsetreadonlyoptional | readonly [number, number] | Added to the repeated coordinates, so neighbouring regions need not line up. Default none. |
normalStrengthreadonlyoptional | number | How far the detail turns the normal: 0 lies flat, 1 as drawn, more steeper. Default 1. |
occlusionStrengthreadonlyoptional | number | How much of its occlusion is laid on, from 0 to 1. Default 1. |