hi all
I'm having a problem with fragment shader
https://imgur.com/a/uDGXK
I don't want to render the parts that are in red in the image
I have to passes which culls clockwise and anticlockwise
and I'm getting the dot product of the normal with the camera position
if its less than 0 I set a transparent fragment
otherwise discard the fargment
here is the shader
https://pastebin.com/WyjuuqbT
↧