Ink and Gouache: Toon and Cel-Shaded Materials
README.md
ToonShowcase
The Ink and Gouache dressing of materialLibraryKit's swatch gallery. It opens the gallery on the page holding every toon material on one ring, hangs each material's reference picture in an ink-coloured frame on its bay wall, lays each toon bay's floor tile and wall out in metres (so every material shows at its real size), outlines the cube and the sphere of every bay with the shared ink (the shader ball and cylinder stay plain, so each bay shows the material with the outline on and off), stands a warm light in front of the glowing material, and draws its own two labels on every toon plaque (the library's pair is parked out of sight, never rewritten, since a Text3D rewritten after it first drew can keep its old text on screen), on one shared label grid that reads from the spawn: name, kind, style family and tile size, texture count and memory, and whether it glows or moves.
Two ways to use it. With driveGallery on, put it alone on the gallery entity: it does what the library's SwatchGallery does (lighting look, view, shared state, toolbar and picker, name tags) but builds the gallery once, straight onto the toon page. With driveGallery off, put it beside a SwatchGallery and it only dresses.
Self-healing. Dressing runs three bays a frame. Once a second, in play and in edit mode alike, it checks every toon bay's wall, floor tile, plaque and trim and re-dresses or rebuilds whatever a test run, a scene reload or a released resource took away. While ToonGallery.holdGalleryUntil is in the future (the test suite sets it) it stands down. Ten seconds after any gallery build it makes its own plaque labels once more, as fresh entities: a test run hands the world back with the gallery rebuilt and then lets go of what the run drew, which would otherwise leave the plaques blank.
Local to each machine; the exhibit, lighting look, applied materials, outline switches and the shared toon look stay shared through the library. Fields: openOnToon, showReferences, glowLights, driveGallery, lighting, showHud. Forked from fantasyMaterials' FantasyShowcase (MIT).