Expand description
The surface paint chunk (SPEC.md, section 10): what a person painted on
the faces of models, one mask per leaf and kind.
Only the envelope is checked: each entry names a leaf, and no two entries share a leaf and a kind. Documents are carried without being read, since a document never makes a file unreadable; the program that uses the paint checks it against the leaf’s mesh.
entries u32 count, then per entry:
u32 the leaf's node index in the scene chunk
u8 the kind: 0 detail, 1 supports must touch, 2 must not touch
u32 document version
u32 length, documentStructs§
- Surface
Entry - One painted mask of one leaf.
Enums§
- Decode
Surface Error - Why a surface paint payload could not be decoded.
- Encode
Surface Error - Why a list of paint entries could not be encoded.
Constants§
- SURFACE_
TAG - The tag of the surface paint chunk.
- SURFACE_
VERSION - The surface paint payload layout this build writes and reads.
Functions§
- decode_
surface - Decodes a surface paint payload, checking it against
scene, the scene of the same file. - encode_
surface - Encodes
entriesas a surface paint payload, in their order, checking them againstscene.