Renderer · interface
GlassOptions
Explained in Hello world.
interface GlassOptionsimport type { GlassOptions } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
transmissionreadonly | number | Share of light that passes, 0 (opaque) to 1 (clear). |
frostreadonly | number | How milky, 0 (see-through) to 1 (fully diffusing: what is behind is blurred away). |
tintreadonlyoptional | Vec3 | The colour light takes through it. White, the default, is clear glass. |