Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

Transparent Shader problem

$
0
0
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

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>