Spatial aliasing appearing on grid lines using GLSL with mod(), dFdx and dFdy functions as distance functions
# Spatial Aliasing on Grid Lines in GLSL: A Postmortem ## Summary – Grid lines rendered with a GLSL fragment shader exhibit jagged triangular artifacts (“spatial aliasing”) – Occurs when computing grid line visibility using `mod()`, `dFdx`, and `dFdy` as distance estimators – Aliasing manifests as sawtooth patterns along grid lines when camera isn’t axis-aligned … Read more