blendPinLight: Bipolar Processing Switch
Threshold-Based Dual Mode System
PinLight blending operates as a threshold-activated processing switch, applying darken mode below 0.5 and lighten mode above. This creates a bipolar system where the midpoint serves as a computational watershed.
Range | Mode | Operation | Amplification |
---|---|---|---|
0.0 - 0.5 | Darken | Shadows intensified | 2× scaling |
0.5 - 1.0 | Lighten | Highlights expanded | 2× scaling |
Live Editor
const fragment = () => { const basePattern = float(0.3).step(uv.x.mul(20).sin().abs()) const blendGradient = uv.y const color = blendPinLightVec3( vec3(basePattern.mul(0.8).add(0.2)), vec3(blendGradient) ) return vec4(color, 1) }