Got REAL cel-shading (not 3D gradient garbage) out of SDXL - full node graph + the two-pass secret
The eternal anime-AI problem: you ask for 'cel-shaded' and the model gives you soft airbrushed gradients with a cel-shade vibe, not actual flat color blocks with hard shadow terminators. Here is how I forced true cel-shading:
Two-pass approach. Pass 1: generate the character normally, get composition and forms. Pass 2: run it through a posterize + a custom node that quantizes the shadows into 2-3 hard bands, THEN img2img at low denoise with flat cel shading, hard shadow edges, no gradients, two-tone shading, anime screencap to let the model clean up the quantized version into intentional flats.
The trick is the model cannot PRODUCE hard flats natively (its whole nature is smooth gradients) so you IMPOSE the flatness with the posterize node and then ask it to make the imposed flatness look deliberate. You are fighting the model's gradient instinct with a hard quantization step it cannot undo.
Full graph in comments. The separate-line-pass and the shadow-quantize nodes are the two that matter.