# fresnel

function in `@dioramajs/diorama/kit`

```ts
import { fresnel } from '@dioramajs/diorama/kit'
```

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). Edges catch more light.

```ts
function fresnel(cosine: Node<'float'>, f0: number): Node<'float'>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `cosine` | `Node<'float'>` |  |
| `f0` | `number` |  |

Also exported from `@dioramajs/effects/kit`.

Defined in [packages/effects/src/kit.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/kit.ts#L598).
