Renderer · interface

GlassOptions

Explained in Hello world.

interface GlassOptions
import type { GlassOptions } from '@driftengine/core';

Properties

NameTypeDescription
transmissionreadonlynumberShare of light that passes, 0 (opaque) to 1 (clear).
frostreadonlynumberHow milky, 0 (see-through) to 1 (fully diffusing: what is behind is blurred away).
tintreadonlyoptionalVec3The colour light takes through it. White, the default, is clear glass.