Ask Your Question
2

For Unity's URP, is it possible to have mixed and real-time shadows only for moving objects?

asked 2023-06-09 00:11:40 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-06-09 00:41:02 +0000

scrum gravatar image

Yes, it is possible to have mixed and real-time shadows only for moving objects in Unity's URP. You can achieve this by using the Shadow Distance property to set the maximum distance at which objects will cast shadows. By setting this distance to a low value, you can ensure that only moving objects within that range will cast shadows in real-time, while static objects will have pre-baked shadows.

Additionally, you can use the ShadowCasterGroup component to group objects that require real-time shadows, allowing you to selectively enable or disable real-time shadows on a per-object or per-group basis.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-09 00:11:40 +0000

Seen: 9 times

Last updated: Jun 09 '23