wardAlphas

Turns roughness and anisotropy sliders (0–1 each) into the two lobe widths anisoSpecular takes.

wardAlphas(roughness: Expr, anisotropy: Expr): {along: Expr; across: Expr}

Import materials from shaders/std and use materials.wardAlphas.

Higher roughness widens the highlight. Higher anisotropy stretches it along the grain and squeezes it across.

Parameters

NameTypeNotes
roughnessExpr
anisotropyExpr

Example

alphas: wardAlphas(u.roughness, u.anisotropy)

See also

  • anisoSpecular — A highlight stretched along a grain, as on brushed metal or carbon fibre.

Used by

BrushedMetal