Arts TD
README.md
mediumKit.api
The whole mediumKit API: apply(entity, medium, opts) draws an entity and every mesh under it in an art medium, applyHybrid(entity, a, b, blend, opts) draws it in two media mixed by a blend, and clear(entity) restores exactly what it wore. It also has of, media, blends, setDefaultBlend/defaultBlend, setQuality, define (add a medium), stats and VERSION. It paints with local session materials on the mediumSurface shader, cached per (source material, look, quality) so many objects batch. It watches roots for meshes that arrive later and writes the synced MediumLook component on synced entities unless opts.localOnly is set. Called by game code and by the MediumLook component; see the package README for the full contract.