// Made with Amplify Shader Editor // Available at the Unity Asset Store - http://u3d.as/y3X Shader "X1_UI_FightStart_H" { Properties { _TextureSample0("Texture Sample 0", 2D) = "white" {} _cut("cut", Range( -1 , 1)) = 0 _a1(" a", Range( 1 , 30)) = 1 [HDR]_Color_hdr("Color_hdr", Color) = (1,1,1,1) } SubShader { Tags { "RenderType"="Transparent" "Queue"="Transparent" } LOD 100 CGINCLUDE #pragma target 3.0 ENDCG Blend SrcAlpha OneMinusSrcAlpha AlphaToMask Off Cull Off ColorMask RGBA ZWrite Off ZTest LEqual Offset 0 , 0 Pass { Name "Unlit" Tags { "LightMode"="ForwardBase" } CGPROGRAM #ifndef UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX //only defining to not throw compilation error over Unity 5.5 #define UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(input) #endif #pragma vertex vert #pragma fragment frag #pragma multi_compile_instancing #include "UnityCG.cginc" struct appdata { float4 vertex : POSITION; float4 color : COLOR; float4 ase_texcoord : TEXCOORD0; UNITY_VERTEX_INPUT_INSTANCE_ID }; struct v2f { float4 vertex : SV_POSITION; #ifdef ASE_NEEDS_FRAG_WORLD_POSITION float3 worldPos : TEXCOORD0; #endif float4 ase_texcoord1 : TEXCOORD1; UNITY_VERTEX_INPUT_INSTANCE_ID UNITY_VERTEX_OUTPUT_STEREO }; uniform float4 _Color_hdr; uniform sampler2D _TextureSample0; uniform float _a1; uniform float _cut; v2f vert ( appdata v ) { v2f o; UNITY_SETUP_INSTANCE_ID(v); UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o); UNITY_TRANSFER_INSTANCE_ID(v, o); o.ase_texcoord1.xy = v.ase_texcoord.xy; //setting value to unused interpolator channels and avoid initialization warnings o.ase_texcoord1.zw = 0; float3 vertexValue = float3(0, 0, 0); #if ASE_ABSOLUTE_VERTEX_POS vertexValue = v.vertex.xyz; #endif vertexValue = vertexValue; #if ASE_ABSOLUTE_VERTEX_POS v.vertex.xyz = vertexValue; #else v.vertex.xyz += vertexValue; #endif o.vertex = UnityObjectToClipPos(v.vertex); #ifdef ASE_NEEDS_FRAG_WORLD_POSITION o.worldPos = mul(unity_ObjectToWorld, v.vertex).xyz; #endif return o; } fixed4 frag (v2f i ) : SV_Target { UNITY_SETUP_INSTANCE_ID(i); UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i); fixed4 finalColor; #ifdef ASE_NEEDS_FRAG_WORLD_POSITION float3 WorldPosition = i.worldPos; #endif float2 texCoord27 = i.ase_texcoord1.xy * float2( 1,1 ) + float2( 0,0 ); float2 texCoord8 = i.ase_texcoord1.xy * float2( 1,1 ) + float2( 0,0 ); float2 appendResult33 = (float2(( (-2.0 + (step( texCoord8.y , 0.5 ) - 0.0) * (2.0 - -2.0) / (1.0 - 0.0)) * _cut ) , 0.0)); finalColor = ( _Color_hdr * tex2D( _TextureSample0, ( ( ( ( texCoord27 + float2( -0.5,-0.5 ) ) * _a1 ) + float2( 0.5,0.5 ) ) + appendResult33 ) ) ); return finalColor; } ENDCG } } CustomEditor "ASEMaterialInspector" } /*ASEBEGIN Version=18707 1;57;1155;717;1992.824;723.0566;1.940438;True;False Node;AmplifyShaderEditor.TextureCoordinatesNode;8;-2023.751,209.2052;Inherit;False;0;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.StepOpNode;24;-1674.942,220.7622;Inherit;True;2;0;FLOAT;0;False;1;FLOAT;0.5;False;1;FLOAT;0 Node;AmplifyShaderEditor.TextureCoordinatesNode;27;-2220.294,-575.9271;Inherit;False;0;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.RangedFloatNode;7;-1331.98,373.257;Inherit;False;Property;_cut;cut;1;0;Create;True;0;0;False;0;False;0;0;-1;1;0;1;FLOAT;0 Node;AmplifyShaderEditor.TFHCRemapNode;25;-1320.734,173.7541;Inherit;False;5;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;1;False;3;FLOAT;-2;False;4;FLOAT;2;False;1;FLOAT;0 Node;AmplifyShaderEditor.RangedFloatNode;28;-2057.581,-423.8441;Inherit;False;Property;_a1; a;2;0;Create;True;0;0;False;0;False;1;4;1;30;0;1;FLOAT;0 Node;AmplifyShaderEditor.SimpleAddOpNode;29;-1922.798,-572.2646;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;-0.5,-0.5;False;1;FLOAT2;0 Node;AmplifyShaderEditor.SimpleMultiplyOpNode;30;-1699.003,-483.6496;Inherit;True;2;2;0;FLOAT2;0,0;False;1;FLOAT;0;False;1;FLOAT2;0 Node;AmplifyShaderEditor.SimpleMultiplyOpNode;6;-1075.263,125.1046;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0 Node;AmplifyShaderEditor.SimpleAddOpNode;31;-1424.23,-485.0786;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0.5,0.5;False;1;FLOAT2;0 Node;AmplifyShaderEditor.DynamicAppendNode;33;-917.6798,87.06675;Inherit;False;FLOAT2;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT2;0 Node;AmplifyShaderEditor.SimpleAddOpNode;4;-903.1899,-254.5255;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0 Node;AmplifyShaderEditor.SamplerNode;1;-502.3187,-155.0717;Inherit;True;Property;_TextureSample0;Texture Sample 0;0;0;Create;True;0;0;False;0;False;-1;None;1fee434e1021f4b4489af1af5429125b;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;8;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;6;FLOAT;0;False;7;SAMPLERSTATE;;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.ColorNode;34;-496.3043,-385.2876;Inherit;False;Property;_Color_hdr;Color_hdr;3;1;[HDR];Create;True;0;0;False;0;False;1,1,1,1;1,1,1,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4 Node;AmplifyShaderEditor.SimpleMultiplyOpNode;35;-141.6456,-292.2793;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0 Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;0;76.21362,-42.67963;Float;False;True;-1;2;ASEMaterialInspector;100;1;X1_UI_FightStart_H;0770190933193b94aaa3065e307002fa;True;Unlit;0;0;Unlit;2;True;2;5;False;-1;10;False;-1;0;1;False;-1;0;False;-1;True;0;False;-1;0;False;-1;False;False;False;False;False;False;True;0;False;-1;True;2;False;-1;True;True;True;True;True;0;False;-1;False;False;False;True;False;255;False;-1;255;False;-1;255;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;7;False;-1;1;False;-1;1;False;-1;1;False;-1;True;2;False;-1;True;3;False;-1;True;True;0;False;-1;0;False;-1;True;2;RenderType=Transparent=RenderType;Queue=Transparent=Queue=0;True;2;0;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;1;LightMode=ForwardBase;False;0;;0;0;Standard;1;Vertex Position,InvertActionOnDeselection;1;0;1;True;False;;False;0 WireConnection;24;0;8;2 WireConnection;25;0;24;0 WireConnection;29;0;27;0 WireConnection;30;0;29;0 WireConnection;30;1;28;0 WireConnection;6;0;25;0 WireConnection;6;1;7;0 WireConnection;31;0;30;0 WireConnection;33;0;6;0 WireConnection;4;0;31;0 WireConnection;4;1;33;0 WireConnection;1;1;4;0 WireConnection;35;0;34;0 WireConnection;35;1;1;0 WireConnection;0;0;35;0 ASEEND*/ //CHKSM=CEA1510A8EC484DBC60196ECBAD6C439768BA005