blendReflect: Intense Highlight Creation
Mathematical Foundation of Reflect
Reflect blending creates intense highlights by squaring the base color and dividing by the inverted blend color. This mathematical operation produces dramatic brightening effects similar to photographic reflection.
The mathematical definition is:
The squaring operation amplifies bright base values while the division creates non-linear intensity increases as blend approaches white.
Reflection Enhancement Properties
Property | Description | Mathematical Behavior |
---|---|---|
Quadratic Amplification | Base values squared | increases contrast |
Division Intensification | Inverted blend division | Bright blend creates strong effect |
Highlight Preservation | White blend preserves maximum | Safe upper bound |
Non-linear Response | Exponential brightness curve | Dramatic lighting simulation |
Live Editor
const fragment = () => { const base = vec3(0.6, 0.8, 0.9) const reflection = float(0.6).smoothstep(0.2, uv.distance(vec2(0.7, 0.3))) const blend = vec3(reflection.mul(0.8)) const result = blendReflectVec3(base, blend) return vec4(result, 1) }