Neos-Metaverse / NeosPublic

A public issue/wiki only repository for the NeosVR project
198 stars 9 forks source link

ZTest Does Not Work As Expected #3925

Open lxw404 opened 10 months ago

lxw404 commented 10 months ago

Describe the bug?

The ZTest within several materials does not seem to behave as one would expect. Certain modes such as LessOrEqual, and Always seem fine, however every other mode does not.

Relevant issues

(none)

To Reproduce

The test setup is a PBSMetallic Box which overlaps halfway on a sphere with a UI_UnlitMaterial applied described similar to how Zyzyl tested in discord. This can be tested with any combination of materials that support ZTest with the same result as below:

Neos_cQ5NPYpn6C

Expected behavior

ZTest should normally behave as follows:

Log Files

No response

Screenshots

No response

How often does it happen?

Always

Does the bug persist after restarting Neos?

Yes

Neos Version Number

2022.1.28.1310

What Platforms does this occur on?

Windows, Linux

Link to Reproduction Item/World

neosrec:///U-LuxKitty/R-d9680e14-062e-488a-ad64-8812db67d5eb

Did this work before?

I Don't Know

If it worked before, on which build?

No response

Additional context

No response

Reporters

LuxKitty, Zyzyl