We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I was looking through the code in this repo and noticed https://github.com/PixelsCommander/pixi-sdf-text/blob/master/src/sdf.frag#L23
gl_FragColor = vec4(color, alpha) * u_alpha;
This causes the RGB channels to also be multiplied by the alpha value, darkening the color as it becomes less opaque.
What was almost certainly the intended behavior would be better represented as:
gl_FragColor = vec4(color, alpha * u_alpha);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was looking through the code in this repo and noticed https://github.com/PixelsCommander/pixi-sdf-text/blob/master/src/sdf.frag#L23
This causes the RGB channels to also be multiplied by the alpha value, darkening the color as it becomes less opaque.
What was almost certainly the intended behavior would be better represented as:
The text was updated successfully, but these errors were encountered: