sprite ai
Keep Material Tint and Sampled Vertex Colors in the Same Sprite Bake Contract
A prop-to-sprite conversion may replace texture sampling with vertex colors for a lightweight bake. In that workflow, a sampled texel and a rendered swatch need not have the same target value. Material parameters can apply color and alpha after the sample has been taken. Decide whether the recipient receives both parts or receives a deliberately baked result.
Compare a color witness with a rendered crop
Give a small textured triangle three easily recognized corner colors, then apply a material tint that affects one color channel and alpha. After conversion, record the samples the exporter emits and any material factor it still carries. Render a controlled crop on a contrasting background. Compare with the texture-backed reference under the same lighting and display pipeline. Include an untinted control so the test detects double tinting as well as a missing tint.
The technical guide and test fixture reports a Trimesh fixture where the sampled RGBA values remain unchanged while the GLB records a separate base-color factor. Preserve the distinction in your bake reviews. Avoid multiplying display byte values blindly when the material pipeline expects a different color or coverage convention.
Prepared by the FrameSprite Workflow Team with AI assistance. Examples are illustrative unless attributed to a linked fixture.