Renderer · interface

DecalBox

The box a projector occupies. Every field is world space.

Explained in Hello world.

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

Properties

NameTypeDescription
centerreadonlyReadonlyVec3Middle of the projector box.
halfExtentsreadonlyReadonlyVec3Half-size across, up, and along the projection. The third is how deep the box reaches.
forwardreadonlyReadonlyVec3The direction the decal is projected along — for a mark on the ground, straight down.
More

A surface is marked when it faces back along this. Need not be normalised.

upreadonlyReadonlyVec3Which way is up in the decal's own image, so a mark can be turned. Need not be normalised.