您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
20 行
435 B
20 行
435 B
#ifndef LIGHTWEIGHT_PASS_SHADOW_INCLUDED
|
|
#define LIGHTWEIGHT_PASS_SHADOW_INCLUDED
|
|
|
|
float4 ShadowPassVertex(float4 pos : POSITION) : SV_POSITION
|
|
{
|
|
float4 clipPos = UnityObjectToClipPos(pos);
|
|
#if defined(UNITY_REVERSED_Z)
|
|
clipPos.z = min(clipPos.z, UNITY_NEAR_CLIP_VALUE);
|
|
#else
|
|
clipPos.z = max(clipPos.z, UNITY_NEAR_CLIP_VALUE);
|
|
#endif
|
|
return clipPos;
|
|
}
|
|
|
|
half4 ShadowPassFragment() : SV_TARGET
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif
|