Hi,
We are currently experimenting with Unity 2D URP and are getting a spine warning:
Warning: 'Add Normals' required on URP shader to receive shadows!
Please
a) enable 'Add Normals' at the SkeletonRenderer/SkeletonAnimation component under 'Advanced' or
b) disable 'Receive Shadows' at the Material.
From looking into the code it seems this warning is presented if:
-
URP shader is used
-
material doesn't have _RECEIVE_SHADOWS_OFF
-
Add normals is not enabled
On the other hand in order to get the option to set/clear _RECEIVE_SHADOWS_OFF it seems to be required to use URP 3D shader (and a few other conditions).
From a few quick tests it doesn't seem to cause any difference if normals are added or not for the received shadows. Same applies for _RECEIVE_SHADOWS_OFF (edited by hand in the texture file, and sometimes left in the material settings after using some of the URP 3D shaders before setting it to Universal Rendering Pipeline/2D/Spine/Skeleton lit).
Is this warning supposed to be shown in URP 2D?
If so, are we supposed to enable "Add Normals" on every usage of the spine skeleton objects?
Or are we supposed to manually disable shadows (by editing material files)?