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