Log inGet started
World

Anime Looks: Cel Light, Painted Skies and Impact Frames

README.md

Anime highlight: round glint (styleBlock, Light)

A round anime glint: a clean, hard-edged disc of light with a small second dot beside it where the sun mirrors toward the eye, the catch-light of anime eyes, balls, bottles and polished things.

The round catch-light of anime eyes and glossy toys: two clean dots, no sparkle.

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 (curvedOnly keeps 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.