Try to create boolean in shader

I am new in openGl, I have found a boolean code in unity shader, this is the video:

And this is the code link:

how do I implement it in GLSL?

You might check this tuturial out:

You can do all kinds of things like this with similar techniques. Such as rasterizing concave polygons:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.