Browse Source

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

Harald Csaszar 2 years ago
parent
commit
c9952ef71d

+ 1 - 2
spine-unity/Modules/com.esotericsoftware.spine.urp-shaders/Shaders/Include/Spine-Sprite-ForwardPass-URP.hlsl

@@ -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)