Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

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).

View as Markdown
import { fresnel } from '@dioramajs/diorama/kit'

. Edges catch more light.

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

Parameters

NameTypeDescription
cosineNode<'float'>
f0number

Also exported from @dioramajs/effects/kit.

Defined in packages/effects/src/kit.ts.