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
| Name | Type | Notes |
|---|---|---|
x | Val |
Example
const blur = length(fwidthFine(reflected))
See also
fwidth— How much a value changes across one pixel, in any direction:|dpdx| + |dpdy|.dpdxFine—dpdxmeasured per pixel rather than per 2×2 pixel block.