fresnel function
Schlick's Fresnel: the share of light a surface reflects at `cosine` between its normal and the view, `f0` head-on (0.04 for glass and plastic, 0.02 for water).
import { fresnel } from '@dioramajs/diorama/kit'. Edges catch more light.
function fresnel(cosine: Node<'float'>, f0: number): Node<'float'>Parameters
| Name | Type | Description |
|---|---|---|
cosine | Node<'float'> | |
f0 | number |
Also exported from @dioramajs/effects/kit.
Defined in packages/effects/src/kit.ts.