From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- .../UMotion/UMotionEditor/Shaders/WiresOnly.shader | 65 ---------------------- 1 file changed, 65 deletions(-) delete mode 100644 Assets/ThirdParty/UMotion/UMotionEditor/Shaders/WiresOnly.shader (limited to 'Assets/ThirdParty/UMotion/UMotionEditor/Shaders/WiresOnly.shader') diff --git a/Assets/ThirdParty/UMotion/UMotionEditor/Shaders/WiresOnly.shader b/Assets/ThirdParty/UMotion/UMotionEditor/Shaders/WiresOnly.shader deleted file mode 100644 index 2a9c6879..00000000 --- a/Assets/ThirdParty/UMotion/UMotionEditor/Shaders/WiresOnly.shader +++ /dev/null @@ -1,65 +0,0 @@ -Shader "UMotion Editor/Wires Only" -{ - Properties - { - _Color("Main Color (RGB)", color) = (1, 1, 1, 1) - _Size("Wire Size", Range(0, 4)) = 0.9 - } - - SubShader - { - Tags {"Queue"="Transparent" "RenderType"="Transparent" "IgnoreProjector"="True" } - LOD 100 - - ZWrite Off - Blend SrcAlpha OneMinusSrcAlpha - Cull Off - - Pass - { - CGPROGRAM - #pragma vertex vert - #pragma fragment frag - #pragma target 3.0 - - #include "UnityCG.cginc" - - fixed4 _Color; - half _Size; - - struct vInput - { - float4 vertex : POSITION; - half4 texcoord : TEXCOORD0; - }; - - struct vOutput - { - float4 pos : SV_POSITION; - fixed3 wirecoord : TEXCOORD1; - }; - - vOutput vert(vInput i) - { - vOutput o; - - o.pos = UnityObjectToClipPos(i.vertex); - - o.wirecoord = fixed3(floor(i.texcoord.x), frac(i.texcoord.x) * 10, i.texcoord.y); - - return o; - } - - fixed4 frag(vOutput i) : SV_Target - { - half3 width = abs(ddx(i.wirecoord.xyz)) + abs(ddy(i.wirecoord.xyz)); - half3 smoothed = smoothstep(half3(0, 0, 0), width * _Size, i.wirecoord.xyz); - half wireAlpha = min(min(smoothed.x, smoothed.y), smoothed.z); - - return fixed4(_Color.xyz, 1 - wireAlpha); - } - - ENDCG - } //Pass - } //SubShader -} //Shader -- cgit v1.1-26-g67d0