After reviewing the code, it appears that there might not be much control over the depthFunc with three.js. Can you confirm if it is only set once as the default GL state and not modifiable within the material?
I haven't come across any examples demonstrating this capability, so I'm curious if it exists elsewhere in the codebase.
If not, what would be the most effective way to adjust the depthFunc to gl.EQUAL during a specific draw call, such as when rendering a mesh with a material?
Would implementing a scene toggle, where one scene renders content and another renders objects on top of the initial scene, be a viable solution for achieving this effect? This method seems to be the only instance of altering the order of sorted objects that I have encountered.