Renderer · interface
DecalBox
The box a projector occupies. Every field is world space.
Explained in Hello world.
interface DecalBoximport type { DecalBox } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
centerreadonly | ReadonlyVec3 | Middle of the projector box. |
halfExtentsreadonly | ReadonlyVec3 | Half-size across, up, and along the projection. The third is how deep the box reaches. |
forwardreadonly | ReadonlyVec3 | The direction the decal is projected along — for a mark on the ground, straight down.MoreA surface is marked when it faces back along this. Need not be normalised. |
upreadonly | ReadonlyVec3 | Which way is up in the decal's own image, so a mark can be turned. Need not be normalised. |