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
| Name | Type | Notes |
|---|---|---|
x | Expr | |
y | Expr | |
elevation | number | |
hint | string | Optional. 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.Land the half vector.Hfor highlights.