1
Game Help / Re: Preset Problem
« on: September 30, 2018, 06:56:42 pm »Is the "depth_write off" attribute a necessary part of your preset code? Normally that's what causes issues with layered textures and objects showing up when they should be hidden behind something else.I guess it wasn't necessary. I got rid of it and scrolling doesn't show through the entire body no matter what's in front of it now. Thank you!
If depth writing is off, pixels are written to the frame without updating the depth buffer. The problem is that this means the depth checking function becomes useless, even if set to on, because the depth buffer is not updated. The pixels of the pass with depth checking set to off are written no matter what has been rendered before.
My suggestion would be to remove the "depth_check on" and "depth_write off" lines from the code (the depth_check attribute is already on by default) and see if that works.