Skip to content
New issue

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

Shaders don't seem to apply to drawn text #49

Open
duysqubix opened this issue Oct 10, 2023 · 0 comments
Open

Shaders don't seem to apply to drawn text #49

duysqubix opened this issue Oct 10, 2023 · 0 comments

Comments

@duysqubix
Copy link
Contributor

When I'm drawing text in a window to which a fragment shader is set (e.g. like in the wavy shader example) it looks rather garbled
image
It looks like down there the whole atlas is drawn (abc...) although only fmt.Fprintln(basicTxt, "Hello, text!") was added to the basicTxt drawn.

And the black boxes could be the shader not knowing the output color.

I thought that both the image and the text was drawn to the canvas and therefore it should be treated as an entity and subject to the shader. This doesn't seem to be the case. Any help appreciated.

Original issue: faiface/pixel#260

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant