Renderer · function

resolveGlass

Resolve options into out, and say whether it is glass at all.

Explained in Hello world.

function resolveGlass(options: GlassOptions | undefined, out: ResolvedGlass): boolean
import { resolveGlass } from '@driftengine/core';

Parameters

ParameterTypeDescription
optionsGlassOptions | undefined
outResolvedGlass

In depth

Not glass — absent, or letting nothing through — zeroes out and tints it white, so a binder that uploads out either way uploads the state that switches the shader's glass branch off.