Pixels that are facing the camera.

Hello guys, i am wondering if there is a way to get/mask only the pixels that are facing the camera from a normal map, in case you are wondering why, i’m trying to make a sparkling snow material, but getting sparkles only on certain area based on the position and rotation of the camera, i hope someone can help me with this, thank you :slight_smile:

It is a simple as taking a dot product between pixel normal and camera vector.
Also there is a good thread about sparkling materials.

Thanks alot, i tried the link that you provided, but i don’t fully understand the explations, so i tried to copy/paste the graph code and i get this error:

Sans titre.jpg