flutter/flutter#193388 and #193389: reproductions
coord.fragencodesFlutterFragCoord()in red and green (one period per 8 px), so every pixel's expected value is known.repro_193388.dartis the reproduction from #193388, verbatim.sweep.dartsweeps the fractional part of the rect's origin and prints the mean offset, in px, between the coordinate the shader saw and the pixel centre. It covers pixels at least 2 px inside a 40Γ16 rect. The SDF arm is the defaultisAntiAlias = true. The direct arm isisAntiAlias = falsewith the #193388 primer. The last column counts pixels where the two arms differ.
Setup: flutter create --platforms=macos --empty repro, put coord.frag in shaders/, and add to pubspec.yaml:
flutter: