maltaisn/msdf-gdx

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

Opened this issue · 1 comments

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.