Renderer · interface

AnisotropicModel

Strands of brushed metal, satin or hair-like fibre: a highlight stretched across them.

Explained in Hello world.

interface AnisotropicModel
import type { AnisotropicModel } from '@driftengine/core';

Properties

NameTypeDescription
kindreadonly'anisotropic'
strengthreadonlynumber0 to 1: how far the highlight is stretched along the tangent.
rotationreadonlynumberRadians, turning the stretch's direction from the tangent toward the bitangent.
liftreadonlynumberHow 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.