question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hq2x GLSL shader: missing main()

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
ivanpopelyshevcommented, Nov 23, 2017

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 😃

0reactions
lock[bot]commented, Feb 24, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR: Missing main() · Issue #23 · glslify/glslify-loader
Hi. I'm getting an error: app.js:44688 THREE.WebGLProgram: shader error: 0 35715 false gl.getProgramInfoLog invalid shaders THREE.
Read more >
Some shaders do not compile on Recalbox (#28) · Issues
Tested by soaresden on Discord: # /overlay/lower/usr/bin/solarus-run -s='for i,id in ipairs(sol.main.get_resource_ids("shader")) do success, ...
Read more >
Cannot link shaders. ERROR:LINK-9 (line - 1) Missing ...
I am building simple "hello triangle" program to start with OpenGL-ES 2.0 developement, I am stuck with this tricky error. It displays that...
Read more >
Compile: "ERROR: Missing main()" but spec says linking ...
The problem i'm having is that i get the error “ERROR: Missing main()” when i'm trying to compile one of the shader objects...
Read more >
Shaders and filters - Emulation General Wiki
RetroArch .cg, .cgp, .glsl, .glslp, .slang, .slangp, .dll/.so. Old bsnes XML shaders (.shader) and old bsnes filter plugins (.filter) are no longer usable ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found