Renderer · interface
DecalProjectorOptions
Explained in Hello world.
interface DecalProjectorOptions extends DecalBoximport type { DecalProjectorOptions } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
colorreadonlyoptional | ReadonlyVec3 | What the mark multiplies the surface by. White marks nothing; black is a hole. |
opacityreadonlyoptional | number | How much of that colour lands, 0 to 1. |
facingCosreadonlyoptional | number | How far from facing the projector a surface may be turned and still be marked, as a cosine.MoreThe stretch this prevents is the classic failure of a projected decal. A wall standing
edge-on to the projector occupies one pixel of depth per metre of wall, so a mark aimed at the
floor smears the full depth of the box up it in a long streak. |
softnessreadonlyoptional | number | How much of the mark's radius is edge, 0 for a hard ellipse and 1 for all falloff. |