blendVividLight: Extreme Contrast Illumination
Dramatic Light and Shadow Dynamics
Vivid Light blending creates extreme contrast through conditional brightness manipulation. This function combines color burn for dark regions and color dodge for light regions, generating dramatic illumination effects that amplify both shadows and highlights.
The mathematical definition uses a threshold-based approach:
This dual-mode operation creates powerful contrast effects where midtones become decision points between burning shadows and dodging highlights.
Threshold-Based Contrast Properties
Property | Description | Mathematical Expression |
---|---|---|
Burn Threshold | Dark values undergo color burn intensification | |
Dodge Threshold | Light values undergo color dodge enhancement | |
Dual Scaling | Both modes use 2x scaling for dramatic effect | |
Extreme Response | Creates maximum contrast between light and dark |
ライブエディター
const fragment = () => { const center = vec2(0.5) const radius = uv.sub(center).length() const basePattern = radius.mul(12).cos().mul(0.3).add(0.5) const blendGradient = radius.mul(1.5) const baseColor = vec3(0.8, 0.4, 0.2) const blendColor = vec3(blendGradient) const result = blendVividLightVec3(baseColor.mul(basePattern), blendColor) return vec4(result, 1) }