Skip to main content

Module surface_authoring

Module surface_authoring 

Source
Expand description

Bounded authored surface maps and planar UV projection, native and WASM. Deterministic tileable surface authoring. Callers own all public output.

Structs§

SurfaceRecipe

Enums§

SurfaceAuthoringError

Functions§

encode_surface_png_into
Encode original RGBA8 artwork as standard PNG into a caller-owned buffer.
generate_surface_maps_into
At most 12 MiB of map output (three 1024² RGBA8 images). Validate every recipe and buffer before writing, so admission failures leave output intact.
planar_uvs_into
Ordinary UV01 source coordinates in metres before scene normalisation.