le
True when a is less than or equal to b.
le(a: Val, b: Val): Expr
Import math from shaders/std and use math.le.
Parameters
| Name | Type | Notes |
|---|---|---|
a | Val | |
b | Val |
Example
const inBand = select(le(abs(d), width), 1, 0)
See also
lt— True whenais less thanb.gt— True whenais greater thanb.ge— True whenais greater than or equal tob.select—ifTruewhen the condition holds, otherwiseifFalse.