Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Life Alchemist · Mar 03, 2014 at 02:17 AM · shadershadowoutlinediffusesilhouette

Outlined Shader Shadows

So the story is about the Silhouette Outlined Diffuse shader I'm using from here:

http://wiki.unity3d.com/index.php/Silhouette-Outlined_Diffuse

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).

alt text

outlineshader.png (299.9 kB)
Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image keith.ludwig · May 05, 2016 at 06:55 AM 0
Share

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?

avatar image Life Alchemist · May 06, 2016 at 05:55 AM 0
Share

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.

avatar image Namey5 · May 07, 2016 at 02:10 AM 0
Share

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.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

22 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Silhouette Toon Shader 0 Answers

Shader: Outlined Diffuse with Vertex Color? 1 Answer

Making a silhouette outline shader 4 Answers

Silhouetted-Outlined Shader not working with baked lights. 1 Answer

Silhouette Outline Shader and SpriteRenderer 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges