Materials
A shader effect (see Shader Effects) is how the whole game is drawn. A material is how one thing answers it: whether it glows, whether night darkens it, whether it is outlined.
Models
A model's materials live in its asset document (.vfa). Open the model in the asset manager (Tools > Asset Manager, or Open in Asset Manager in a placed model's Properties) to see its material slots, the textures each slot wears, and a set per level of detail. Importing a model fills these in from the file's own materials.
Sprites and art
Art is given a material once, by file name, in assets/data/materials.vfa. Every placed copy of that picture then uses it.
comp material torch -1 -
field emissive 82
field tint FFD8A0
comp material treasure -1 -
field emissive 22
field bright 112
comp apply FirePit1_01.png -1 -
field material torch
comp apply Chest1_1.png -1 -
field material treasure- emissive 0-100
- How much the thing ignores the dark. A lamp that only casts light is still darkened by the night; emissive keeps the lamp itself lit.
- unlit on
- Darkness never touches it.
- bright 0-200
- 100 is as painted.
- tint RRGGBB
- Multiplies the art by a colour.
- noink on
- The shader effect's outline pass skips it.
- nostyle on
- The shader effect skips it entirely, so it keeps its colours even in a black-and-white game.
A single placed sprite can wear a different material from its art: pick it in Properties > Material, or choose none.
An unknown field in the file is skipped, so a file written for a newer version still loads.