Page 1 of 1

Weird lighting when using Cull Off

PostPosted: Thu Nov 23, 2017 6:47 pm
by DuvE
Hi, I have a problem with a double-sided (Cull Off) lit shader. Lightning behaves very weirdly, here is a short video:

https://www.youtube.com/watch?v=OJr3Z0alq-I

Re: Weird lighting when using Cull Off

PostPosted: Fri Nov 24, 2017 11:30 am
by Amplify_Borba
Hey there!

Cull set to off disables culling, producing a double-sided material, however light is still calculated according to the normal of the mesh's face and, as result, it will not render correctly for the back face, which is the expected behavior.

There are a few ways to work out this situation, the simplest one by using our Switch by Face node to provide different inputs for when each face is facing the camera.

Please let us know if you have any further questions, thanks!