Weird lighting when using Cull Off

Node-based Shader Editor
Post Reply
DuvE
Posts: 43
Joined: Thu Nov 23, 2017 6:46 pm

Weird lighting when using Cull Off

Post 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
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: Weird lighting when using Cull Off

Post 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!
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!
Post Reply