dpdy

How much a value changes from this pixel to the next one down.

dpdy(x: Val): Expr

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

Parameters

NameTypeNotes
xVal

Example

const stepY = dpdy(lookupUV)

See also

  • dpdx — How much a value changes from this pixel to the next one to the right.
  • fwidth — How much a value changes across one pixel, in any direction: |dpdx| + |dpdy|.