Renderer · interface
AnisotropicModel
Strands of brushed metal, satin or hair-like fibre: a highlight stretched across them.
Explained in Hello world.
interface AnisotropicModelimport type { AnisotropicModel } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
kindreadonly | 'anisotropic' | |
strengthreadonly | number | 0 to 1: how far the highlight is stretched along the tangent. |
rotationreadonly | number | Radians, turning the stretch's direction from the tangent toward the bitangent. |
liftreadonly | number | How far the highlight is lifted where it is bright: the distribution D becomes
D + min(3, D^1.5) · lift, which is how a brushed finish that reads as polished along its
streak is authored. Where a model map is bound its alpha scales it texel by texel, so a map
storing a tenth of a region's lift takes lift: 10. 0, the default, is none. |