Author Topic: no setDepthBufferWrite?  (Read 341 times)

Offline MichaelJPCT

  • long
  • ***
  • Posts: 140
    • View Profile
no setDepthBufferWrite?
« on: August 31, 2016, 08:13:16 am »
i have an object (a sky plane, or sky dome) which should not affect depth buffer. but in JPCT-AE there is no setDepthBufferWrite(), so now i have to clear depth buffer after drawing the sky.
it would be better if there is the setting.
also, setDepthBufferTest() could be useful too.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11776
    • View Profile
    • http://www.jpct.net
Re: no setDepthBufferWrite?
« Reply #1 on: August 31, 2016, 10:01:28 am »
I see your point, but clearing the depth buffer is actually a NOP on modern hardware.