animeStarGlint.styleBlock
- .metadata132 B
- README.md2.4 KB
- block.yaml1.6 KB
README.md
Anime highlight: star glint (styleBlock, Light)
A four-point star glint on the brightest point of shiny round things, the sparkle anime paints on metal, gems and eyes; a fixed shape that never twinkles or flashes.
The cross-shaped sparkle on a shiny point.
Every highlight shape block runs the one animeShine shader with its own defaults, so any one swaps for another with StyleKit.swap("shine", "<block>"). It is a chain block (rank 60): it lays its shape on top of what the Light blocks before it made, so it sits after an anime cel block and a rim (animeRim… or the Cookbook's toonRim). Settings: shape (0 hair band, 1 streak, 2 crescent, 3 star glint, 4 blade, 5 round glint), size, colour, strength, tintByColour, litAbove, bandHeight, zigzag, zigzagCount, angle, starSize, curvedOnly, edgeSoftness, fullLight.
Per object: the hair band belongs on hair. Give the hair a StyleChannel variant (StyleKit.setChannel(hairEntity, { variant = "hair" }), or AnimeBlocks.markHair(hairEntity)) and add the band as an entry that targets that variant (StyleKit.add("animeHairShine", { id = "hairShine", variant = "hair" })), so it draws only there, while a streak or glint entry draws on everything else.
What it gives up in motion
Shapes are placed from the surface normal, the sun and the camera, so they slide over a round form as the camera or the sun moves, the way a painted highlight is redrawn from shot to shot. They hold still while nothing moves. Nothing flashes: the star glint is a fixed shape, not a twinkle.
How it treats content
- Opaque things: shapes only on curved, lit surfaces (
curvedOnlykeeps them off flat walls and floors). - Transparent things (glass, water): not in the surface copy, so no shape is drawn on them.
- Particles and smoke: left as drawn.
- Sky: never touched.
- Fog: shapes are laid at full strength under fog; they are small and on near things.
- Skinned characters: shaped every frame from the averaged normal, so they stay clean on a moving figure.
- Foliage: leaves are mostly flat cards and are left alone by
curvedOnly. - World text: flat, so left alone.
- Black stays black: returns through styleKit's
sk_finish, and needs light (litAbove) and the sun. - Dim rooms: drawn only where the light is above
litAbove, so a dim room gets no highlight.