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