With alpha test I use the setup it as glAlphaFunc(GL_LESS, 1.0);
It seams that this function doesn’t apply on alpha to coverage. How are we supose to do this setup for alpha to coverage ? I had a quick look on glCoverageSample but I haven’t seen any differences … actually I not sure I have understood the purpose of this function…
With alpha test I use the setup it as glAlphaFunc(GL_LESS, 1.0);
So, your alpha channel is < 1.0 wherever your leaf-texture should be visible and it is 1 wherever the alpha test should fail? This explains what you get
Since the leaf itself probably has an alpha value of 0.0, its coverage will be 0.0 --> it won’t ouput any fragments. And the outside of the leaf has a value of 1.0, thus it will get drawn.