mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
[unity] Fixed SRP batching support at Sprite shader of URP and LWRP shaders, with enabled rim light they were not compatible. See #1813.
This commit is contained in:
parent
7ac47d191c
commit
473caafd00
@ -164,9 +164,10 @@ inline fixed3 calculateRampedDiffuse(fixed3 lightColor, float attenuation, float
|
||||
//
|
||||
|
||||
#ifdef _RIM_LIGHTING
|
||||
|
||||
#if !defined(USE_LWRP) && !defined(USE_URP)
|
||||
uniform float _RimPower;
|
||||
uniform fixed4 _RimColor;
|
||||
#endif
|
||||
|
||||
inline fixed3 applyRimLighting(fixed3 posWorld, fixed3 normalWorld, fixed4 pixel) : SV_Target
|
||||
{
|
||||
|
||||
@ -28,6 +28,9 @@ float _EmissionPower;
|
||||
|
||||
float4 _FixedNormal;
|
||||
|
||||
float _RimPower;
|
||||
half4 _RimColor;
|
||||
|
||||
CBUFFER_END
|
||||
|
||||
#endif // LIGHTWEIGHT_INPUT_SPRITE_INCLUDED
|
||||
|
||||
@ -28,6 +28,9 @@ float _EmissionPower;
|
||||
|
||||
float4 _FixedNormal;
|
||||
|
||||
float _RimPower;
|
||||
half4 _RimColor;
|
||||
|
||||
CBUFFER_END
|
||||
|
||||
#endif // URP_INPUT_SPRITE_INCLUDED
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user