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.
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:
The fragment shader does
smoothstep(1.0, 0.0, dist). Butsmoothstep'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:
cc @kkaefer @ansis