Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
This question was closed Jan 08, 2015 at 08:57 PM by vexe for the following reason:

The question is answered, right answer was accepted.

http://forum.unity3d.com/threads/matte-shadow.14438/#post-768204

avatar image
1
Question by koek · May 16, 2012 at 08:38 AM · shadershadowstransparency

invisible/transparent plane, receiving and rendering shadows - which shader?

I need a 100% transparent plane. Only the shadows of the objects that are placed on it shall be visible. I just tried to use klakos shader, as it seems to be the one that works. But I just get a grey plane. I dont know how to turn it transparent.

This one looks promising.

What am I doing wrong? Or do you have any proposals for a better solution?

My fallback would be blob shadow projection. It is already working on my transparent plane.

Comment
Add comment · Show 1
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 koek · May 21, 2012 at 12:04 PM 0
Share

Any Ideas?

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by UnityIsSlow · Feb 09, 2013 at 06:27 AM

You would need a custom lighting function (aka ShadowOnly) and a surface function. These are snippets from my program. The custom lighting function colors the shadow while the surf() makes your plane invisible. Is this what you're asking for?

                 inline fixed4 LightingShadowOnly (SurfaceOutput s, fixed3 lightDir, fixed atten) {
                         fixed4 color;
                         color.rgb = s.Albedo * atten;
                         color.a = s.Alpha;
                         return color;
                 }
                 
                 void surf (Input IN, inout SurfaceOutput o) {
                         fixed4 color = tex2D(_MainTex, IN.uv_MainTex) * _Color;
                         o.Albedo = color.rgb;
                         o.Alpha = 0;
                 }

Have fun!

Comment
Add comment · Share
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

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Is there a way to have a transparent vertex shader recieve and cast Shadows? 0 Answers

Transparency Shader that Allows Shadows 1 Answer

Is there a way to make the standard transparency or fade shader recieve shadows? 2 Answers

Unity Mesh Based Shadows Overlap Issue 0 Answers

Plugging in screenPosition node`s A channel gives different result then plugging in an identical float value in shader graph. 1 Answer


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