I am trying to draw two planes that are intersected by a cylinder through the center of each plane.
When changing the alpha value of the planes, I would like them to become transparent, and show both the cylinder as well as the other plane, however this only works correctly when viewing it from behind.
GL_BLEND enabled
GL_DEPTH_TEST enabled
GL_SAMPLE_ALPHA_TO_COVERAGE enabled
BlendFunc = GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA
BlendFuncSeparate = GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_ONE, GL_ONE
Draw the planes first, left to right
Draw the cylinder