mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 02:36:56 +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
|
#endif
|
||||||
#if defined(_ADDITIONAL_LIGHTS) && USE_FORWARD_PLUS
|
#if defined(_ADDITIONAL_LIGHTS) && USE_FORWARD_PLUS
|
||||||
inputData.normalizedScreenSpaceUV = GetNormalizedScreenSpaceUV(input.pos);
|
inputData.normalizedScreenSpaceUV = GetNormalizedScreenSpaceUV(input.pos);
|
||||||
#else
|
// note: don't assign normalizedScreenSpaceUV otherwise since old URP versions are missing this member variable
|
||||||
inputData.normalizedScreenSpaceUV = 0;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(SPECULAR)
|
#if defined(SPECULAR)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user