lt

True when a is less than b.

lt(a: Val, b: Val): Expr

Import math from shaders/std and use math.lt.

A condition for select.

Parameters

NameTypeNotes
aVal
bVal

Example

const rgb = select(lt(dist, radius), insideRgb, outsideRgb)

See also

  • le — True when a is less than or equal to b.
  • gt — True when a is greater than b.
  • ge — True when a is greater than or equal to b.
  • select — ifTrue when the condition holds, otherwise ifFalse.