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
no main().. #4
Comments
yeah, seems something has changed on shadertoy.com. Need to investigate this. |
fwiw, this seems to do the trick: diff --git a/getshader.py b/getshader.py +shaderfooter = """
not sure if there is a better way to pick the sampler types.. but anyways, this is pretty cool since I'd been wanting to test freedreno against some of the shadertoy shaders, but with firefox I just get crashes in some unrelated cairo code ;-) |
I have tracked down main() used on shadertoy.com. It additionally ensures that the alpha channel is opaque. fixed in commit 90f7bd6 |
cool, thx |
I think you need to append something along the lines of:
void main() { mainImage(gl_FragColor, gl_FragCoord.xy); }
to the end of the shader.. I guess that should probably be done in getshader.py
The text was updated successfully, but these errors were encountered: