I’ve seen in a number of examples and the debug of the ‘compiled’ shader the use of the following for creating a cutout or alpha for a texture:
clip (o.Alpha - Cutoff);
I get the whole alpha and cutoff, that’s not the question. I cannot find any more info on the clip() function, especially since the return doesn’t actually get assigned. Is this the actual function behind the alphatesting? Or is this a built-in that automatically assigns to o.Alpha (o.a)?
Any answers?