-
Notifications
You must be signed in to change notification settings - Fork 5
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
Shader for coloring units and terrains does fail on web export #22
Comments
Deleted previous export templates and redownloaded with Official Github instead of Best Available - and exported in Compatibility - now the shaders are working. Tested in Firefox and Edge and using Itch.Io with BufferArray support. (Won't catch me installing Chrome) |
Based on what I can see, it seems that the problem lies in the cache generation process for the .godot folder. Specifically, the shader issue only occurs when this folder is missing, and it gets created using this command It seems that this step may not be necessary at all, as none of the example repositories use such a line or commit the '.godot' folder. I suspect that the --export-release flag should generate it automatically, but for some reason, it doesn't: An export to the web using a normally generated '.godot' folder has no issues with color shading. @Dracks also FYI |
Same result on Itch.io, cannot connect to the lobby server |
Ok back to topic. While it's great that we can manually export to the web and have the shader working, we still need an automated solution for this issue #25 . Therefore, I will keep this issue open for now. I have posted a comment on the following issue on the godot-ci repository regarding this matter: abarichello/godot-ci#127 (comment) |
I have tested it further and found that the problem lies more with the shader parameters than the shader itself. I have created an issue on the Godot GitHub repository to report this problem: |
Godot 4.3 will fix this issue. It is already solved in Godot 4.3 dev 4 (tested with minimal reproduction project). |
I have encountered an issue where the shader used for coloring units and terrains is not working as expected when exporting the project to a web format. I tested it in Firefox and Chromium:
As you can see, the units and buildings are all in their respective sprite colors.
The text was updated successfully, but these errors were encountered: