mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
[unity] Fixed preceding merge commit, shader DepthNormals pass section was added twice due to existing 4.2-beta code.
This commit is contained in:
parent
ea16621fb1
commit
55e8cf5e78
@ -212,41 +212,6 @@ Shader "Universal Render Pipeline/Spine/Sprite"
|
|||||||
#include "Include/Spine-Sprite-DepthOnlyPass-URP.hlsl"
|
#include "Include/Spine-Sprite-DepthOnlyPass-URP.hlsl"
|
||||||
ENDHLSL
|
ENDHLSL
|
||||||
}
|
}
|
||||||
|
|
||||||
Pass
|
|
||||||
{
|
|
||||||
Name "DepthNormals"
|
|
||||||
Tags{"LightMode" = "DepthNormals"}
|
|
||||||
|
|
||||||
ZWrite On
|
|
||||||
Cull Off
|
|
||||||
|
|
||||||
HLSLPROGRAM
|
|
||||||
// Required to compile gles 2.0 with standard srp library
|
|
||||||
#pragma prefer_hlslcc gles
|
|
||||||
#pragma exclude_renderers d3d11_9x
|
|
||||||
|
|
||||||
#pragma vertex DepthNormalVertexSprite
|
|
||||||
#pragma fragment DepthNormalFragmentSprite
|
|
||||||
|
|
||||||
// -------------------------------------
|
|
||||||
// Material Keywords
|
|
||||||
#pragma shader_feature _NORMALMAP
|
|
||||||
#pragma shader_feature _ALPHATEST_ON
|
|
||||||
#pragma shader_feature _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A
|
|
||||||
|
|
||||||
//--------------------------------------
|
|
||||||
// GPU Instancing
|
|
||||||
#pragma multi_compile_instancing
|
|
||||||
|
|
||||||
#define USE_URP
|
|
||||||
#define fixed4 half4
|
|
||||||
#define fixed3 half3
|
|
||||||
#define fixed half
|
|
||||||
#include "Include/Spine-Input-Sprite-URP.hlsl"
|
|
||||||
#include "Include/Spine-Sprite-DepthNormalsPass-URP.hlsl"
|
|
||||||
ENDHLSL
|
|
||||||
}
|
|
||||||
|
|
||||||
// This pass is used when drawing to a _CameraNormalsTexture texture
|
// This pass is used when drawing to a _CameraNormalsTexture texture
|
||||||
Pass
|
Pass
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user