You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
The fragment shader does smoothstep(1.0, 0.0, dist). But smoothstep's behavior is undefined when its first argument is >= its second argument. On macOS, it appears that the result is always 0.
Changing it to smoothstep(0.0, 1.0, dist) also doesn't work -- except for a band across the middle of the screen, the result value is always 1.0.
Using the following shader modification, you can see it's calculating the distance from the a horizontal line through the center of the viewport, rather than the desired value:
Activity
kkaefer commentedon Apr 18, 2017
Looks like this was broken from the very beginning: mapbox/mapbox-gl-js@63e9f71#diff-97267ac172ce8fd831ea9c2993add6a6R9
kkaefer commentedon Apr 18, 2017
This is almost certainly the culprit for #1555
kkaefer commentedon Apr 18, 2017
How did you reach that conclusion? I'm seeing different results (no antialiasing) when manually setting
float alpha = 0.0.jfirebaugh commentedon Aug 7, 2017
Fixed in #9699.