legomanww
New member
I am writing a little shader plugin, and I need to determine if the spot it is shading is facing the camera, or away. I need to be able to render both sides of the polygons, so I figured I could just turn on double sided, and then determine the direction the polygon is facing, then I can shade it appropriately.
I cannot figure out how I would determine wether or not the polygon is facing the camera or not.
I've got an idea that I would use the wNorm and the camera position coordinates it gives to determine if it's facing, but I don't know where to go from there.
thanks,
William
I cannot figure out how I would determine wether or not the polygon is facing the camera or not.
I've got an idea that I would use the wNorm and the camera position coordinates it gives to determine if it's facing, but I don't know where to go from there.
thanks,
William