hq2x GLSL shader: missing main()
See original GitHub issueI’m trying to use the hq2x shader from Armada651/hqx-shader, but I get ERROR: Missing main() (compileProgram.js:73)
.
Because the vert-frag-stuff (i’m not that confident with shaders tbh) is in one file i initialized the PIXI filter with both arguments using the same source (the full glsl file) first.
Then I splitted the glsl file into the right parts und using them. Yields to unknown overload: transpose
.
Lastly I tried only supplying one argument (the full glsl file), still missing main. But this time once. Makes sense.
I see that the shader checks if it’s asked for VERTEX or FRAGMENT, so I guessed my first way of using it was right, but the result feels like neither VERTEX nor FRAGMENT are defined ever.
Is there something wrong with pixi or is there a right way to use this/any glsl shader with pixi?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top GitHub Comments
You need webgl2 for “transpose” and “mat4x3”. PIXI v4 supports only webgl1, however for pixi-v5. You can try to build thing from “next” branch, or just wait two months or so 😃
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.