0 votes

I watched this Youtube video which basically creates a material render priority 1 and a next pass, render priority 0 with no depth test set on true. With those settings it should work but yea, as all things should be, this of course does not work at all. Render priority does nothing and the next pass completely overrides the first material....so, how do I do this now?

enter image description here

Godot version 3.3.3
in Engine by (160 points)
edited by

1 Answer

0 votes

According to godot's documentation "Render Priority" only works for materials with the "transparent" flag set. Only transparent objects are sorted for rendering (back to front) and only then the render priority seems to be taken into account.

So, to fix your problem, set the "Transparent" flag on both materials and check if that does not lead to any other unwanted side effects.

(In the video you referenced an older version of Godot is used where opaque objects where sorted as well, it seems.)

by (25 points)

yea, already tried with transparent but it's an unusable mess... I guess I have to reinvent the wheel.

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.