Closed ShannonZ closed 5 years ago
https://stackoverflow.com/questions/24302152/opengl-alpha-test-how-to-replace-alphafunc-deprecated The reason that it is missing is, that it is deprecated since version 3.1, therefore you need to do it yourself in the fragment shader....
Clear Enough! Thank you @jvbsl
Description
I want to translate this project to C# using OpenTK. But I cannot find the equivalent code using OpenTK
glEnable( GL_ALPHA_TEST ); glAlphaFunc( GL_GREATER, 0.03f );
CapEnableCap.AlphaTest can not be recongnized when using Graphics.OpenGL4.
I've tried to use
EnableCap.SampleAlphaToCoverage
and other SampleAlphaXXX flags, but these all seem to not equivalent to C++ codeglEnable( GL_ALPHA_TEST );
.Related information