• 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 Sirmaiji · Feb 24, 2013 at 12:32 AM · lightingobjectshadowsshadowmask

Object drops shadow without accepting light

Hi everyone! Actually I want my object to cast shadows let's say from 1-st light source (Directional Light) affecting, but without accepting it's illumination. For this purpose I'm gonna use 2-nd light source (Point Light) and put light to an object only from that light source but this time without casting any shadows. I guess it's up to work with different layers, but after a few days of brainstorming I still got no clue. Is it possible to create such an effect? Thanks in advance for your help! :D

Comment
Add comment · Show 2
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 ionside · Feb 24, 2013 at 03:53 AM 0
Share

This sounds like a good opportunity to use a custom shader. I've played around with shaders but don't know enough to help you out with this particular one unfortunately.

avatar image Sirmaiji · Feb 24, 2013 at 01:32 PM 0
Share

Could you help me then solving a problem with this shader here?: link text

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by 12aithe · Feb 24, 2013 at 02:07 AM

I'm not sure what you are asking for here : you want to create a shadow with unity FREE or shadows that are not affect by light illumination?! Well : if you do not want to cast shadows there is option for shadow from each light .... like if Directional light it has options for cast parameters..... Or you mean like light mapping not Real - Time shadows?

Or do you mean for example :

A ( Direction Light ) - Does cast shadows but has not actual light " B - Have a point light that does not cast shadows just the light"

if A and B is TRUE :

For direction light make sure shadow type is of you're choice ... other then no cast shadows in drop down take intensity to 0 ....

Then on point light uncheck the cast shadow check boxes and have you're choice of intensity on the object..... basicly saying the sun is the only shadows you want create and the point light will not affect the position on which the sun is casting.

I dont have pro but I think you would do as follow

Set Directional light : to a

Comment
Add comment · Show 1 · 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 Sirmaiji · Feb 24, 2013 at 12:27 PM 0
Share

Thanks for the answer! Talking about A and B you got it right (I'm working with PRO version). But I've already tried this method and unfortunately it's not working. The thing is when you drop the intensity down on Directional Light which is relatively linked to the shadow casting, shadows won't cast in that case. I'm not quite sure if I get your words right? Btw what did you mean by setting Directional Light : to a?

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

11 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

Related Questions

Shadows look bad or not show at all 0 Answers

2d lighting system that has shaped shadows. 0 Answers

How can I enable 'normal' shadows on a dithered -> transparent object? 0 Answers

Shadows are buged for me... 1 Answer

How to make a GameObject not hittable by shadows ? 2 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