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

Not GWT compatible - shaders unable to load in GWT at runtime #5

Open
antzGames opened this issue Nov 30, 2023 · 1 comment · May be fixed by #6
Open

Not GWT compatible - shaders unable to load in GWT at runtime #5

antzGames opened this issue Nov 30, 2023 · 1 comment · May be fixed by #6

Comments

@antzGames
Copy link

antzGames commented Nov 30, 2023

As described in https://libgdx.com/wiki/file-handling

public class MsdfShader extends ShaderProgram {

    public MsdfShader() {
        super(Gdx.files.classpath("font.vert"), Gdx.files.classpath("font.frag"));

is not supported at runtime in GWT.

image

My GWT project compiles fine, but running in the browser it fails with above message.

Work around is to copy the shaders from this library into my assets folder.

@SimonIT
Copy link
Contributor

SimonIT commented Dec 21, 2023

@SimonIT SimonIT linked a pull request Dec 21, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants