-
Notifications
You must be signed in to change notification settings - Fork 279
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
Could I write customized shader for SWGL? #4257
Comments
IIRC, SWGL translates our GLSL sources, so you should be able to have your custom shaders, as long as they do roughly the same or similar things to the existing shaders (or otherwise you might hit limitations of the implementation). |
I can see prefix |
It was added for debugging purposes, and then SWGL decided to piggy back on it without adjusting the comment. |
I can see that SWGL use glsl-to-cxx translating glsl to C/C++. It happens during compiling, and I thought I can translate glsl during runtime. Maybe I can specify the shader_dir to my own directory. |
I tried put the customized glsl in |
I filed https://bugzilla.mozilla.org/show_bug.cgi?id=1703069 to fix this We can close this now |
When use OpenGL, I can create shader like below:
How to do that with swgl? Seems like swgl have its own syntax?
The text was updated successfully, but these errors were encountered: