blendBurn
Replicates the 'Color Burn' blend mode from Photoshop, blending two colors by darkening the base color and increasing contrast, creating a strong, non-linear darkening effect.
Core Advantages
Abstracts a complex blending formula into a single node, ensuring precise visual consistency with design software like Photoshop, while simplifying the development process and avoiding the tedious and error-prone task of manual implementation.
Common Uses
Creating aging, stain, or scratch effects that look 'burned' into a surface.
Applying decals or tattoos to character skin for a more integrated, permeated look.
Creating stylized, hard-edged shadows for a high-contrast, comic-book feel.
Performing color grading in post-processing to quickly add vignettes or crush highlights.
How to adjust
The effect is primarily controlled by adjusting the `blend` input color. A white `blend` color has no effect; a black `blend` color results in black. The darker the `blend` color, the stronger the darkening, contrast enhancement, and saturation boost on the `base` color. For example, using a dark moss texture as the `blend` over a red brick `base` creates a realistic texture of moss that appears to have corroded and stained the brickwork.
Code Examples
1// "Burn" the moss pattern into the brick wall texture
2const finalColor = blendBurn( brickWall, mossPattern );