Nodes/ComfyUI-BrainDead/BD Even Light
ComfyUI Node

BD Even Light

Even a head's lighting without flattening its facets. The light is the head's luminance blurred heavily (mask-normalised, sigma in px at 1024); the facets are what is left. Output = mean + keep_light x (light - mean) + facet_gain x facets, colour carried by ratio; outside the mask the image is unchanged. Why: Qwen Image 2.1 reads a cel-shading prompt as one hard key light - a bright side and a shadow side - and prompts that ask for even light flatten the facets too. Put this after a 2.1 shading pass (FaceMaker's Qwen Cell Shaded) to keep its facet contrast and take most of the light out.

By BizaNator·Created 8 months ago·Updated about 13 hours ago· 15
BD Even Light
  • image
  • mask
  • image
  • report
◄keep_light0.50►
◄facet_gain0.90►
◄sigma60►
Category🧠BrainDead/Segmentation

Inputs (5)

NameTypeDefaultDescription
imageIMAGE—
keep_lightFLOAT0.500–1Share of the lighting gradient kept. 0 = perfectly even, 1 = unchanged.
facet_gainFLOAT0.900–3Facet contrast multiplier. 1 = unchanged.
sigmaFLOAT605–400Light blur in px at 1024 (scaled with the image). Larger than a facet.
maskoptMASKHead mask (1 = head). None: pixels that differ from the corner colour.

Outputs (2)

NameTypeDescription
imageIMAGE—
reportSTRING—