Author Topic: no setDepthBufferWrite?  (Read 1528 times)

Offline MichaelJPCT

  • float
  • ****
  • Posts: 264
    • 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: 12295
    • 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.