I was converting 2.X shaders to 3.0, and for some reason it gives me an error on ‘discard’ that it can’t be used in vertex shaders, and of course it’s in the fragment shader, not vertex. Is there something missing I need to add to differentiate frag/vert shaders now, or is this a bug?
Try clip() instead.
Hmm, should have thought of that from old HLSL days, but error threw me. Anyways, thanks, that works fine.