Hi
I’m trying to create a simple lit cross section shader in shader graph within HDRP.
How can I edit the shader graph to prevent the backfaces from receiving light?
I would like the cross section to resemble a solid unlit colour. e.g. a solid red colour in the image below.
I’m using the default HDRP scene.
Any help would be really appreciated!
Thank you for the help. This worked great! See the red cube below.
I’m having a slight problem when trying to implement this same hack but with the front faces having a texture and the backfaces appear unlit. I’ve added a normal texture only on the front faces but the backfaces seem to show a dark colour where the faces join.
Is there a way to prevent these dark areas on the back faces when using a normal texture?
Actually I think I may have fixed it - I’ve included a Normal Vector node with Tangent Space for the backfaces.
1 Like
How could I add a dithered effect to the remaining part of the cross section?
I’ve tried using dither with the alpha value however this applies the dither to the entire model.
Like … dither the top front faces ?
It should be possible by applying the dither only on front face IF they are on top of the cutting plane.