Title_AlphaPNG-compressor.png
  • Grey Facebook Icon
  • Grey Twitter Icon
To see this working, head to your live site.
  • All Posts
  • Categories
  • My Posts
Michael Aganier
Oct 10, 2020

Sprite shadows

in How to Use

This demo of AnyPortrait shows sprites having casting shadows on 3d objects.

https://youtu.be/aj-qPLLzX4I?t=37


I remember reading that Unity's Sprite renderer didn't support that. Does AnyPortrait use custom shaders to be able to do that or is that a new built-in feature for 2D URP?


What do I have to do to enable shadow casting on 3d objects?

2 answers0 replies
0
2
OscarLeif
Oct 10, 2020

Any Portrait don't use SpriteRenderer component, it's a mesh (3D), so it can cast shadows.

1
RainyRizzle
Oct 11, 2020

Hello, Michael Aganier.

As OscarLeif said, AnyPortrait does not use SpriteRenderer, it uses MeshRenderer, so it can be placed with 3D objects.

( Thank OscarLeif for answering! :) )


Additionally, shadow options are in the Bake Dialog.

Please check the link below.

https://rainyrizzle.github.io/en/AdvancedManual/AD_BakeDialog.html


If you have any further questions, please leave a post!

Thank you.

2 comments

© 2016-2021 by RainyRizzle. Proudly created with Wix.com