DecalLook beta
Interface of @v12-engine/client
export interface DecalLookA kind of mark a game lays on its maps' ground (GameView.ground.decals, by id): its picture, and how a new one is tinted and sized. The editor's Decals palette offers each; presetDecals has ready-made ones
Members
blend
blend?: 'normal' | 'add';How it is laid over the ground: as paint, lit as the ground is (normal, when left out), or added to it as light, unlit, glowing by night as by day (add: a rune, a glyph, embers)
fallback
fallback?: ParticleTexture;What it is drawn with where texture's file is not there: one the client draws
name
name?: string;What the editor calls it: its id when left out
opacity
opacity?: number;How much it shows, 0 to 1: all of it when left out
size
size?: number;How wide one is, in cells, where a decal does not say: 2 when left out
texture
texture: string;Its picture: by its path in textures/ (fx/scorch.png), or one the client draws (stain, crack, ring and the rest of ParticleTexture). White and see-through where it is not drawn: the tint colours it
tint
tint?: Rgb;The colour its picture is multiplied by: as it is (white) when left out. A decal's own tint goes over it