So the story is about the Silhouette Outlined Diffuse shader I'm using from here:
Short story: How do I get this shader to display shadows and a complete outline.
I'm using this shader because the default importable toon shader does not render plane outlines (which this does.... slightly). The MAIN problem, as you can tell, is that when switching from diffuse to this (to represent highlighting of the terrain tile), the shadows from the directional light in my scene do not render. Having no background or clue about shaders, I wouldn't even know where to begin, as I know they are a beast to tackle and learn.
The second, less important thing is that the outline does not render (the V corner of the tile) when I'm facing toward the inside from the outside of the plane (like I have to be on the inside of the plane to see all 4 edges).
I know this is an old thread, but were you able to solve your issue? I'm having the same problem. I'm using an outline shader, but it's not displaying shadows. I've tried adding Fallback "Diffuse" or "VertexLit" at the bottom, but that doesn't do the trick either. Any luck?
Unfortunately, no. This very rare case of having a 2D plane messing with the shader is not very functional. If at all possible, stick with built in.
I'd recommend converting this to a surface shader, as fragment shaders aren't meant for lighting in Unity anymore. Depending on the version of unity you are using, I can help you do this.
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
23 People are following this question.
Silhouette Toon Shader
Shader: Outlined Diffuse with Vertex Color?
Outlined Specular shader?
Object outline component
Making a silhouette outline shader