any
Checks if at least one component of a boolean vector (bvec) is true, aggregating multiple parallel vector comparison results into a single boolean value.
Core Advantages
Provides the most concise and readable way to check if 'any' of a set of parallel conditions is met. It maps directly to the efficient, native GLSL `any()` function and perfectly complements the `all` node.
Common Uses
Detecting if an object is out of bounds, i.e., its position exceeds the limits on the X, Y, or Z axis.
Highlighting based on color channels, such as emphasizing pixels where any of the R, G, or B channel values are high.
Creating proximity-based effects that trigger when an object gets close on any axis.
Aggregating multiple damage sources, like triggering a shield effect if 'fire damage' OR 'frost damage' occurs.
How to adjust
Adjust by changing the comparison conditions that generate the boolean vector. In the color glow example, the `any` node acts like a 'scout'; it triggers the effect as soon as it finds any single color channel with a high enough value. Lowering the comparison threshold will cause more colors to trigger the glow, while raising it will cause fewer.
Code Examples
1// Compare each channel of the pixel color to see if it's greater than 0.9
2const isSaturated = greaterThan(baseColor.rgb, 0.9);
3
4// Trigger a glow if any color channel meets the condition
5const showGlow = any(isSaturated);