mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[unity] URP Shaders: Fixed a shader compile error in "URP/Spine/Sprite" shader on old Unity versions 2019.X.
This commit is contained in:
parent
baa12f9c4f
commit
c9952ef71d
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user