Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Type:ZTest

From Resonite Wiki
Enum
Name: ZTest
Type: FrooxEngine.ZTest

The ZTest enum is used to define when a material should be rendered, based on the depth of what's already been rendered. For example, Less would in theory only draw when the new geometry is in front of (i.e. with a lower depth than) previous geometry (as is the case with most materials). However, the actual behavior is currently misaligned from what the names suggest due to a bug.[1]

Values
Name Value Description
Less 0 Actually behaves like Always should.
Greater 1 Actually behaves like Never should.
LessOrEqual 2 Actually behaves like Less should.
GreaterOrEqual 3 Actually behaves like Equal should.
Equal 4 Actually behaves like LessOrEqual should.
NotEqual 5 Actually behaves like Greater should.
Always 6 Actually behaves like NotEqual should.