0 votes

Hey,

in my project I have a meshObject and a CPUParticle effect in front of that. It works fine, until I set an alpha value in the shader of meshObject. Than the depth order drawing gets confused and my mesh is drawn in front of my particle effect:

https://youtu.be/SoHEjtwOgus
If you can't see what I'm doing, I'm commenting out the line "alpha = 1.0;" in the shader script and commenting it in again. You can see the effect in the 3d window, the effect in the running game is the same.

Here is the link to my project:
https://github.com/Tobi-La/ParticlesAlphaDepthDrawOrderIssue
I am using Godot 3.1.1 stable and GLES2.
Is this an issue in Godot or do I have a wrong configuration somewhere?

Thanks for your help,
Tobias

in Engine by (205 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.