0 votes

How the change depth test in a spatial material from lessthan to greaterthan?

(maybe I'm silly but I did search the docs and internet and didn't find how to do this...)

Best, Hu

in Engine by (130 points)

Can you elaborate on what you want to achieve?

Yes, DDrop, I will gladly elaborate. :)

E.g. when Super Mario is behind an object you will see him rendered as a gray silhouette. This can easily be achieved with rendering the object in two passes, where the silhouette pass is rendered with GL_GREATER.

1 Answer

0 votes

Looking at the source code I can't find any implementation of such a feature.

So I added a feature request for this. #1298

by (130 points)
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.