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.