Log inGet started
Package

animeRimCore.shaderModule

README.md

animeRimCore (shader module)

The anime rim light as functions: ar_edge(uv, params) finds how close a pixel is to a silhouette (four depth taps, faded with distance) and ar_light(uv, pixel, normal, edge, sun, params) gives the light the rim adds there, with ArParams holding a rim block's settings (the same as the Style Cookbook's toonRim, plus hardness). The animeRim pass draws it on its own; the anime cel light draws the same rim inside its own pass when a look folds its rim part into the light (AnimeBlocks.fold), which saves a full-screen pass. Include it after ~styleKit.shaders.skCommon, ~toonBlocks.shaders.toonLight and ~toonBlocks.shaders.toonFrame with #include "~animeBlocks.blocks.animeRimCore".

Known limits

  • Every pass runs every frame (#24548); a folded rim costs only its taps inside the light pass.
  • The package README's Known limits lists the rest.

Used by: animeRim.shader and animeCel.shader.