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
Weird lighting when using Cull Off
- Amplify_Borba
- Posts: 1239
- Joined: Mon Jul 24, 2017 9:50 am
Re: Weird lighting when using Cull Off
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!
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!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!