-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
GPUParticles2D not emitted in web export #75270
Comments
Can you open developer tools (F12 or Ctrl + Shift + I), reload the page and paste the console output here?
Only the Compatibility rendering method can be used in HTML5, since there's no stable API to run Vulkan on the web yet. Trying to use another rendering method will always use Compatibility once you export to HTML5 (check the Project Settings). |
I figured they were the same output but I didn't know there was a setting there. Thanks for the heads up. And I hope you don't mind I saved the log to a file. It would've been a crazy long comment otherwise. |
I can reproduce this. GPU particles do not work in web export because of some shader issue: godot/drivers/gles3/shaders/particles.glsl Line 308 in ba27db3
|
How can I change this file in the build? I modified it, recompiled and I get the same error in an exported game. |
Never mind, I got it. Here is the fix: |
@cody82 Please open a pull request against the Remember to modify your changes to follow the code style guidelines too. |
Godot version
4.0.1.stable
System information
Windows 10, NVIDIA GeForce GTX 960M (31.0.15.3141), GLES3
Issue description
GPUParticles2D are not displayed when exporting for web. CPUParticles2D appear to work as expected but the GPUParticles2D displays nothing upon playing the exported project in a browser.
I've tested in Chrome and Firefox using both Forward+ and Compatibility renderers which all produce the same result for me. Additionally, I've tested a similar project exported using Godot 3.5.2 GLES3 and found that both particles are displayed and emitting correctly in that version.
Steps to reproduce
Minimal reproduction project
Web Particle Test.zip
The text was updated successfully, but these errors were encountered: