reverseDepthBuffer works instead of reversedDepthBuffer

Docs tell that we should use .reversedDepthBuffer

But it doesnt work actually. While the old reverseDepthBuffer flag works instead. Nobody else noticed this?

Create overlapping geometry like planes or anything else.

  1. Set WebGlRenderer reverseDepthBuffer: true. Rotate camera while looking at overlapping areas.
  2. Set WebGlRenderer reversedDepthBuffer: true. Rotate camera while looking at overlapping areas.

The rename was introduced in r179. What Three.js release do you use?

  • If it is r178 or earlier, keep using the old name.
  • If it is the latest one, you might report it at GitHub repo issues
3 Likes

I use the latest one. That’s why I’ve posted this. I don’t know why Noone else noticed this.

When I try it with r183, setting reverseDepthBuffer does nothing, setting reversedDepthBuffer removes the Z-fight (right snapshot).

Out of curiosity, have you tried different browsers, like Chromiun-based and non-Chromium based?