How the change depth test in a spatial material from less_than to greater_than?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By huhund

How the change depth test in a spatial material from less_than to greater_than?

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

Best, Hu

Can you elaborate on what you want to achieve?

DDoop | 2020-08-02 22:09

Yes, DDrop, I will gladly elaborate. :slight_smile:

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.

huhund | 2020-08-03 06:12

:bust_in_silhouette: Reply From: huhund

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

So I added a feature request for this. #1298