Depth buffer as written by vertex shader (left) and with fragment shader (right). Note fragment shader changes depth buffer allowing subsequently drawn crosshairs to show a depth test intersection with the brain. If Metal can not write to the depth buffer, I need to restrict myself to OpenGL and WebGL2, both of which support this feature.
vertexShader_fragrmentShader
Depth buffer as written by vertex shader (left) and with fragment shader (right). Note fragment shader changes depth buffer allowing subsequently drawn crosshairs to show a depth test intersection with the brain. If Metal can not write to the depth buffer, I need to restrict myself to OpenGL and WebGL2, both of which support this feature.
vertexShader_fragrmentShader