Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 Tony_T · Sep 23, 2015 at 03:03 PM · lightshadow

Shadow Strength Of A Mesh

Hello. I have a hanging lamp model that looks like the image below and I've placed a Point Light where the bulb is but i want to decrease the Shadow Strength of the light because the shadows of the metal parts are too dark and it looks unrealistic. If i do decrease it, all the shadows from that light are being decreased making the light pass through walls. Is there any way i can just decrease the shadow strength of a specific object/mesh ? Or any alter ways i can achieve that ? alt text

1.jpg (30.0 kB)
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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by MaT227 · Sep 25, 2015 at 09:20 AM

If you want to decrease the shadow strength of a specific object this needs to be handled in the material and so in the shader.

Depending on the shader you are using you need to create a version which allows you to control the shadow strength.

Edit: As you suggested, using light cookies is a good solution for your case because you can transfer the shadows of the cage in the cookie texture and use the classic shadow strength for other objects. Just don't forget to deactivated shadows for your cage mesh.

Comment
Add comment · Show 10 · 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 Tony_T · Sep 25, 2015 at 12:25 PM 0
Share

I'm using the Standard Shader that Unity 5 has. I took a look at the code and it's huge, not sure I know what to do exactly. I tried using the Transparent option ins$$anonymous$$d of Opaque and decrease the A in the Color window but it just hides some pixels of the shadow.

avatar image MaT227 Tony_T · Sep 25, 2015 at 01:35 PM 0
Share

If you are not able to modify the Unity Standard shader code, I suggest you to take a look at Shader Forge. If you want to dig deep into Unity shaders, take a look at UnityStandardCore.cginc and fragment functions. If you want to know more about surface shader take a look at UnityPBSLighting.cginc.

avatar image Tony_T MaT227 · Sep 25, 2015 at 03:19 PM 1
Share

I'm surprised that no one else has asked about mesh shadow strength or something similar. I checked the Shader Forge but it's not what I'm looking for. It looks too complex and too expensive. All i want to do is reduce the shadow opacity of specific meshes without reducing the light's shadow strength. Could I maybe achieve this with point light cookies ?

Show more comments
Show more comments
avatar image MaT227 · Sep 25, 2015 at 06:20 PM 0
Share

This is quite easy. You need to draw the shadows as a textures and applies it to the light as a cookie. You'll have to convert the texture to cookie. The good look of the texture depends on you but you can look at the documentation if you want to know more about light cookies.

How do I make a Spot Light Cookie?

Cookies

avatar image Tony_T MaT227 · Sep 25, 2015 at 06:22 PM 0
Share

Okay, but what about cubemaps. Wouldn't it be easier to just create a cubemap only for the shadows ?

avatar image MaT227 · Sep 25, 2015 at 06:27 PM 0
Share

Cubemaps at not used for this purpose. Even if the texture cookie can be mapped on a sphere depending on your import setting this cannot be considered as a cubemap.

avatar image Tony_T MaT227 · Sep 25, 2015 at 06:35 PM 0
Share

Oh boy. How am i supposed to create a 3D texture of the shadows ?

avatar image MaT227 · Sep 25, 2015 at 06:46 PM 0
Share

Take a look at the documentation at try for yourself with the examples. Look at here and here also. Basically you create 2D texture and in the import settings, you map it to a sphere.

avatar image
0

Answer by Xx_Link_xX · Sep 13, 2017 at 12:40 PM

@ant0ny

I've discovered an easy way to do this with the default material. Just activate illumination and add the albedo map as the color map. Make the intensity something small (like 0.2) and voila!

I know this is an extremely old question, but the answer needs to be known to anyone else looking. =]

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
avatar image
0

Answer by OusedGames · Sep 13, 2017 at 01:15 PM

Hello buddy, that's really simple!!

  • Just go on your Point Light, an there's an option, shadow strength Jaja
    Hope it works

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

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

31 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Keep Shadows From Being Lit Up 1 Answer

How to use a sprite/mesh shader to light up behind it? 1 Answer

URP shadow problem 0 Answers

Directional Light Shadows with Cookies 1 Answer

No shadows with splitscreen 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