beerLambert
How much light survives a thickness of tinted material, per channel.
beerLambert(thickness: Expr, absorb: Expr): Expr
Import materials from shaders/std and use materials.beerLambert.
absorb is an rgb absorption; higher absorbs more. Returns rgb transmission 0–1. Multiply the color behind by it.
Parameters
| Name | Type | Notes |
|---|---|---|
thickness | Expr | |
absorb | Expr |
Example
const transmit = beerLambert(mul(opticalThickness(field, frame), u.density), absorb)
See also
opticalThickness— How much material the view passes through at this pixel: 0 at the edge, up to about 1.2 deep inside.