Easiest is to ask @RaananW When searching for depthFunction in the API, I still get the 4.7k of useless PGs and still couldn’t find the explanation in the doc.
May be the explanation itself can be given to you by @Evgeni_Popov . I haven’t reused this since my previous attempt, so I have no faen clue. Sorry,
Our playground search functionality needs a revamp. I have already made some internal tests to improve it, it’s just a matter of finding the time and implement it.
The values you are searching for are in the Constants file:
// Depth or Stencil test Constants.
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will never pass. i.e. Nothing will be drawn */
public static readonly NEVER = 0x0200;
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will always pass. i.e. Pixels will be drawn in the order they are drawn */
public static readonly ALWAYS = 0x0207;
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than the stored value */
public static readonly LESS = 0x0201;
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is equals to the stored value */
public static readonly EQUAL = 0x0202;
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is less than or equal to the stored value */
public static readonly LEQUAL = 0x0203;
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than the stored value */
public static readonly GREATER = 0x0204;
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is greater than or equal to the stored value */
public static readonly GEQUAL = 0x0206;
/** Passed to depthFunction or stencilFunction to specify depth or stencil tests will pass if the new depth value is not equal to the stored value */
public static readonly NOTEQUAL = 0x0205;
In UMD they would be BABYLON.Constants.WHATEVER_YOU_CHOOSE
LOL. I sort of had the feeling that they might be the same as the stencil (kind of makes sense) but of course lazy me didn’t check it out . Thanks a lot @ShaderRig There you go.
Both of you, have a great day