Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 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 Zarrashi · Oct 27, 2013 at 05:30 AM · shadershadersshadowsshadowconfirm

Is it possible to change the shadow that is cast?

Its all in the question. Specifically, I need to find a way to have dynamic shadows, but the shadows are no longer realistic. More specifically, I would prefer a way to replace the way the shadow looks with a texture that moves dynamically in place of the shadow.

Yes, I am willing to code shaders and yes, I have dabbled in it a little already. I will continue my research in shaders; however, if it cannot be done within unity I need to know if I am wasting my time.

Mainly, I just need to know if it can be done. I don't need specific instruction on how to do it (yet at least). If it can, am I correct in coding shaders? if not, where would I begin?

I don't want to go into too much detail about why I need it, and I appreciate your understanding and help in advance.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by tanoshimi · Oct 27, 2013 at 06:52 AM

Yes, shadows are controlled by specific passes in your shader, with the tags "LightMode" = "ShadowCollector" and "LightMode" = "ShadowCaster". You can customise these however you want to specify how an object receives and casts shadows respectively.

Comment
Add comment · Show 4 · 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
avatar image Zarrashi · Oct 27, 2013 at 07:06 AM 0
Share

Ty for the reply, and I will leave this up for anyone with the same question. However, after about 11 hours of preli$$anonymous$$ary research about the engine, converting my UD$$anonymous$$ knowledge to Unity, and learning shader coding, I found out that all I have to work with in Unity is projectors. Back to the UD$$anonymous$$.

avatar image tanoshimi · Oct 27, 2013 at 07:15 AM 0
Share

You'll have to schedule a lot more than 11hrs to learn shader coding! And why are you now talking about projectors? Although they can be used to simulate simple blob shadows, they're not the same. Anyway - I did give you the answer to your question - it would be gracious of you to mark it as such :)

avatar image Zarrashi · Nov 01, 2013 at 01:25 AM 0
Share

I meant that all I have to work with in full Indie Unity is projectors in terms of shadows, or at least that's what I've been led to believe since I read that shadows are a pro only feature. Of course, I was fully prepared to do the work, but that doesn't change that I spent a considerable amount of time on an engine that wont help me, because for the full effect to be achieved I require dynamic shadows for the main character and a blob shadow wont cut it. Also as you've probably noticed, I am new here and had no clue that I needed to mark it as answered. I have done so.

avatar image tanoshimi · Nov 01, 2013 at 07:28 AM 0
Share

Since Unity 4.2 you've been able to use "hard" shadows from a directional light in Unity Free. However, if you want soft shadows, or multiple shadows from different light sources you'll need Unity Pro.

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

16 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

Related Questions

Shadows with Alpha, fade out shadow. 2 Answers

I need swaying, self-shadowing, ultra-realistic grass 0 Answers

Toon shader light culling shadow issue 0 Answers

Shadows have weird seams and gaps 1 Answer

Any way to get rid of squares (artifacts) in a semi transparent shadow of a fade shader? 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