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): booleanimport { resolveGlass } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
options | GlassOptions | undefined | |
out | ResolvedGlass |
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.