diff options
Diffstat (limited to 'Assets/Bundle/Shaders/Unit')
-rw-r--r-- | Assets/Bundle/Shaders/Unit/Common.meta (renamed from Assets/Bundle/Shaders/Unit/Effect.meta) | 2 | ||||
-rw-r--r-- | Assets/Bundle/Shaders/Unit/Common/unit_common_depth.shader | 64 | ||||
-rw-r--r-- | Assets/Bundle/Shaders/Unit/Common/unit_common_depth.shader.meta | 9 |
3 files changed, 74 insertions, 1 deletions
diff --git a/Assets/Bundle/Shaders/Unit/Effect.meta b/Assets/Bundle/Shaders/Unit/Common.meta index 7df9a033..0f29291c 100644 --- a/Assets/Bundle/Shaders/Unit/Effect.meta +++ b/Assets/Bundle/Shaders/Unit/Common.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9cc4684b9f432f149b16a51f148c9490 +guid: 2873cd4cc2d0bfa4bbb17ad11144a488 folderAsset: yes DefaultImporter: externalObjects: {} diff --git a/Assets/Bundle/Shaders/Unit/Common/unit_common_depth.shader b/Assets/Bundle/Shaders/Unit/Common/unit_common_depth.shader new file mode 100644 index 00000000..075aec39 --- /dev/null +++ b/Assets/Bundle/Shaders/Unit/Common/unit_common_depth.shader @@ -0,0 +1,64 @@ +Shader "Erika/Unit/Common/Depth" +{ + Properties + { + _MainTex ("Texture", 2D) = "white" {} + } + SubShader + { + Tags { "RenderType" = "Opaque" "Queue" = "Geometry" } + LOD 100 +/* + Pass + { + Name "ShadowCaster" + Tags{"LightMode" = "ShadowCaster"} + + CGPROGRAM + #pragma vertex vert + #pragma fragment frag + #pragma multi_compile_shadowcaster + #include "UnityCG.cginc" + + struct v2f + { + V2F_SHADOW_CASTER; + }; + + v2f vert(appdata_base v) + { + v2f o; + TRANSFER_SHADOW_CASTER_NORMALOFFSET(o) + return o; + } + + float4 frag(v2f i) :SV_Target + { + SHADOW_CASTER_FRAGMENT(i) + } + + ENDCG + + }*/ + + Pass + { + Name "ShadowCaster" + Tags { "LightMode" = "ShadowCaster" } + + Cull Back + ZWrite On + ZTest LEqual + + CGPROGRAM + #pragma target 3.0 + #pragma multi_compile _ _ALPHATEST_ON _ALPHABLEND_ON + #pragma multi_compile_shadowcaster + #pragma vertex vertShadowCaster + #pragma fragment fragShadowCaster + #include "UnityStandardShadow.cginc" + ENDCG + } + + } +} diff --git a/Assets/Bundle/Shaders/Unit/Common/unit_common_depth.shader.meta b/Assets/Bundle/Shaders/Unit/Common/unit_common_depth.shader.meta new file mode 100644 index 00000000..0de1fc19 --- /dev/null +++ b/Assets/Bundle/Shaders/Unit/Common/unit_common_depth.shader.meta @@ -0,0 +1,9 @@ +fileFormatVersion: 2 +guid: ff6fd35dfc3c1104c875126ac78274b6 +ShaderImporter: + externalObjects: {} + defaultTextures: [] + nonModifiableTextures: [] + userData: + assetBundleName: + assetBundleVariant: |