[unity] URP Shaders: Fixed a shader compile error in "URP/Spine/Sprite" shader on old Unity versions 2019.X.

This commit is contained in:
Harald Csaszar 2023-08-02 16:58:47 +02:00
parent baa12f9c4f
commit c9952ef71d

View File

@ -367,8 +367,7 @@ half4 ForwardPassFragmentSprite(VertexOutputLWRP input
#endif
#if defined(_ADDITIONAL_LIGHTS) && USE_FORWARD_PLUS
inputData.normalizedScreenSpaceUV = GetNormalizedScreenSpaceUV(input.pos);
#else
inputData.normalizedScreenSpaceUV = 0;
// note: don't assign normalizedScreenSpaceUV otherwise since old URP versions are missing this member variable
#endif
#if defined(SPECULAR)