keyLightXY

A key light from explicit x and y components, for a second or a crossed light.

keyLightXY(x: Expr, y: Expr, elevation: number, hint: string = 'kl'): Expr

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

Same result as keyLightAt: .L and .H.

Parameters

NameTypeNotes
xExpr
yExpr
elevationnumber
hintstringOptional. Default 'kl'.

Example

const fill = keyLightXY(mul(ly, -1), lx, -0.4, 'fill')

See also

  • keyLightAt — A key light from an angle: the light direction .L and the half vector .H for highlights.

Used by

Crystal