blendLinearDodge: Pure Additive Lightening
Direct Addition with Unity Boundary
Linear Dodge blending creates lightening effects through pure additive combination. This function directly adds base and blend values while clamping results to unity, producing predictable brightening where any color contribution increases the final luminance without complex mathematical transformations.
The mathematical definition uses simple addition with upper boundary control:
This operation creates immediate brightening where colors combine additively, ensuring that even dark colors contribute to lightening while preventing oversaturation beyond pure white.
Additive Lightening Properties
Property | Description | Mathematical Expression |
---|---|---|
Direct Addition | Colors combine through simple addition | |
Unity Clamp | Results bounded to white maximum | |
Cumulative Effect | All values contribute to brightening | for all inputs |
Linear Response | Proportional lightening relationship |
const fragment = () => { const blendValue = uv.x const baseColor = vec3(0.5, 0.4, 0.6) const blendColor = vec3(blendValue) const result = blendLinearDodgeVec3(baseColor, blendColor) return vec4(result, 1) }
The demonstration reveals Linear Dodge's white saturation clipping through gradient intersection. The horizontal red base and vertical green blend create a grid where their additive combination shows the function's core behavior: continuous brightening until reaching white saturation in the upper-right region, demonstrating how this function handles overflow by clamping to unity rather than wrapping or distorting.