Log inGet started
World

Style Cookbook: Mix Your Own Art Style from Stackable Look Blocks

README.md

inkPaperGrain (shader module)

The grain of inkBlocks' paper: sbp_grain(coord, fibre, footprint) returns a tooth height 0..1 mixing fine tooth, long fibres and soft mottling; footprint is how many grain cells one pixel covers (fwidth of the coordinate), and every detail finer than about two pixels fades to its mean so the tooth does not shimmer. It is pure math over styleKit's skPatterns, so the Ink paper's ground field, its picture pass and a material that wants the same tooth all agree. Include it in a material shader with #include "~styleKit.shaders.skPatterns" followed by #include "~inkBlocks.blocks.inkPaper.inkPaperGrain" to give an object the same tooth as the ink paper. For a fuller paper on an object (tooth lit by the scene's light, fibres, weave, every paper's settings) use paperBlocks' paperSurface material instead.

Known limits

  • A pass reads the scene's depth only when it also writes the scene picture (#24550), and an unknown blend name draws as replace (#24551).
  • A per-object value cannot reach a geometry pass (#24549).

The package README's Known limits lists the rest.