21 lines
359 B
Plaintext
21 lines
359 B
Plaintext
|
// Shadow pass
|
||
|
Pass
|
||
|
{
|
||
|
Name ${VFXPassShadow}
|
||
|
Tags { "LightMode"=${VFXPassShadow} }
|
||
|
|
||
|
ZClip [_ZClip]
|
||
|
ZWrite On
|
||
|
Blend Off
|
||
|
|
||
|
HLSLPROGRAM
|
||
|
#pragma target 4.5
|
||
|
#if !USE_ALPHA_TEST && IS_TRANSPARENT_PARTICLE
|
||
|
#define USE_ALPHA_TEST 1
|
||
|
#endif
|
||
|
|
||
|
#define VFX_PASSDEPTH VFX_PASSDEPTH_SHADOW
|
||
|
${VFXInclude("Shaders/ParticleMeshes/PassDepthOrMV.template")}
|
||
|
ENDHLSL
|
||
|
}
|