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 /
  • Help Room /
avatar image
1
Question by Phorj · Aug 15, 2021 at 07:07 AM · renderingshadows

URP - No shadows from Spotlight

Another week, another problem to decipher. This is fun.

This time, no matter how many different tutorials I follow, I cannot get the spotlight to cause a shadow on anything in real-time.

You would think it would be easy but apparently no matter what I tweak and no matter how much I dumb down the complexity of the scene, nothing works. Please help, I'm pulling out my hair as it's supposedly a simple task (which I have done quite easily in the past) but on a URP-native project nothing works; pre or post-processing.

See pic. You would think the spotlight would cause the cube to cast a shadow? No no no that would be tooooo easy.

alt text

The cube is clearly shown as lit-up by the spotlight.

Settings you ask? (Note, all settings are tweaked to the moon and back as I was trying to find any indication that they were impacting on my lack of shadow.)

alt text

Baked lightmap? Turned it alllll off (and cleared the data) because I thought that was the cause.

Shadow quality? High and 'Distance Shadow Mask'.

Mesh renderer? Shadows on.

In fact anywhere there is the term 'shadows', I have on.

I legit just don't know what else Unity wants from me?! It's another thing I'll add to my list of things that should, 100%, be the most basic of tasks; yet it has turned into a 2-day rabbit-hole of 1000 Chrome tabs opened trying to resolve said 'basic' task.

Unity version 2020.3.5f1, URP project.

(As a fun fact, I changed from a non-URP project to a native, as the URP was bugging out with JSON errors and it took me weeks to figure out the underlying cause).

Please help, it would be greatly appreciated.

noshadow.png (77.0 kB)
noshadowsettings.png (55.6 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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Phorj · Aug 22, 2021 at 05:28 AM

For those playing at home, I found that a poorly-documented URP was the reason behind it.

Honestly, the "documentation" and "tutorials" on the URP is disgustingly shallow and provides little-to-no help with regards to real-world usage.

Good-luck if you're using one.

Comment
Add comment · Show 2 · 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 glenneroo · Sep 18, 2021 at 02:51 AM 0
Share

@Phorj Could you share with us what you did to get shadows working other than chastising Unity's documentation? I'm having the exact same issue.

avatar image Phorj · Jan 06 at 01:28 AM 0
Share

My apologies all for not putting in my fix. Super frustrated and didn't come back to it.

Long story short, it had to do with my camera perspective and the range at which the shadows were being shown to the camera.

avatar image
0

Answer by glenneroo · Sep 18, 2021 at 03:33 AM

Here are my settings to get shadows working in URP with a Spotlight and with the Oculus Quest: alt text


urp.png (73.8 kB)
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

184 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 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 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 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 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 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

Shadow rendering distance HTML5 1 Answer

Shadows not the same in editor game tap, and the game build! Bug? 0 Answers

Lights and shadows flickering extremely 1 Answer

Using multiple cameras for different render distances causes weird shadow effect? 0 Answers

[URP] Transp Shadergraph has 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