Skip to content

Instantly share code, notes, and snippets.

@scheibel
Created December 28, 2019 10:12
Show Gist options
  • Save scheibel/4857cd27170a23e3074eb6e641d7f434 to your computer and use it in GitHub Desktop.
Save scheibel/4857cd27170a23e3074eb6e641d7f434 to your computer and use it in GitHub Desktop.
The revelant excerpt of the further stripped-down shader
float aastep(float t, float value) {
return step(t, value);
}
float tex(float t, vec2 uv) {
return aastep(t, texture(u_glyphs, uv)[channel]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment