fwidthFine

fwidth measured per pixel rather than per 2×2 pixel block.

fwidthFine(x: Val): Expr

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

Parameters

NameTypeNotes
xVal

Example

const blur = length(fwidthFine(reflected))

See also

  • fwidth — How much a value changes across one pixel, in any direction: |dpdx| + |dpdy|.
  • dpdxFine — dpdx measured per pixel rather than per 2×2 pixel block.

Used by

PrismaticGlass