|
@@ -0,0 +1,2325 @@
|
|
|
+// Made with Amplify Shader Editor
|
|
|
+// Available at the Unity Asset Store - http://u3d.as/y3X
|
|
|
+Shader "LT/UIAlpha"
|
|
|
+{
|
|
|
+ Properties
|
|
|
+ {
|
|
|
+ [HideInInspector] _EmissionColor("Emission Color", Color) = (1,1,1,1)
|
|
|
+ [HideInInspector] _AlphaCutoff("Alpha Cutoff ", Range(0, 1)) = 0.5
|
|
|
+ [ASEBegin]_Alpha("Alpha", Range( 0 , 1)) = 1
|
|
|
+ [HDR]_Color("Color", Color) = (1,1,1,1)
|
|
|
+ _MainTex("MainTex", 2D) = "white" {}
|
|
|
+ _MainTexRotation("贴图旋转", Range( 0 , 1)) = 0
|
|
|
+ _MainTexOffsetU("MainTexOffsetU", Float) = 0
|
|
|
+ _MainTexOffsetV("MainTexOffsetV", Float) = 0
|
|
|
+ _MainTilingU("MainTilingU", Float) = 0
|
|
|
+ _MainTilingV("MainTilingV", Float) = 0
|
|
|
+ _TimeSpeedON("TimeSpeedON", Range( 0 , 1)) = 0
|
|
|
+ _MainSpeedU("MainSpeedU", Float) = 0.5
|
|
|
+ _MainSpeedV("MainSpeedV", Float) = 0.5
|
|
|
+ _Mask("Mask", 2D) = "white" {}
|
|
|
+ _MaskTilingU2("MaskTilingU", Float) = 0
|
|
|
+ _MaskTilingV2("MaskTilingV", Float) = 0
|
|
|
+ _MaskTexOffsetU2("MaskTexOffsetU", Float) = 0
|
|
|
+ _MaskTexOffsetV2("MaskTexOffsetV", Float) = 0
|
|
|
+ _MaskTongDao("MaskR或者A通道", Range( 0 , 1)) = 0
|
|
|
+ _dissolve("dissolve", 2D) = "white" {}
|
|
|
+ _DisTilingU1("DisTilingU", Float) = 0
|
|
|
+ _DisTilingV1("DisTilingV", Float) = 0
|
|
|
+ _DisTexOffsetU1("DisTexOffsetU", Float) = 0
|
|
|
+ _DisTexOffsetV1("DisTexOffsetV", Float) = 0
|
|
|
+ _Diss_value("Diss_value", Float) = 0
|
|
|
+ _Soft_value("Soft_value", Float) = 0
|
|
|
+ [ASEEnd][Enum(ParticCtrlDissolveOff,0,ParticCtrlDissolveOn,1)]_CustomDataDissolve("粒子参数控制溶解", Float) = 0
|
|
|
+
|
|
|
+ [HideInInspector]_QueueOffset("_QueueOffset", Float) = 0
|
|
|
+ [HideInInspector]_QueueControl("_QueueControl", Float) = -1
|
|
|
+ [HideInInspector][NoScaleOffset]unity_Lightmaps("unity_Lightmaps", 2DArray) = "" {}
|
|
|
+ [HideInInspector][NoScaleOffset]unity_LightmapsInd("unity_LightmapsInd", 2DArray) = "" {}
|
|
|
+ [HideInInspector][NoScaleOffset]unity_ShadowMasks("unity_ShadowMasks", 2DArray) = "" {}
|
|
|
+ //_TessPhongStrength( "Tess Phong Strength", Range( 0, 1 ) ) = 0.5
|
|
|
+ //_TessValue( "Tess Max Tessellation", Range( 1, 32 ) ) = 16
|
|
|
+ //_TessMin( "Tess Min Distance", Float ) = 10
|
|
|
+ //_TessMax( "Tess Max Distance", Float ) = 25
|
|
|
+ //_TessEdgeLength ( "Tess Edge length", Range( 2, 50 ) ) = 16
|
|
|
+ //_TessMaxDisp( "Tess Max Displacement", Float ) = 25
|
|
|
+ }
|
|
|
+
|
|
|
+ SubShader
|
|
|
+ {
|
|
|
+ LOD 0
|
|
|
+
|
|
|
+
|
|
|
+ Tags { "RenderPipeline"="UniversalPipeline" "RenderType"="Transparent" "Queue"="Transparent" }
|
|
|
+
|
|
|
+ Cull Off
|
|
|
+ AlphaToMask Off
|
|
|
+
|
|
|
+ HLSLINCLUDE
|
|
|
+ #pragma target 3.0
|
|
|
+
|
|
|
+ #pragma prefer_hlslcc gles
|
|
|
+ #pragma only_renderers d3d9 d3d11 glcore gles gles3 metal vulkan nomrt
|
|
|
+
|
|
|
+ #ifndef ASE_TESS_FUNCS
|
|
|
+ #define ASE_TESS_FUNCS
|
|
|
+ float4 FixedTess( float tessValue )
|
|
|
+ {
|
|
|
+ return tessValue;
|
|
|
+ }
|
|
|
+
|
|
|
+ float CalcDistanceTessFactor (float4 vertex, float minDist, float maxDist, float tess, float4x4 o2w, float3 cameraPos )
|
|
|
+ {
|
|
|
+ float3 wpos = mul(o2w,vertex).xyz;
|
|
|
+ float dist = distance (wpos, cameraPos);
|
|
|
+ float f = clamp(1.0 - (dist - minDist) / (maxDist - minDist), 0.01, 1.0) * tess;
|
|
|
+ return f;
|
|
|
+ }
|
|
|
+
|
|
|
+ float4 CalcTriEdgeTessFactors (float3 triVertexFactors)
|
|
|
+ {
|
|
|
+ float4 tess;
|
|
|
+ tess.x = 0.5 * (triVertexFactors.y + triVertexFactors.z);
|
|
|
+ tess.y = 0.5 * (triVertexFactors.x + triVertexFactors.z);
|
|
|
+ tess.z = 0.5 * (triVertexFactors.x + triVertexFactors.y);
|
|
|
+ tess.w = (triVertexFactors.x + triVertexFactors.y + triVertexFactors.z) / 3.0f;
|
|
|
+ return tess;
|
|
|
+ }
|
|
|
+
|
|
|
+ float CalcEdgeTessFactor (float3 wpos0, float3 wpos1, float edgeLen, float3 cameraPos, float4 scParams )
|
|
|
+ {
|
|
|
+ float dist = distance (0.5 * (wpos0+wpos1), cameraPos);
|
|
|
+ float len = distance(wpos0, wpos1);
|
|
|
+ float f = max(len * scParams.y / (edgeLen * dist), 1.0);
|
|
|
+ return f;
|
|
|
+ }
|
|
|
+
|
|
|
+ float DistanceFromPlane (float3 pos, float4 plane)
|
|
|
+ {
|
|
|
+ float d = dot (float4(pos,1.0f), plane);
|
|
|
+ return d;
|
|
|
+ }
|
|
|
+
|
|
|
+ bool WorldViewFrustumCull (float3 wpos0, float3 wpos1, float3 wpos2, float cullEps, float4 planes[6] )
|
|
|
+ {
|
|
|
+ float4 planeTest;
|
|
|
+ planeTest.x = (( DistanceFromPlane(wpos0, planes[0]) > -cullEps) ? 1.0f : 0.0f ) +
|
|
|
+ (( DistanceFromPlane(wpos1, planes[0]) > -cullEps) ? 1.0f : 0.0f ) +
|
|
|
+ (( DistanceFromPlane(wpos2, planes[0]) > -cullEps) ? 1.0f : 0.0f );
|
|
|
+ planeTest.y = (( DistanceFromPlane(wpos0, planes[1]) > -cullEps) ? 1.0f : 0.0f ) +
|
|
|
+ (( DistanceFromPlane(wpos1, planes[1]) > -cullEps) ? 1.0f : 0.0f ) +
|
|
|
+ (( DistanceFromPlane(wpos2, planes[1]) > -cullEps) ? 1.0f : 0.0f );
|
|
|
+ planeTest.z = (( DistanceFromPlane(wpos0, planes[2]) > -cullEps) ? 1.0f : 0.0f ) +
|
|
|
+ (( DistanceFromPlane(wpos1, planes[2]) > -cullEps) ? 1.0f : 0.0f ) +
|
|
|
+ (( DistanceFromPlane(wpos2, planes[2]) > -cullEps) ? 1.0f : 0.0f );
|
|
|
+ planeTest.w = (( DistanceFromPlane(wpos0, planes[3]) > -cullEps) ? 1.0f : 0.0f ) +
|
|
|
+ (( DistanceFromPlane(wpos1, planes[3]) > -cullEps) ? 1.0f : 0.0f ) +
|
|
|
+ (( DistanceFromPlane(wpos2, planes[3]) > -cullEps) ? 1.0f : 0.0f );
|
|
|
+ return !all (planeTest);
|
|
|
+ }
|
|
|
+
|
|
|
+ float4 DistanceBasedTess( float4 v0, float4 v1, float4 v2, float tess, float minDist, float maxDist, float4x4 o2w, float3 cameraPos )
|
|
|
+ {
|
|
|
+ float3 f;
|
|
|
+ f.x = CalcDistanceTessFactor (v0,minDist,maxDist,tess,o2w,cameraPos);
|
|
|
+ f.y = CalcDistanceTessFactor (v1,minDist,maxDist,tess,o2w,cameraPos);
|
|
|
+ f.z = CalcDistanceTessFactor (v2,minDist,maxDist,tess,o2w,cameraPos);
|
|
|
+
|
|
|
+ return CalcTriEdgeTessFactors (f);
|
|
|
+ }
|
|
|
+
|
|
|
+ float4 EdgeLengthBasedTess( float4 v0, float4 v1, float4 v2, float edgeLength, float4x4 o2w, float3 cameraPos, float4 scParams )
|
|
|
+ {
|
|
|
+ float3 pos0 = mul(o2w,v0).xyz;
|
|
|
+ float3 pos1 = mul(o2w,v1).xyz;
|
|
|
+ float3 pos2 = mul(o2w,v2).xyz;
|
|
|
+ float4 tess;
|
|
|
+ tess.x = CalcEdgeTessFactor (pos1, pos2, edgeLength, cameraPos, scParams);
|
|
|
+ tess.y = CalcEdgeTessFactor (pos2, pos0, edgeLength, cameraPos, scParams);
|
|
|
+ tess.z = CalcEdgeTessFactor (pos0, pos1, edgeLength, cameraPos, scParams);
|
|
|
+ tess.w = (tess.x + tess.y + tess.z) / 3.0f;
|
|
|
+ return tess;
|
|
|
+ }
|
|
|
+
|
|
|
+ float4 EdgeLengthBasedTessCull( float4 v0, float4 v1, float4 v2, float edgeLength, float maxDisplacement, float4x4 o2w, float3 cameraPos, float4 scParams, float4 planes[6] )
|
|
|
+ {
|
|
|
+ float3 pos0 = mul(o2w,v0).xyz;
|
|
|
+ float3 pos1 = mul(o2w,v1).xyz;
|
|
|
+ float3 pos2 = mul(o2w,v2).xyz;
|
|
|
+ float4 tess;
|
|
|
+
|
|
|
+ if (WorldViewFrustumCull(pos0, pos1, pos2, maxDisplacement, planes))
|
|
|
+ {
|
|
|
+ tess = 0.0f;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ tess.x = CalcEdgeTessFactor (pos1, pos2, edgeLength, cameraPos, scParams);
|
|
|
+ tess.y = CalcEdgeTessFactor (pos2, pos0, edgeLength, cameraPos, scParams);
|
|
|
+ tess.z = CalcEdgeTessFactor (pos0, pos1, edgeLength, cameraPos, scParams);
|
|
|
+ tess.w = (tess.x + tess.y + tess.z) / 3.0f;
|
|
|
+ }
|
|
|
+ return tess;
|
|
|
+ }
|
|
|
+ #endif //ASE_TESS_FUNCS
|
|
|
+
|
|
|
+ ENDHLSL
|
|
|
+
|
|
|
+
|
|
|
+ Pass
|
|
|
+ {
|
|
|
+
|
|
|
+ Name "Forward"
|
|
|
+ Tags { "LightMode"="UniversalForwardOnly" }
|
|
|
+
|
|
|
+ Blend SrcAlpha OneMinusSrcAlpha, One OneMinusSrcAlpha
|
|
|
+ ZWrite Off
|
|
|
+ ZTest LEqual
|
|
|
+ Offset 0 , 0
|
|
|
+ ColorMask RGBA
|
|
|
+
|
|
|
+
|
|
|
+ HLSLPROGRAM
|
|
|
+
|
|
|
+ #pragma multi_compile_instancing
|
|
|
+ #define _RECEIVE_SHADOWS_OFF 1
|
|
|
+ #define ASE_SRP_VERSION 999999
|
|
|
+
|
|
|
+
|
|
|
+ #pragma multi_compile _ LIGHTMAP_ON
|
|
|
+ #pragma multi_compile _ DIRLIGHTMAP_COMBINED
|
|
|
+ #pragma shader_feature _ _SAMPLE_GI
|
|
|
+ #pragma multi_compile _ _DBUFFER_MRT1 _DBUFFER_MRT2 _DBUFFER_MRT3
|
|
|
+ #pragma multi_compile _ DEBUG_DISPLAY
|
|
|
+ #define SHADERPASS SHADERPASS_UNLIT
|
|
|
+
|
|
|
+
|
|
|
+ #pragma vertex vert
|
|
|
+ #pragma fragment frag
|
|
|
+
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Texture.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/TextureStack.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ShaderGraphFunctions.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/DBuffer.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/ShaderPass.hlsl"
|
|
|
+
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Debug/Debugging3D.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Input.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/SurfaceData.hlsl"
|
|
|
+
|
|
|
+
|
|
|
+ #define ASE_NEEDS_FRAG_COLOR
|
|
|
+
|
|
|
+
|
|
|
+ struct VertexInput
|
|
|
+ {
|
|
|
+ float4 vertex : POSITION;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct VertexOutput
|
|
|
+ {
|
|
|
+ float4 clipPos : SV_POSITION;
|
|
|
+ #if defined(ASE_NEEDS_FRAG_WORLD_POSITION)
|
|
|
+ float3 worldPos : TEXCOORD0;
|
|
|
+ #endif
|
|
|
+ #if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR) && defined(ASE_NEEDS_FRAG_SHADOWCOORDS)
|
|
|
+ float4 shadowCoord : TEXCOORD1;
|
|
|
+ #endif
|
|
|
+ #ifdef ASE_FOG
|
|
|
+ float fogFactor : TEXCOORD2;
|
|
|
+ #endif
|
|
|
+ float4 ase_texcoord3 : TEXCOORD3;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord4 : TEXCOORD4;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ UNITY_VERTEX_OUTPUT_STEREO
|
|
|
+ };
|
|
|
+
|
|
|
+ CBUFFER_START(UnityPerMaterial)
|
|
|
+ float4 _Color;
|
|
|
+ float _MainTilingU;
|
|
|
+ float _DisTilingV1;
|
|
|
+ float _DisTilingU1;
|
|
|
+ float _Soft_value;
|
|
|
+ float _CustomDataDissolve;
|
|
|
+ float _Diss_value;
|
|
|
+ float _Alpha;
|
|
|
+ float _MaskTongDao;
|
|
|
+ float _MaskTexOffsetV2;
|
|
|
+ float _MaskTexOffsetU2;
|
|
|
+ float _MaskTilingV2;
|
|
|
+ float _MaskTilingU2;
|
|
|
+ float _TimeSpeedON;
|
|
|
+ float _MainSpeedV;
|
|
|
+ float _MainSpeedU;
|
|
|
+ float _MainTexOffsetV;
|
|
|
+ float _MainTexOffsetU;
|
|
|
+ float _MainTexRotation;
|
|
|
+ float _MainTilingV;
|
|
|
+ float _DisTexOffsetU1;
|
|
|
+ float _DisTexOffsetV1;
|
|
|
+ #ifdef TESSELLATION_ON
|
|
|
+ float _TessPhongStrength;
|
|
|
+ float _TessValue;
|
|
|
+ float _TessMin;
|
|
|
+ float _TessMax;
|
|
|
+ float _TessEdgeLength;
|
|
|
+ float _TessMaxDisp;
|
|
|
+ #endif
|
|
|
+ CBUFFER_END
|
|
|
+ sampler2D _MainTex;
|
|
|
+ sampler2D _Mask;
|
|
|
+ sampler2D _dissolve;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ VertexOutput VertexFunction ( VertexInput v )
|
|
|
+ {
|
|
|
+ VertexOutput o = (VertexOutput)0;
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
|
|
|
+
|
|
|
+ o.ase_texcoord3.xy = v.ase_texcoord.xy;
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord4 = v.ase_texcoord1;
|
|
|
+
|
|
|
+ //setting value to unused interpolator channels and avoid initialization warnings
|
|
|
+ o.ase_texcoord3.zw = 0;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ float3 defaultVertexValue = v.vertex.xyz;
|
|
|
+ #else
|
|
|
+ float3 defaultVertexValue = float3(0, 0, 0);
|
|
|
+ #endif
|
|
|
+ float3 vertexValue = defaultVertexValue;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ v.vertex.xyz = vertexValue;
|
|
|
+ #else
|
|
|
+ v.vertex.xyz += vertexValue;
|
|
|
+ #endif
|
|
|
+ v.ase_normal = v.ase_normal;
|
|
|
+
|
|
|
+ float3 positionWS = TransformObjectToWorld( v.vertex.xyz );
|
|
|
+ float4 positionCS = TransformWorldToHClip( positionWS );
|
|
|
+
|
|
|
+ #if defined(ASE_NEEDS_FRAG_WORLD_POSITION)
|
|
|
+ o.worldPos = positionWS;
|
|
|
+ #endif
|
|
|
+ #if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR) && defined(ASE_NEEDS_FRAG_SHADOWCOORDS)
|
|
|
+ VertexPositionInputs vertexInput = (VertexPositionInputs)0;
|
|
|
+ vertexInput.positionWS = positionWS;
|
|
|
+ vertexInput.positionCS = positionCS;
|
|
|
+ o.shadowCoord = GetShadowCoord( vertexInput );
|
|
|
+ #endif
|
|
|
+ #ifdef ASE_FOG
|
|
|
+ o.fogFactor = ComputeFogFactor( positionCS.z );
|
|
|
+ #endif
|
|
|
+ o.clipPos = positionCS;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ #if defined(TESSELLATION_ON)
|
|
|
+ struct VertexControl
|
|
|
+ {
|
|
|
+ float4 vertex : INTERNALTESSPOS;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct TessellationFactors
|
|
|
+ {
|
|
|
+ float edge[3] : SV_TessFactor;
|
|
|
+ float inside : SV_InsideTessFactor;
|
|
|
+ };
|
|
|
+
|
|
|
+ VertexControl vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ VertexControl o;
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ o.vertex = v.vertex;
|
|
|
+ o.ase_normal = v.ase_normal;
|
|
|
+ o.ase_texcoord = v.ase_texcoord;
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord1 = v.ase_texcoord1;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ TessellationFactors TessellationFunction (InputPatch<VertexControl,3> v)
|
|
|
+ {
|
|
|
+ TessellationFactors o;
|
|
|
+ float4 tf = 1;
|
|
|
+ float tessValue = _TessValue; float tessMin = _TessMin; float tessMax = _TessMax;
|
|
|
+ float edgeLength = _TessEdgeLength; float tessMaxDisp = _TessMaxDisp;
|
|
|
+ #if defined(ASE_FIXED_TESSELLATION)
|
|
|
+ tf = FixedTess( tessValue );
|
|
|
+ #elif defined(ASE_DISTANCE_TESSELLATION)
|
|
|
+ tf = DistanceBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, tessValue, tessMin, tessMax, GetObjectToWorldMatrix(), _WorldSpaceCameraPos );
|
|
|
+ #elif defined(ASE_LENGTH_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams );
|
|
|
+ #elif defined(ASE_LENGTH_CULL_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTessCull(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, tessMaxDisp, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams, unity_CameraWorldClipPlanes );
|
|
|
+ #endif
|
|
|
+ o.edge[0] = tf.x; o.edge[1] = tf.y; o.edge[2] = tf.z; o.inside = tf.w;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ [partitioning("fractional_odd")]
|
|
|
+ [outputtopology("triangle_cw")]
|
|
|
+ [patchconstantfunc("TessellationFunction")]
|
|
|
+ [outputcontrolpoints(3)]
|
|
|
+ VertexControl HullFunction(InputPatch<VertexControl, 3> patch, uint id : SV_OutputControlPointID)
|
|
|
+ {
|
|
|
+ return patch[id];
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ VertexOutput DomainFunction(TessellationFactors factors, OutputPatch<VertexControl, 3> patch, float3 bary : SV_DomainLocation)
|
|
|
+ {
|
|
|
+ VertexInput o = (VertexInput) 0;
|
|
|
+ o.vertex = patch[0].vertex * bary.x + patch[1].vertex * bary.y + patch[2].vertex * bary.z;
|
|
|
+ o.ase_normal = patch[0].ase_normal * bary.x + patch[1].ase_normal * bary.y + patch[2].ase_normal * bary.z;
|
|
|
+ o.ase_texcoord = patch[0].ase_texcoord * bary.x + patch[1].ase_texcoord * bary.y + patch[2].ase_texcoord * bary.z;
|
|
|
+ o.ase_color = patch[0].ase_color * bary.x + patch[1].ase_color * bary.y + patch[2].ase_color * bary.z;
|
|
|
+ o.ase_texcoord1 = patch[0].ase_texcoord1 * bary.x + patch[1].ase_texcoord1 * bary.y + patch[2].ase_texcoord1 * bary.z;
|
|
|
+ #if defined(ASE_PHONG_TESSELLATION)
|
|
|
+ float3 pp[3];
|
|
|
+ for (int i = 0; i < 3; ++i)
|
|
|
+ pp[i] = o.vertex.xyz - patch[i].ase_normal * (dot(o.vertex.xyz, patch[i].ase_normal) - dot(patch[i].vertex.xyz, patch[i].ase_normal));
|
|
|
+ float phongStrength = _TessPhongStrength;
|
|
|
+ o.vertex.xyz = phongStrength * (pp[0]*bary.x + pp[1]*bary.y + pp[2]*bary.z) + (1.0f-phongStrength) * o.vertex.xyz;
|
|
|
+ #endif
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(patch[0], o);
|
|
|
+ return VertexFunction(o);
|
|
|
+ }
|
|
|
+ #else
|
|
|
+ VertexOutput vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ return VertexFunction( v );
|
|
|
+ }
|
|
|
+ #endif
|
|
|
+
|
|
|
+ half4 frag ( VertexOutput IN ) : SV_Target
|
|
|
+ {
|
|
|
+ UNITY_SETUP_INSTANCE_ID( IN );
|
|
|
+ UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX( IN );
|
|
|
+
|
|
|
+ #if defined(ASE_NEEDS_FRAG_WORLD_POSITION)
|
|
|
+ float3 WorldPosition = IN.worldPos;
|
|
|
+ #endif
|
|
|
+ float4 ShadowCoords = float4( 0, 0, 0, 0 );
|
|
|
+
|
|
|
+ #if defined(ASE_NEEDS_FRAG_SHADOWCOORDS)
|
|
|
+ #if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)
|
|
|
+ ShadowCoords = IN.shadowCoord;
|
|
|
+ #elif defined(MAIN_LIGHT_CALCULATE_SHADOWS)
|
|
|
+ ShadowCoords = TransformWorldToShadowCoord( WorldPosition );
|
|
|
+ #endif
|
|
|
+ #endif
|
|
|
+ float2 appendResult43 = (float2(_MainTilingU , _MainTilingV));
|
|
|
+ float2 texCoord48 = IN.ase_texcoord3.xy * appendResult43 + float2( 0,0 );
|
|
|
+ float cos51 = cos( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float sin51 = sin( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float2 rotator51 = mul( IN.ase_texcoord3.xy - float2( 0.5,0.5 ) , float2x2( cos51 , -sin51 , sin51 , cos51 )) + float2( 0.5,0.5 );
|
|
|
+ float2 appendResult46 = (float2(_MainTexOffsetU , _MainTexOffsetV));
|
|
|
+ float2 appendResult36 = (float2(_MainSpeedU , _MainSpeedV));
|
|
|
+ float2 panner35 = ( 1.0 * _Time.y * appendResult36 + texCoord48);
|
|
|
+ float2 lerpResult37 = lerp( ( texCoord48 + ( rotator51 + appendResult46 ) ) , panner35 , round( _TimeSpeedON ));
|
|
|
+ float4 tex2DNode10 = tex2D( _MainTex, lerpResult37 );
|
|
|
+
|
|
|
+ float2 appendResult93 = (float2(_MaskTilingU2 , _MaskTilingV2));
|
|
|
+ float2 texCoord97 = IN.ase_texcoord3.xy * appendResult93 + float2( 0,0 );
|
|
|
+ float2 appendResult96 = (float2(_MaskTexOffsetU2 , _MaskTexOffsetV2));
|
|
|
+ float4 tex2DNode11 = tex2D( _Mask, ( texCoord97 + appendResult96 ) );
|
|
|
+ float lerpResult57 = lerp( tex2DNode11.r , tex2DNode11.a , round( _MaskTongDao ));
|
|
|
+ float4 texCoord66 = IN.ase_texcoord4;
|
|
|
+ texCoord66.xy = IN.ase_texcoord4.xy * float2( 1,1 ) + float2( 0,0 );
|
|
|
+ float lerpResult72 = lerp( _Diss_value , texCoord66.x , _CustomDataDissolve);
|
|
|
+ float lerpResult69 = lerp( _Diss_value , texCoord66.x , round( _CustomDataDissolve ));
|
|
|
+ float2 appendResult88 = (float2(_DisTilingU1 , _DisTilingV1));
|
|
|
+ float2 texCoord87 = IN.ase_texcoord3.xy * appendResult88 + float2( 0,0 );
|
|
|
+ float2 appendResult84 = (float2(_DisTexOffsetU1 , _DisTexOffsetV1));
|
|
|
+ float smoothstepResult76 = smoothstep( lerpResult72 , ( lerpResult69 + _Soft_value ) , tex2D( _dissolve, ( texCoord87 + appendResult84 ) ).r);
|
|
|
+
|
|
|
+ float3 BakedAlbedo = 0;
|
|
|
+ float3 BakedEmission = 0;
|
|
|
+ float3 Color = ( tex2DNode10 * _Color * IN.ase_color ).rgb;
|
|
|
+ float Alpha = ( IN.ase_color.a * ( tex2DNode10.a * lerpResult57 * _Alpha * smoothstepResult76 ) );
|
|
|
+ float AlphaClipThreshold = 0.5;
|
|
|
+ float AlphaClipThresholdShadow = 0.5;
|
|
|
+
|
|
|
+ #ifdef _ALPHATEST_ON
|
|
|
+ clip( Alpha - AlphaClipThreshold );
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #if defined(_DBUFFER)
|
|
|
+ ApplyDecalToBaseColor(IN.clipPos, Color);
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #if defined(_ALPHAPREMULTIPLY_ON)
|
|
|
+ Color *= Alpha;
|
|
|
+ #endif
|
|
|
+
|
|
|
+
|
|
|
+ #ifdef LOD_FADE_CROSSFADE
|
|
|
+ LODDitheringTransition( IN.clipPos.xyz, unity_LODFade.x );
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #ifdef ASE_FOG
|
|
|
+ Color = MixFog( Color, IN.fogFactor );
|
|
|
+ #endif
|
|
|
+
|
|
|
+ return half4( Color, Alpha );
|
|
|
+ }
|
|
|
+
|
|
|
+ ENDHLSL
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ Pass
|
|
|
+ {
|
|
|
+
|
|
|
+ Name "DepthOnly"
|
|
|
+ Tags { "LightMode"="DepthOnly" }
|
|
|
+
|
|
|
+ ZWrite On
|
|
|
+ ColorMask 0
|
|
|
+ AlphaToMask Off
|
|
|
+
|
|
|
+ HLSLPROGRAM
|
|
|
+
|
|
|
+ #pragma multi_compile_instancing
|
|
|
+ #define _RECEIVE_SHADOWS_OFF 1
|
|
|
+ #define ASE_SRP_VERSION 999999
|
|
|
+
|
|
|
+
|
|
|
+ #pragma vertex vert
|
|
|
+ #pragma fragment frag
|
|
|
+
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ShaderGraphFunctions.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl"
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ struct VertexInput
|
|
|
+ {
|
|
|
+ float4 vertex : POSITION;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct VertexOutput
|
|
|
+ {
|
|
|
+ float4 clipPos : SV_POSITION;
|
|
|
+ #if defined(ASE_NEEDS_FRAG_WORLD_POSITION)
|
|
|
+ float3 worldPos : TEXCOORD0;
|
|
|
+ #endif
|
|
|
+ #if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR) && defined(ASE_NEEDS_FRAG_SHADOWCOORDS)
|
|
|
+ float4 shadowCoord : TEXCOORD1;
|
|
|
+ #endif
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord2 : TEXCOORD2;
|
|
|
+ float4 ase_texcoord3 : TEXCOORD3;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ UNITY_VERTEX_OUTPUT_STEREO
|
|
|
+ };
|
|
|
+
|
|
|
+ CBUFFER_START(UnityPerMaterial)
|
|
|
+ float4 _Color;
|
|
|
+ float _MainTilingU;
|
|
|
+ float _DisTilingV1;
|
|
|
+ float _DisTilingU1;
|
|
|
+ float _Soft_value;
|
|
|
+ float _CustomDataDissolve;
|
|
|
+ float _Diss_value;
|
|
|
+ float _Alpha;
|
|
|
+ float _MaskTongDao;
|
|
|
+ float _MaskTexOffsetV2;
|
|
|
+ float _MaskTexOffsetU2;
|
|
|
+ float _MaskTilingV2;
|
|
|
+ float _MaskTilingU2;
|
|
|
+ float _TimeSpeedON;
|
|
|
+ float _MainSpeedV;
|
|
|
+ float _MainSpeedU;
|
|
|
+ float _MainTexOffsetV;
|
|
|
+ float _MainTexOffsetU;
|
|
|
+ float _MainTexRotation;
|
|
|
+ float _MainTilingV;
|
|
|
+ float _DisTexOffsetU1;
|
|
|
+ float _DisTexOffsetV1;
|
|
|
+ #ifdef TESSELLATION_ON
|
|
|
+ float _TessPhongStrength;
|
|
|
+ float _TessValue;
|
|
|
+ float _TessMin;
|
|
|
+ float _TessMax;
|
|
|
+ float _TessEdgeLength;
|
|
|
+ float _TessMaxDisp;
|
|
|
+ #endif
|
|
|
+ CBUFFER_END
|
|
|
+ sampler2D _MainTex;
|
|
|
+ sampler2D _Mask;
|
|
|
+ sampler2D _dissolve;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ VertexOutput VertexFunction( VertexInput v )
|
|
|
+ {
|
|
|
+ VertexOutput o = (VertexOutput)0;
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
|
|
|
+
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord2.xy = v.ase_texcoord.xy;
|
|
|
+ o.ase_texcoord3 = v.ase_texcoord1;
|
|
|
+
|
|
|
+ //setting value to unused interpolator channels and avoid initialization warnings
|
|
|
+ o.ase_texcoord2.zw = 0;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ float3 defaultVertexValue = v.vertex.xyz;
|
|
|
+ #else
|
|
|
+ float3 defaultVertexValue = float3(0, 0, 0);
|
|
|
+ #endif
|
|
|
+ float3 vertexValue = defaultVertexValue;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ v.vertex.xyz = vertexValue;
|
|
|
+ #else
|
|
|
+ v.vertex.xyz += vertexValue;
|
|
|
+ #endif
|
|
|
+
|
|
|
+ v.ase_normal = v.ase_normal;
|
|
|
+
|
|
|
+ float3 positionWS = TransformObjectToWorld( v.vertex.xyz );
|
|
|
+
|
|
|
+ #if defined(ASE_NEEDS_FRAG_WORLD_POSITION)
|
|
|
+ o.worldPos = positionWS;
|
|
|
+ #endif
|
|
|
+
|
|
|
+ o.clipPos = TransformWorldToHClip( positionWS );
|
|
|
+ #if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR) && defined(ASE_NEEDS_FRAG_SHADOWCOORDS)
|
|
|
+ VertexPositionInputs vertexInput = (VertexPositionInputs)0;
|
|
|
+ vertexInput.positionWS = positionWS;
|
|
|
+ vertexInput.positionCS = o.clipPos;
|
|
|
+ o.shadowCoord = GetShadowCoord( vertexInput );
|
|
|
+ #endif
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ #if defined(TESSELLATION_ON)
|
|
|
+ struct VertexControl
|
|
|
+ {
|
|
|
+ float4 vertex : INTERNALTESSPOS;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct TessellationFactors
|
|
|
+ {
|
|
|
+ float edge[3] : SV_TessFactor;
|
|
|
+ float inside : SV_InsideTessFactor;
|
|
|
+ };
|
|
|
+
|
|
|
+ VertexControl vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ VertexControl o;
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ o.vertex = v.vertex;
|
|
|
+ o.ase_normal = v.ase_normal;
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord = v.ase_texcoord;
|
|
|
+ o.ase_texcoord1 = v.ase_texcoord1;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ TessellationFactors TessellationFunction (InputPatch<VertexControl,3> v)
|
|
|
+ {
|
|
|
+ TessellationFactors o;
|
|
|
+ float4 tf = 1;
|
|
|
+ float tessValue = _TessValue; float tessMin = _TessMin; float tessMax = _TessMax;
|
|
|
+ float edgeLength = _TessEdgeLength; float tessMaxDisp = _TessMaxDisp;
|
|
|
+ #if defined(ASE_FIXED_TESSELLATION)
|
|
|
+ tf = FixedTess( tessValue );
|
|
|
+ #elif defined(ASE_DISTANCE_TESSELLATION)
|
|
|
+ tf = DistanceBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, tessValue, tessMin, tessMax, GetObjectToWorldMatrix(), _WorldSpaceCameraPos );
|
|
|
+ #elif defined(ASE_LENGTH_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams );
|
|
|
+ #elif defined(ASE_LENGTH_CULL_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTessCull(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, tessMaxDisp, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams, unity_CameraWorldClipPlanes );
|
|
|
+ #endif
|
|
|
+ o.edge[0] = tf.x; o.edge[1] = tf.y; o.edge[2] = tf.z; o.inside = tf.w;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ [partitioning("fractional_odd")]
|
|
|
+ [outputtopology("triangle_cw")]
|
|
|
+ [patchconstantfunc("TessellationFunction")]
|
|
|
+ [outputcontrolpoints(3)]
|
|
|
+ VertexControl HullFunction(InputPatch<VertexControl, 3> patch, uint id : SV_OutputControlPointID)
|
|
|
+ {
|
|
|
+ return patch[id];
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ VertexOutput DomainFunction(TessellationFactors factors, OutputPatch<VertexControl, 3> patch, float3 bary : SV_DomainLocation)
|
|
|
+ {
|
|
|
+ VertexInput o = (VertexInput) 0;
|
|
|
+ o.vertex = patch[0].vertex * bary.x + patch[1].vertex * bary.y + patch[2].vertex * bary.z;
|
|
|
+ o.ase_normal = patch[0].ase_normal * bary.x + patch[1].ase_normal * bary.y + patch[2].ase_normal * bary.z;
|
|
|
+ o.ase_color = patch[0].ase_color * bary.x + patch[1].ase_color * bary.y + patch[2].ase_color * bary.z;
|
|
|
+ o.ase_texcoord = patch[0].ase_texcoord * bary.x + patch[1].ase_texcoord * bary.y + patch[2].ase_texcoord * bary.z;
|
|
|
+ o.ase_texcoord1 = patch[0].ase_texcoord1 * bary.x + patch[1].ase_texcoord1 * bary.y + patch[2].ase_texcoord1 * bary.z;
|
|
|
+ #if defined(ASE_PHONG_TESSELLATION)
|
|
|
+ float3 pp[3];
|
|
|
+ for (int i = 0; i < 3; ++i)
|
|
|
+ pp[i] = o.vertex.xyz - patch[i].ase_normal * (dot(o.vertex.xyz, patch[i].ase_normal) - dot(patch[i].vertex.xyz, patch[i].ase_normal));
|
|
|
+ float phongStrength = _TessPhongStrength;
|
|
|
+ o.vertex.xyz = phongStrength * (pp[0]*bary.x + pp[1]*bary.y + pp[2]*bary.z) + (1.0f-phongStrength) * o.vertex.xyz;
|
|
|
+ #endif
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(patch[0], o);
|
|
|
+ return VertexFunction(o);
|
|
|
+ }
|
|
|
+ #else
|
|
|
+ VertexOutput vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ return VertexFunction( v );
|
|
|
+ }
|
|
|
+ #endif
|
|
|
+
|
|
|
+ half4 frag(VertexOutput IN ) : SV_TARGET
|
|
|
+ {
|
|
|
+ UNITY_SETUP_INSTANCE_ID(IN);
|
|
|
+ UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX( IN );
|
|
|
+
|
|
|
+ #if defined(ASE_NEEDS_FRAG_WORLD_POSITION)
|
|
|
+ float3 WorldPosition = IN.worldPos;
|
|
|
+ #endif
|
|
|
+ float4 ShadowCoords = float4( 0, 0, 0, 0 );
|
|
|
+
|
|
|
+ #if defined(ASE_NEEDS_FRAG_SHADOWCOORDS)
|
|
|
+ #if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)
|
|
|
+ ShadowCoords = IN.shadowCoord;
|
|
|
+ #elif defined(MAIN_LIGHT_CALCULATE_SHADOWS)
|
|
|
+ ShadowCoords = TransformWorldToShadowCoord( WorldPosition );
|
|
|
+ #endif
|
|
|
+ #endif
|
|
|
+
|
|
|
+ float2 appendResult43 = (float2(_MainTilingU , _MainTilingV));
|
|
|
+ float2 texCoord48 = IN.ase_texcoord2.xy * appendResult43 + float2( 0,0 );
|
|
|
+ float cos51 = cos( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float sin51 = sin( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float2 rotator51 = mul( IN.ase_texcoord2.xy - float2( 0.5,0.5 ) , float2x2( cos51 , -sin51 , sin51 , cos51 )) + float2( 0.5,0.5 );
|
|
|
+ float2 appendResult46 = (float2(_MainTexOffsetU , _MainTexOffsetV));
|
|
|
+ float2 appendResult36 = (float2(_MainSpeedU , _MainSpeedV));
|
|
|
+ float2 panner35 = ( 1.0 * _Time.y * appendResult36 + texCoord48);
|
|
|
+ float2 lerpResult37 = lerp( ( texCoord48 + ( rotator51 + appendResult46 ) ) , panner35 , round( _TimeSpeedON ));
|
|
|
+ float4 tex2DNode10 = tex2D( _MainTex, lerpResult37 );
|
|
|
+ float2 appendResult93 = (float2(_MaskTilingU2 , _MaskTilingV2));
|
|
|
+ float2 texCoord97 = IN.ase_texcoord2.xy * appendResult93 + float2( 0,0 );
|
|
|
+ float2 appendResult96 = (float2(_MaskTexOffsetU2 , _MaskTexOffsetV2));
|
|
|
+ float4 tex2DNode11 = tex2D( _Mask, ( texCoord97 + appendResult96 ) );
|
|
|
+ float lerpResult57 = lerp( tex2DNode11.r , tex2DNode11.a , round( _MaskTongDao ));
|
|
|
+ float4 texCoord66 = IN.ase_texcoord3;
|
|
|
+ texCoord66.xy = IN.ase_texcoord3.xy * float2( 1,1 ) + float2( 0,0 );
|
|
|
+ float lerpResult72 = lerp( _Diss_value , texCoord66.x , _CustomDataDissolve);
|
|
|
+ float lerpResult69 = lerp( _Diss_value , texCoord66.x , round( _CustomDataDissolve ));
|
|
|
+ float2 appendResult88 = (float2(_DisTilingU1 , _DisTilingV1));
|
|
|
+ float2 texCoord87 = IN.ase_texcoord2.xy * appendResult88 + float2( 0,0 );
|
|
|
+ float2 appendResult84 = (float2(_DisTexOffsetU1 , _DisTexOffsetV1));
|
|
|
+ float smoothstepResult76 = smoothstep( lerpResult72 , ( lerpResult69 + _Soft_value ) , tex2D( _dissolve, ( texCoord87 + appendResult84 ) ).r);
|
|
|
+
|
|
|
+ float Alpha = ( IN.ase_color.a * ( tex2DNode10.a * lerpResult57 * _Alpha * smoothstepResult76 ) );
|
|
|
+ float AlphaClipThreshold = 0.5;
|
|
|
+
|
|
|
+ #ifdef _ALPHATEST_ON
|
|
|
+ clip(Alpha - AlphaClipThreshold);
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #ifdef LOD_FADE_CROSSFADE
|
|
|
+ LODDitheringTransition( IN.clipPos.xyz, unity_LODFade.x );
|
|
|
+ #endif
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+ ENDHLSL
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ Pass
|
|
|
+ {
|
|
|
+
|
|
|
+ Name "Universal2D"
|
|
|
+ Tags { "LightMode"="Universal2D" }
|
|
|
+
|
|
|
+ Blend SrcAlpha OneMinusSrcAlpha, One OneMinusSrcAlpha
|
|
|
+ ZWrite Off
|
|
|
+ ZTest LEqual
|
|
|
+ Offset 0 , 0
|
|
|
+ ColorMask RGBA
|
|
|
+
|
|
|
+
|
|
|
+ HLSLPROGRAM
|
|
|
+
|
|
|
+ #pragma multi_compile_instancing
|
|
|
+ #define _RECEIVE_SHADOWS_OFF 1
|
|
|
+ #define ASE_SRP_VERSION 999999
|
|
|
+
|
|
|
+
|
|
|
+ #pragma multi_compile _ LIGHTMAP_ON
|
|
|
+ #pragma multi_compile _ DIRLIGHTMAP_COMBINED
|
|
|
+ #pragma shader_feature _ _SAMPLE_GI
|
|
|
+ #pragma multi_compile _ _DBUFFER_MRT1 _DBUFFER_MRT2 _DBUFFER_MRT3
|
|
|
+ #pragma multi_compile _ DEBUG_DISPLAY
|
|
|
+ #define SHADERPASS SHADERPASS_UNLIT
|
|
|
+
|
|
|
+
|
|
|
+ #pragma vertex vert
|
|
|
+ #pragma fragment frag
|
|
|
+
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Texture.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/TextureStack.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ShaderGraphFunctions.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/DBuffer.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/ShaderPass.hlsl"
|
|
|
+
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Debug/Debugging3D.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Input.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/SurfaceData.hlsl"
|
|
|
+
|
|
|
+
|
|
|
+ #define ASE_NEEDS_FRAG_COLOR
|
|
|
+
|
|
|
+
|
|
|
+ struct VertexInput
|
|
|
+ {
|
|
|
+ float4 vertex : POSITION;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct VertexOutput
|
|
|
+ {
|
|
|
+ float4 clipPos : SV_POSITION;
|
|
|
+ #if defined(ASE_NEEDS_FRAG_WORLD_POSITION)
|
|
|
+ float3 worldPos : TEXCOORD0;
|
|
|
+ #endif
|
|
|
+ #if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR) && defined(ASE_NEEDS_FRAG_SHADOWCOORDS)
|
|
|
+ float4 shadowCoord : TEXCOORD1;
|
|
|
+ #endif
|
|
|
+ #ifdef ASE_FOG
|
|
|
+ float fogFactor : TEXCOORD2;
|
|
|
+ #endif
|
|
|
+ float4 ase_texcoord3 : TEXCOORD3;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord4 : TEXCOORD4;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ UNITY_VERTEX_OUTPUT_STEREO
|
|
|
+ };
|
|
|
+
|
|
|
+ CBUFFER_START(UnityPerMaterial)
|
|
|
+ float4 _Color;
|
|
|
+ float _MainTilingU;
|
|
|
+ float _DisTilingV1;
|
|
|
+ float _DisTilingU1;
|
|
|
+ float _Soft_value;
|
|
|
+ float _CustomDataDissolve;
|
|
|
+ float _Diss_value;
|
|
|
+ float _Alpha;
|
|
|
+ float _MaskTongDao;
|
|
|
+ float _MaskTexOffsetV2;
|
|
|
+ float _MaskTexOffsetU2;
|
|
|
+ float _MaskTilingV2;
|
|
|
+ float _MaskTilingU2;
|
|
|
+ float _TimeSpeedON;
|
|
|
+ float _MainSpeedV;
|
|
|
+ float _MainSpeedU;
|
|
|
+ float _MainTexOffsetV;
|
|
|
+ float _MainTexOffsetU;
|
|
|
+ float _MainTexRotation;
|
|
|
+ float _MainTilingV;
|
|
|
+ float _DisTexOffsetU1;
|
|
|
+ float _DisTexOffsetV1;
|
|
|
+ #ifdef TESSELLATION_ON
|
|
|
+ float _TessPhongStrength;
|
|
|
+ float _TessValue;
|
|
|
+ float _TessMin;
|
|
|
+ float _TessMax;
|
|
|
+ float _TessEdgeLength;
|
|
|
+ float _TessMaxDisp;
|
|
|
+ #endif
|
|
|
+ CBUFFER_END
|
|
|
+ sampler2D _MainTex;
|
|
|
+ sampler2D _Mask;
|
|
|
+ sampler2D _dissolve;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ VertexOutput VertexFunction ( VertexInput v )
|
|
|
+ {
|
|
|
+ VertexOutput o = (VertexOutput)0;
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
|
|
|
+
|
|
|
+ o.ase_texcoord3.xy = v.ase_texcoord.xy;
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord4 = v.ase_texcoord1;
|
|
|
+
|
|
|
+ //setting value to unused interpolator channels and avoid initialization warnings
|
|
|
+ o.ase_texcoord3.zw = 0;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ float3 defaultVertexValue = v.vertex.xyz;
|
|
|
+ #else
|
|
|
+ float3 defaultVertexValue = float3(0, 0, 0);
|
|
|
+ #endif
|
|
|
+ float3 vertexValue = defaultVertexValue;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ v.vertex.xyz = vertexValue;
|
|
|
+ #else
|
|
|
+ v.vertex.xyz += vertexValue;
|
|
|
+ #endif
|
|
|
+ v.ase_normal = v.ase_normal;
|
|
|
+
|
|
|
+ float3 positionWS = TransformObjectToWorld( v.vertex.xyz );
|
|
|
+ float4 positionCS = TransformWorldToHClip( positionWS );
|
|
|
+
|
|
|
+ #if defined(ASE_NEEDS_FRAG_WORLD_POSITION)
|
|
|
+ o.worldPos = positionWS;
|
|
|
+ #endif
|
|
|
+ #if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR) && defined(ASE_NEEDS_FRAG_SHADOWCOORDS)
|
|
|
+ VertexPositionInputs vertexInput = (VertexPositionInputs)0;
|
|
|
+ vertexInput.positionWS = positionWS;
|
|
|
+ vertexInput.positionCS = positionCS;
|
|
|
+ o.shadowCoord = GetShadowCoord( vertexInput );
|
|
|
+ #endif
|
|
|
+ #ifdef ASE_FOG
|
|
|
+ o.fogFactor = ComputeFogFactor( positionCS.z );
|
|
|
+ #endif
|
|
|
+ o.clipPos = positionCS;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ #if defined(TESSELLATION_ON)
|
|
|
+ struct VertexControl
|
|
|
+ {
|
|
|
+ float4 vertex : INTERNALTESSPOS;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct TessellationFactors
|
|
|
+ {
|
|
|
+ float edge[3] : SV_TessFactor;
|
|
|
+ float inside : SV_InsideTessFactor;
|
|
|
+ };
|
|
|
+
|
|
|
+ VertexControl vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ VertexControl o;
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ o.vertex = v.vertex;
|
|
|
+ o.ase_normal = v.ase_normal;
|
|
|
+ o.ase_texcoord = v.ase_texcoord;
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord1 = v.ase_texcoord1;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ TessellationFactors TessellationFunction (InputPatch<VertexControl,3> v)
|
|
|
+ {
|
|
|
+ TessellationFactors o;
|
|
|
+ float4 tf = 1;
|
|
|
+ float tessValue = _TessValue; float tessMin = _TessMin; float tessMax = _TessMax;
|
|
|
+ float edgeLength = _TessEdgeLength; float tessMaxDisp = _TessMaxDisp;
|
|
|
+ #if defined(ASE_FIXED_TESSELLATION)
|
|
|
+ tf = FixedTess( tessValue );
|
|
|
+ #elif defined(ASE_DISTANCE_TESSELLATION)
|
|
|
+ tf = DistanceBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, tessValue, tessMin, tessMax, GetObjectToWorldMatrix(), _WorldSpaceCameraPos );
|
|
|
+ #elif defined(ASE_LENGTH_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams );
|
|
|
+ #elif defined(ASE_LENGTH_CULL_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTessCull(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, tessMaxDisp, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams, unity_CameraWorldClipPlanes );
|
|
|
+ #endif
|
|
|
+ o.edge[0] = tf.x; o.edge[1] = tf.y; o.edge[2] = tf.z; o.inside = tf.w;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ [partitioning("fractional_odd")]
|
|
|
+ [outputtopology("triangle_cw")]
|
|
|
+ [patchconstantfunc("TessellationFunction")]
|
|
|
+ [outputcontrolpoints(3)]
|
|
|
+ VertexControl HullFunction(InputPatch<VertexControl, 3> patch, uint id : SV_OutputControlPointID)
|
|
|
+ {
|
|
|
+ return patch[id];
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ VertexOutput DomainFunction(TessellationFactors factors, OutputPatch<VertexControl, 3> patch, float3 bary : SV_DomainLocation)
|
|
|
+ {
|
|
|
+ VertexInput o = (VertexInput) 0;
|
|
|
+ o.vertex = patch[0].vertex * bary.x + patch[1].vertex * bary.y + patch[2].vertex * bary.z;
|
|
|
+ o.ase_normal = patch[0].ase_normal * bary.x + patch[1].ase_normal * bary.y + patch[2].ase_normal * bary.z;
|
|
|
+ o.ase_texcoord = patch[0].ase_texcoord * bary.x + patch[1].ase_texcoord * bary.y + patch[2].ase_texcoord * bary.z;
|
|
|
+ o.ase_color = patch[0].ase_color * bary.x + patch[1].ase_color * bary.y + patch[2].ase_color * bary.z;
|
|
|
+ o.ase_texcoord1 = patch[0].ase_texcoord1 * bary.x + patch[1].ase_texcoord1 * bary.y + patch[2].ase_texcoord1 * bary.z;
|
|
|
+ #if defined(ASE_PHONG_TESSELLATION)
|
|
|
+ float3 pp[3];
|
|
|
+ for (int i = 0; i < 3; ++i)
|
|
|
+ pp[i] = o.vertex.xyz - patch[i].ase_normal * (dot(o.vertex.xyz, patch[i].ase_normal) - dot(patch[i].vertex.xyz, patch[i].ase_normal));
|
|
|
+ float phongStrength = _TessPhongStrength;
|
|
|
+ o.vertex.xyz = phongStrength * (pp[0]*bary.x + pp[1]*bary.y + pp[2]*bary.z) + (1.0f-phongStrength) * o.vertex.xyz;
|
|
|
+ #endif
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(patch[0], o);
|
|
|
+ return VertexFunction(o);
|
|
|
+ }
|
|
|
+ #else
|
|
|
+ VertexOutput vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ return VertexFunction( v );
|
|
|
+ }
|
|
|
+ #endif
|
|
|
+
|
|
|
+ half4 frag ( VertexOutput IN ) : SV_Target
|
|
|
+ {
|
|
|
+ UNITY_SETUP_INSTANCE_ID( IN );
|
|
|
+ UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX( IN );
|
|
|
+
|
|
|
+ #if defined(ASE_NEEDS_FRAG_WORLD_POSITION)
|
|
|
+ float3 WorldPosition = IN.worldPos;
|
|
|
+ #endif
|
|
|
+ float4 ShadowCoords = float4( 0, 0, 0, 0 );
|
|
|
+
|
|
|
+ #if defined(ASE_NEEDS_FRAG_SHADOWCOORDS)
|
|
|
+ #if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)
|
|
|
+ ShadowCoords = IN.shadowCoord;
|
|
|
+ #elif defined(MAIN_LIGHT_CALCULATE_SHADOWS)
|
|
|
+ ShadowCoords = TransformWorldToShadowCoord( WorldPosition );
|
|
|
+ #endif
|
|
|
+ #endif
|
|
|
+ float2 appendResult43 = (float2(_MainTilingU , _MainTilingV));
|
|
|
+ float2 texCoord48 = IN.ase_texcoord3.xy * appendResult43 + float2( 0,0 );
|
|
|
+ float cos51 = cos( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float sin51 = sin( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float2 rotator51 = mul( IN.ase_texcoord3.xy - float2( 0.5,0.5 ) , float2x2( cos51 , -sin51 , sin51 , cos51 )) + float2( 0.5,0.5 );
|
|
|
+ float2 appendResult46 = (float2(_MainTexOffsetU , _MainTexOffsetV));
|
|
|
+ float2 appendResult36 = (float2(_MainSpeedU , _MainSpeedV));
|
|
|
+ float2 panner35 = ( 1.0 * _Time.y * appendResult36 + texCoord48);
|
|
|
+ float2 lerpResult37 = lerp( ( texCoord48 + ( rotator51 + appendResult46 ) ) , panner35 , round( _TimeSpeedON ));
|
|
|
+ float4 tex2DNode10 = tex2D( _MainTex, lerpResult37 );
|
|
|
+
|
|
|
+ float2 appendResult93 = (float2(_MaskTilingU2 , _MaskTilingV2));
|
|
|
+ float2 texCoord97 = IN.ase_texcoord3.xy * appendResult93 + float2( 0,0 );
|
|
|
+ float2 appendResult96 = (float2(_MaskTexOffsetU2 , _MaskTexOffsetV2));
|
|
|
+ float4 tex2DNode11 = tex2D( _Mask, ( texCoord97 + appendResult96 ) );
|
|
|
+ float lerpResult57 = lerp( tex2DNode11.r , tex2DNode11.a , round( _MaskTongDao ));
|
|
|
+ float4 texCoord66 = IN.ase_texcoord4;
|
|
|
+ texCoord66.xy = IN.ase_texcoord4.xy * float2( 1,1 ) + float2( 0,0 );
|
|
|
+ float lerpResult72 = lerp( _Diss_value , texCoord66.x , _CustomDataDissolve);
|
|
|
+ float lerpResult69 = lerp( _Diss_value , texCoord66.x , round( _CustomDataDissolve ));
|
|
|
+ float2 appendResult88 = (float2(_DisTilingU1 , _DisTilingV1));
|
|
|
+ float2 texCoord87 = IN.ase_texcoord3.xy * appendResult88 + float2( 0,0 );
|
|
|
+ float2 appendResult84 = (float2(_DisTexOffsetU1 , _DisTexOffsetV1));
|
|
|
+ float smoothstepResult76 = smoothstep( lerpResult72 , ( lerpResult69 + _Soft_value ) , tex2D( _dissolve, ( texCoord87 + appendResult84 ) ).r);
|
|
|
+
|
|
|
+ float3 BakedAlbedo = 0;
|
|
|
+ float3 BakedEmission = 0;
|
|
|
+ float3 Color = ( tex2DNode10 * _Color * IN.ase_color ).rgb;
|
|
|
+ float Alpha = ( IN.ase_color.a * ( tex2DNode10.a * lerpResult57 * _Alpha * smoothstepResult76 ) );
|
|
|
+ float AlphaClipThreshold = 0.5;
|
|
|
+ float AlphaClipThresholdShadow = 0.5;
|
|
|
+
|
|
|
+ #ifdef _ALPHATEST_ON
|
|
|
+ clip( Alpha - AlphaClipThreshold );
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #if defined(_DBUFFER)
|
|
|
+ ApplyDecalToBaseColor(IN.clipPos, Color);
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #if defined(_ALPHAPREMULTIPLY_ON)
|
|
|
+ Color *= Alpha;
|
|
|
+ #endif
|
|
|
+
|
|
|
+
|
|
|
+ #ifdef LOD_FADE_CROSSFADE
|
|
|
+ LODDitheringTransition( IN.clipPos.xyz, unity_LODFade.x );
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #ifdef ASE_FOG
|
|
|
+ Color = MixFog( Color, IN.fogFactor );
|
|
|
+ #endif
|
|
|
+
|
|
|
+ return half4( Color, Alpha );
|
|
|
+ }
|
|
|
+
|
|
|
+ ENDHLSL
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ Pass
|
|
|
+ {
|
|
|
+
|
|
|
+ Name "SceneSelectionPass"
|
|
|
+ Tags { "LightMode"="SceneSelectionPass" }
|
|
|
+
|
|
|
+ Cull Off
|
|
|
+
|
|
|
+ HLSLPROGRAM
|
|
|
+
|
|
|
+ #pragma multi_compile_instancing
|
|
|
+ #define _RECEIVE_SHADOWS_OFF 1
|
|
|
+ #define ASE_SRP_VERSION 999999
|
|
|
+
|
|
|
+
|
|
|
+ #pragma only_renderers d3d11 glcore gles gles3
|
|
|
+ #pragma vertex vert
|
|
|
+ #pragma fragment frag
|
|
|
+
|
|
|
+ #define ATTRIBUTES_NEED_NORMAL
|
|
|
+ #define ATTRIBUTES_NEED_TANGENT
|
|
|
+ #define SHADERPASS SHADERPASS_DEPTHONLY
|
|
|
+
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Texture.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/TextureStack.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ShaderGraphFunctions.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/ShaderPass.hlsl"
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ struct VertexInput
|
|
|
+ {
|
|
|
+ float4 vertex : POSITION;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct VertexOutput
|
|
|
+ {
|
|
|
+ float4 clipPos : SV_POSITION;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ UNITY_VERTEX_OUTPUT_STEREO
|
|
|
+ };
|
|
|
+
|
|
|
+ CBUFFER_START(UnityPerMaterial)
|
|
|
+ float4 _Color;
|
|
|
+ float _MainTilingU;
|
|
|
+ float _DisTilingV1;
|
|
|
+ float _DisTilingU1;
|
|
|
+ float _Soft_value;
|
|
|
+ float _CustomDataDissolve;
|
|
|
+ float _Diss_value;
|
|
|
+ float _Alpha;
|
|
|
+ float _MaskTongDao;
|
|
|
+ float _MaskTexOffsetV2;
|
|
|
+ float _MaskTexOffsetU2;
|
|
|
+ float _MaskTilingV2;
|
|
|
+ float _MaskTilingU2;
|
|
|
+ float _TimeSpeedON;
|
|
|
+ float _MainSpeedV;
|
|
|
+ float _MainSpeedU;
|
|
|
+ float _MainTexOffsetV;
|
|
|
+ float _MainTexOffsetU;
|
|
|
+ float _MainTexRotation;
|
|
|
+ float _MainTilingV;
|
|
|
+ float _DisTexOffsetU1;
|
|
|
+ float _DisTexOffsetV1;
|
|
|
+ #ifdef TESSELLATION_ON
|
|
|
+ float _TessPhongStrength;
|
|
|
+ float _TessValue;
|
|
|
+ float _TessMin;
|
|
|
+ float _TessMax;
|
|
|
+ float _TessEdgeLength;
|
|
|
+ float _TessMaxDisp;
|
|
|
+ #endif
|
|
|
+ CBUFFER_END
|
|
|
+
|
|
|
+ sampler2D _MainTex;
|
|
|
+ sampler2D _Mask;
|
|
|
+ sampler2D _dissolve;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ int _ObjectId;
|
|
|
+ int _PassValue;
|
|
|
+
|
|
|
+ struct SurfaceDescription
|
|
|
+ {
|
|
|
+ float Alpha;
|
|
|
+ float AlphaClipThreshold;
|
|
|
+ };
|
|
|
+
|
|
|
+ VertexOutput VertexFunction(VertexInput v )
|
|
|
+ {
|
|
|
+ VertexOutput o;
|
|
|
+ ZERO_INITIALIZE(VertexOutput, o);
|
|
|
+
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
|
|
|
+
|
|
|
+
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord.xy = v.ase_texcoord.xy;
|
|
|
+ o.ase_texcoord1 = v.ase_texcoord1;
|
|
|
+
|
|
|
+ //setting value to unused interpolator channels and avoid initialization warnings
|
|
|
+ o.ase_texcoord.zw = 0;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ float3 defaultVertexValue = v.vertex.xyz;
|
|
|
+ #else
|
|
|
+ float3 defaultVertexValue = float3(0, 0, 0);
|
|
|
+ #endif
|
|
|
+ float3 vertexValue = defaultVertexValue;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ v.vertex.xyz = vertexValue;
|
|
|
+ #else
|
|
|
+ v.vertex.xyz += vertexValue;
|
|
|
+ #endif
|
|
|
+ v.ase_normal = v.ase_normal;
|
|
|
+
|
|
|
+ float3 positionWS = TransformObjectToWorld( v.vertex.xyz );
|
|
|
+ o.clipPos = TransformWorldToHClip(positionWS);
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ #if defined(TESSELLATION_ON)
|
|
|
+ struct VertexControl
|
|
|
+ {
|
|
|
+ float4 vertex : INTERNALTESSPOS;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct TessellationFactors
|
|
|
+ {
|
|
|
+ float edge[3] : SV_TessFactor;
|
|
|
+ float inside : SV_InsideTessFactor;
|
|
|
+ };
|
|
|
+
|
|
|
+ VertexControl vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ VertexControl o;
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ o.vertex = v.vertex;
|
|
|
+ o.ase_normal = v.ase_normal;
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord = v.ase_texcoord;
|
|
|
+ o.ase_texcoord1 = v.ase_texcoord1;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ TessellationFactors TessellationFunction (InputPatch<VertexControl,3> v)
|
|
|
+ {
|
|
|
+ TessellationFactors o;
|
|
|
+ float4 tf = 1;
|
|
|
+ float tessValue = _TessValue; float tessMin = _TessMin; float tessMax = _TessMax;
|
|
|
+ float edgeLength = _TessEdgeLength; float tessMaxDisp = _TessMaxDisp;
|
|
|
+ #if defined(ASE_FIXED_TESSELLATION)
|
|
|
+ tf = FixedTess( tessValue );
|
|
|
+ #elif defined(ASE_DISTANCE_TESSELLATION)
|
|
|
+ tf = DistanceBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, tessValue, tessMin, tessMax, GetObjectToWorldMatrix(), _WorldSpaceCameraPos );
|
|
|
+ #elif defined(ASE_LENGTH_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams );
|
|
|
+ #elif defined(ASE_LENGTH_CULL_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTessCull(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, tessMaxDisp, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams, unity_CameraWorldClipPlanes );
|
|
|
+ #endif
|
|
|
+ o.edge[0] = tf.x; o.edge[1] = tf.y; o.edge[2] = tf.z; o.inside = tf.w;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ [partitioning("fractional_odd")]
|
|
|
+ [outputtopology("triangle_cw")]
|
|
|
+ [patchconstantfunc("TessellationFunction")]
|
|
|
+ [outputcontrolpoints(3)]
|
|
|
+ VertexControl HullFunction(InputPatch<VertexControl, 3> patch, uint id : SV_OutputControlPointID)
|
|
|
+ {
|
|
|
+ return patch[id];
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ VertexOutput DomainFunction(TessellationFactors factors, OutputPatch<VertexControl, 3> patch, float3 bary : SV_DomainLocation)
|
|
|
+ {
|
|
|
+ VertexInput o = (VertexInput) 0;
|
|
|
+ o.vertex = patch[0].vertex * bary.x + patch[1].vertex * bary.y + patch[2].vertex * bary.z;
|
|
|
+ o.ase_normal = patch[0].ase_normal * bary.x + patch[1].ase_normal * bary.y + patch[2].ase_normal * bary.z;
|
|
|
+ o.ase_color = patch[0].ase_color * bary.x + patch[1].ase_color * bary.y + patch[2].ase_color * bary.z;
|
|
|
+ o.ase_texcoord = patch[0].ase_texcoord * bary.x + patch[1].ase_texcoord * bary.y + patch[2].ase_texcoord * bary.z;
|
|
|
+ o.ase_texcoord1 = patch[0].ase_texcoord1 * bary.x + patch[1].ase_texcoord1 * bary.y + patch[2].ase_texcoord1 * bary.z;
|
|
|
+ #if defined(ASE_PHONG_TESSELLATION)
|
|
|
+ float3 pp[3];
|
|
|
+ for (int i = 0; i < 3; ++i)
|
|
|
+ pp[i] = o.vertex.xyz - patch[i].ase_normal * (dot(o.vertex.xyz, patch[i].ase_normal) - dot(patch[i].vertex.xyz, patch[i].ase_normal));
|
|
|
+ float phongStrength = _TessPhongStrength;
|
|
|
+ o.vertex.xyz = phongStrength * (pp[0]*bary.x + pp[1]*bary.y + pp[2]*bary.z) + (1.0f-phongStrength) * o.vertex.xyz;
|
|
|
+ #endif
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(patch[0], o);
|
|
|
+ return VertexFunction(o);
|
|
|
+ }
|
|
|
+ #else
|
|
|
+ VertexOutput vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ return VertexFunction( v );
|
|
|
+ }
|
|
|
+ #endif
|
|
|
+
|
|
|
+ half4 frag(VertexOutput IN ) : SV_TARGET
|
|
|
+ {
|
|
|
+ SurfaceDescription surfaceDescription = (SurfaceDescription)0;
|
|
|
+ float2 appendResult43 = (float2(_MainTilingU , _MainTilingV));
|
|
|
+ float2 texCoord48 = IN.ase_texcoord.xy * appendResult43 + float2( 0,0 );
|
|
|
+ float cos51 = cos( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float sin51 = sin( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float2 rotator51 = mul( IN.ase_texcoord.xy - float2( 0.5,0.5 ) , float2x2( cos51 , -sin51 , sin51 , cos51 )) + float2( 0.5,0.5 );
|
|
|
+ float2 appendResult46 = (float2(_MainTexOffsetU , _MainTexOffsetV));
|
|
|
+ float2 appendResult36 = (float2(_MainSpeedU , _MainSpeedV));
|
|
|
+ float2 panner35 = ( 1.0 * _Time.y * appendResult36 + texCoord48);
|
|
|
+ float2 lerpResult37 = lerp( ( texCoord48 + ( rotator51 + appendResult46 ) ) , panner35 , round( _TimeSpeedON ));
|
|
|
+ float4 tex2DNode10 = tex2D( _MainTex, lerpResult37 );
|
|
|
+ float2 appendResult93 = (float2(_MaskTilingU2 , _MaskTilingV2));
|
|
|
+ float2 texCoord97 = IN.ase_texcoord.xy * appendResult93 + float2( 0,0 );
|
|
|
+ float2 appendResult96 = (float2(_MaskTexOffsetU2 , _MaskTexOffsetV2));
|
|
|
+ float4 tex2DNode11 = tex2D( _Mask, ( texCoord97 + appendResult96 ) );
|
|
|
+ float lerpResult57 = lerp( tex2DNode11.r , tex2DNode11.a , round( _MaskTongDao ));
|
|
|
+ float4 texCoord66 = IN.ase_texcoord1;
|
|
|
+ texCoord66.xy = IN.ase_texcoord1.xy * float2( 1,1 ) + float2( 0,0 );
|
|
|
+ float lerpResult72 = lerp( _Diss_value , texCoord66.x , _CustomDataDissolve);
|
|
|
+ float lerpResult69 = lerp( _Diss_value , texCoord66.x , round( _CustomDataDissolve ));
|
|
|
+ float2 appendResult88 = (float2(_DisTilingU1 , _DisTilingV1));
|
|
|
+ float2 texCoord87 = IN.ase_texcoord.xy * appendResult88 + float2( 0,0 );
|
|
|
+ float2 appendResult84 = (float2(_DisTexOffsetU1 , _DisTexOffsetV1));
|
|
|
+ float smoothstepResult76 = smoothstep( lerpResult72 , ( lerpResult69 + _Soft_value ) , tex2D( _dissolve, ( texCoord87 + appendResult84 ) ).r);
|
|
|
+
|
|
|
+ surfaceDescription.Alpha = ( IN.ase_color.a * ( tex2DNode10.a * lerpResult57 * _Alpha * smoothstepResult76 ) );
|
|
|
+ surfaceDescription.AlphaClipThreshold = 0.5;
|
|
|
+
|
|
|
+
|
|
|
+ #if _ALPHATEST_ON
|
|
|
+ float alphaClipThreshold = 0.01f;
|
|
|
+ #if ALPHA_CLIP_THRESHOLD
|
|
|
+ alphaClipThreshold = surfaceDescription.AlphaClipThreshold;
|
|
|
+ #endif
|
|
|
+ clip(surfaceDescription.Alpha - alphaClipThreshold);
|
|
|
+ #endif
|
|
|
+
|
|
|
+ half4 outColor = half4(_ObjectId, _PassValue, 1.0, 1.0);
|
|
|
+ return outColor;
|
|
|
+ }
|
|
|
+
|
|
|
+ ENDHLSL
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ Pass
|
|
|
+ {
|
|
|
+
|
|
|
+ Name "ScenePickingPass"
|
|
|
+ Tags { "LightMode"="Picking" }
|
|
|
+
|
|
|
+ HLSLPROGRAM
|
|
|
+
|
|
|
+ #pragma multi_compile_instancing
|
|
|
+ #define _RECEIVE_SHADOWS_OFF 1
|
|
|
+ #define ASE_SRP_VERSION 999999
|
|
|
+
|
|
|
+
|
|
|
+ #pragma only_renderers d3d11 glcore gles gles3
|
|
|
+ #pragma vertex vert
|
|
|
+ #pragma fragment frag
|
|
|
+
|
|
|
+
|
|
|
+ #define ATTRIBUTES_NEED_NORMAL
|
|
|
+ #define ATTRIBUTES_NEED_TANGENT
|
|
|
+ #define SHADERPASS SHADERPASS_DEPTHONLY
|
|
|
+
|
|
|
+
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Texture.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/TextureStack.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ShaderGraphFunctions.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/ShaderPass.hlsl"
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ struct VertexInput
|
|
|
+ {
|
|
|
+ float4 vertex : POSITION;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct VertexOutput
|
|
|
+ {
|
|
|
+ float4 clipPos : SV_POSITION;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ UNITY_VERTEX_OUTPUT_STEREO
|
|
|
+ };
|
|
|
+
|
|
|
+ CBUFFER_START(UnityPerMaterial)
|
|
|
+ float4 _Color;
|
|
|
+ float _MainTilingU;
|
|
|
+ float _DisTilingV1;
|
|
|
+ float _DisTilingU1;
|
|
|
+ float _Soft_value;
|
|
|
+ float _CustomDataDissolve;
|
|
|
+ float _Diss_value;
|
|
|
+ float _Alpha;
|
|
|
+ float _MaskTongDao;
|
|
|
+ float _MaskTexOffsetV2;
|
|
|
+ float _MaskTexOffsetU2;
|
|
|
+ float _MaskTilingV2;
|
|
|
+ float _MaskTilingU2;
|
|
|
+ float _TimeSpeedON;
|
|
|
+ float _MainSpeedV;
|
|
|
+ float _MainSpeedU;
|
|
|
+ float _MainTexOffsetV;
|
|
|
+ float _MainTexOffsetU;
|
|
|
+ float _MainTexRotation;
|
|
|
+ float _MainTilingV;
|
|
|
+ float _DisTexOffsetU1;
|
|
|
+ float _DisTexOffsetV1;
|
|
|
+ #ifdef TESSELLATION_ON
|
|
|
+ float _TessPhongStrength;
|
|
|
+ float _TessValue;
|
|
|
+ float _TessMin;
|
|
|
+ float _TessMax;
|
|
|
+ float _TessEdgeLength;
|
|
|
+ float _TessMaxDisp;
|
|
|
+ #endif
|
|
|
+ CBUFFER_END
|
|
|
+
|
|
|
+ sampler2D _MainTex;
|
|
|
+ sampler2D _Mask;
|
|
|
+ sampler2D _dissolve;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ float4 _SelectionID;
|
|
|
+
|
|
|
+
|
|
|
+ struct SurfaceDescription
|
|
|
+ {
|
|
|
+ float Alpha;
|
|
|
+ float AlphaClipThreshold;
|
|
|
+ };
|
|
|
+
|
|
|
+ VertexOutput VertexFunction(VertexInput v )
|
|
|
+ {
|
|
|
+ VertexOutput o;
|
|
|
+ ZERO_INITIALIZE(VertexOutput, o);
|
|
|
+
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
|
|
|
+
|
|
|
+
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord.xy = v.ase_texcoord.xy;
|
|
|
+ o.ase_texcoord1 = v.ase_texcoord1;
|
|
|
+
|
|
|
+ //setting value to unused interpolator channels and avoid initialization warnings
|
|
|
+ o.ase_texcoord.zw = 0;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ float3 defaultVertexValue = v.vertex.xyz;
|
|
|
+ #else
|
|
|
+ float3 defaultVertexValue = float3(0, 0, 0);
|
|
|
+ #endif
|
|
|
+ float3 vertexValue = defaultVertexValue;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ v.vertex.xyz = vertexValue;
|
|
|
+ #else
|
|
|
+ v.vertex.xyz += vertexValue;
|
|
|
+ #endif
|
|
|
+ v.ase_normal = v.ase_normal;
|
|
|
+
|
|
|
+ float3 positionWS = TransformObjectToWorld( v.vertex.xyz );
|
|
|
+ o.clipPos = TransformWorldToHClip(positionWS);
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ #if defined(TESSELLATION_ON)
|
|
|
+ struct VertexControl
|
|
|
+ {
|
|
|
+ float4 vertex : INTERNALTESSPOS;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct TessellationFactors
|
|
|
+ {
|
|
|
+ float edge[3] : SV_TessFactor;
|
|
|
+ float inside : SV_InsideTessFactor;
|
|
|
+ };
|
|
|
+
|
|
|
+ VertexControl vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ VertexControl o;
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ o.vertex = v.vertex;
|
|
|
+ o.ase_normal = v.ase_normal;
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord = v.ase_texcoord;
|
|
|
+ o.ase_texcoord1 = v.ase_texcoord1;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ TessellationFactors TessellationFunction (InputPatch<VertexControl,3> v)
|
|
|
+ {
|
|
|
+ TessellationFactors o;
|
|
|
+ float4 tf = 1;
|
|
|
+ float tessValue = _TessValue; float tessMin = _TessMin; float tessMax = _TessMax;
|
|
|
+ float edgeLength = _TessEdgeLength; float tessMaxDisp = _TessMaxDisp;
|
|
|
+ #if defined(ASE_FIXED_TESSELLATION)
|
|
|
+ tf = FixedTess( tessValue );
|
|
|
+ #elif defined(ASE_DISTANCE_TESSELLATION)
|
|
|
+ tf = DistanceBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, tessValue, tessMin, tessMax, GetObjectToWorldMatrix(), _WorldSpaceCameraPos );
|
|
|
+ #elif defined(ASE_LENGTH_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams );
|
|
|
+ #elif defined(ASE_LENGTH_CULL_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTessCull(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, tessMaxDisp, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams, unity_CameraWorldClipPlanes );
|
|
|
+ #endif
|
|
|
+ o.edge[0] = tf.x; o.edge[1] = tf.y; o.edge[2] = tf.z; o.inside = tf.w;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ [partitioning("fractional_odd")]
|
|
|
+ [outputtopology("triangle_cw")]
|
|
|
+ [patchconstantfunc("TessellationFunction")]
|
|
|
+ [outputcontrolpoints(3)]
|
|
|
+ VertexControl HullFunction(InputPatch<VertexControl, 3> patch, uint id : SV_OutputControlPointID)
|
|
|
+ {
|
|
|
+ return patch[id];
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ VertexOutput DomainFunction(TessellationFactors factors, OutputPatch<VertexControl, 3> patch, float3 bary : SV_DomainLocation)
|
|
|
+ {
|
|
|
+ VertexInput o = (VertexInput) 0;
|
|
|
+ o.vertex = patch[0].vertex * bary.x + patch[1].vertex * bary.y + patch[2].vertex * bary.z;
|
|
|
+ o.ase_normal = patch[0].ase_normal * bary.x + patch[1].ase_normal * bary.y + patch[2].ase_normal * bary.z;
|
|
|
+ o.ase_color = patch[0].ase_color * bary.x + patch[1].ase_color * bary.y + patch[2].ase_color * bary.z;
|
|
|
+ o.ase_texcoord = patch[0].ase_texcoord * bary.x + patch[1].ase_texcoord * bary.y + patch[2].ase_texcoord * bary.z;
|
|
|
+ o.ase_texcoord1 = patch[0].ase_texcoord1 * bary.x + patch[1].ase_texcoord1 * bary.y + patch[2].ase_texcoord1 * bary.z;
|
|
|
+ #if defined(ASE_PHONG_TESSELLATION)
|
|
|
+ float3 pp[3];
|
|
|
+ for (int i = 0; i < 3; ++i)
|
|
|
+ pp[i] = o.vertex.xyz - patch[i].ase_normal * (dot(o.vertex.xyz, patch[i].ase_normal) - dot(patch[i].vertex.xyz, patch[i].ase_normal));
|
|
|
+ float phongStrength = _TessPhongStrength;
|
|
|
+ o.vertex.xyz = phongStrength * (pp[0]*bary.x + pp[1]*bary.y + pp[2]*bary.z) + (1.0f-phongStrength) * o.vertex.xyz;
|
|
|
+ #endif
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(patch[0], o);
|
|
|
+ return VertexFunction(o);
|
|
|
+ }
|
|
|
+ #else
|
|
|
+ VertexOutput vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ return VertexFunction( v );
|
|
|
+ }
|
|
|
+ #endif
|
|
|
+
|
|
|
+ half4 frag(VertexOutput IN ) : SV_TARGET
|
|
|
+ {
|
|
|
+ SurfaceDescription surfaceDescription = (SurfaceDescription)0;
|
|
|
+ float2 appendResult43 = (float2(_MainTilingU , _MainTilingV));
|
|
|
+ float2 texCoord48 = IN.ase_texcoord.xy * appendResult43 + float2( 0,0 );
|
|
|
+ float cos51 = cos( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float sin51 = sin( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float2 rotator51 = mul( IN.ase_texcoord.xy - float2( 0.5,0.5 ) , float2x2( cos51 , -sin51 , sin51 , cos51 )) + float2( 0.5,0.5 );
|
|
|
+ float2 appendResult46 = (float2(_MainTexOffsetU , _MainTexOffsetV));
|
|
|
+ float2 appendResult36 = (float2(_MainSpeedU , _MainSpeedV));
|
|
|
+ float2 panner35 = ( 1.0 * _Time.y * appendResult36 + texCoord48);
|
|
|
+ float2 lerpResult37 = lerp( ( texCoord48 + ( rotator51 + appendResult46 ) ) , panner35 , round( _TimeSpeedON ));
|
|
|
+ float4 tex2DNode10 = tex2D( _MainTex, lerpResult37 );
|
|
|
+ float2 appendResult93 = (float2(_MaskTilingU2 , _MaskTilingV2));
|
|
|
+ float2 texCoord97 = IN.ase_texcoord.xy * appendResult93 + float2( 0,0 );
|
|
|
+ float2 appendResult96 = (float2(_MaskTexOffsetU2 , _MaskTexOffsetV2));
|
|
|
+ float4 tex2DNode11 = tex2D( _Mask, ( texCoord97 + appendResult96 ) );
|
|
|
+ float lerpResult57 = lerp( tex2DNode11.r , tex2DNode11.a , round( _MaskTongDao ));
|
|
|
+ float4 texCoord66 = IN.ase_texcoord1;
|
|
|
+ texCoord66.xy = IN.ase_texcoord1.xy * float2( 1,1 ) + float2( 0,0 );
|
|
|
+ float lerpResult72 = lerp( _Diss_value , texCoord66.x , _CustomDataDissolve);
|
|
|
+ float lerpResult69 = lerp( _Diss_value , texCoord66.x , round( _CustomDataDissolve ));
|
|
|
+ float2 appendResult88 = (float2(_DisTilingU1 , _DisTilingV1));
|
|
|
+ float2 texCoord87 = IN.ase_texcoord.xy * appendResult88 + float2( 0,0 );
|
|
|
+ float2 appendResult84 = (float2(_DisTexOffsetU1 , _DisTexOffsetV1));
|
|
|
+ float smoothstepResult76 = smoothstep( lerpResult72 , ( lerpResult69 + _Soft_value ) , tex2D( _dissolve, ( texCoord87 + appendResult84 ) ).r);
|
|
|
+
|
|
|
+ surfaceDescription.Alpha = ( IN.ase_color.a * ( tex2DNode10.a * lerpResult57 * _Alpha * smoothstepResult76 ) );
|
|
|
+ surfaceDescription.AlphaClipThreshold = 0.5;
|
|
|
+
|
|
|
+
|
|
|
+ #if _ALPHATEST_ON
|
|
|
+ float alphaClipThreshold = 0.01f;
|
|
|
+ #if ALPHA_CLIP_THRESHOLD
|
|
|
+ alphaClipThreshold = surfaceDescription.AlphaClipThreshold;
|
|
|
+ #endif
|
|
|
+ clip(surfaceDescription.Alpha - alphaClipThreshold);
|
|
|
+ #endif
|
|
|
+
|
|
|
+ half4 outColor = 0;
|
|
|
+ outColor = _SelectionID;
|
|
|
+
|
|
|
+ return outColor;
|
|
|
+ }
|
|
|
+
|
|
|
+ ENDHLSL
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ Pass
|
|
|
+ {
|
|
|
+
|
|
|
+ Name "DepthNormals"
|
|
|
+ Tags { "LightMode"="DepthNormalsOnly" }
|
|
|
+
|
|
|
+ ZTest LEqual
|
|
|
+ ZWrite On
|
|
|
+
|
|
|
+
|
|
|
+ HLSLPROGRAM
|
|
|
+
|
|
|
+ #pragma multi_compile_instancing
|
|
|
+ #define _RECEIVE_SHADOWS_OFF 1
|
|
|
+ #define ASE_SRP_VERSION 999999
|
|
|
+
|
|
|
+
|
|
|
+ #pragma only_renderers d3d11 glcore gles gles3
|
|
|
+ #pragma multi_compile_fog
|
|
|
+ #pragma instancing_options renderinglayer
|
|
|
+ #pragma vertex vert
|
|
|
+ #pragma fragment frag
|
|
|
+
|
|
|
+
|
|
|
+ #define ATTRIBUTES_NEED_NORMAL
|
|
|
+ #define ATTRIBUTES_NEED_TANGENT
|
|
|
+ #define VARYINGS_NEED_NORMAL_WS
|
|
|
+
|
|
|
+ #define SHADERPASS SHADERPASS_DEPTHNORMALSONLY
|
|
|
+
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Texture.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/TextureStack.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ShaderGraphFunctions.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/ShaderPass.hlsl"
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ struct VertexInput
|
|
|
+ {
|
|
|
+ float4 vertex : POSITION;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct VertexOutput
|
|
|
+ {
|
|
|
+ float4 clipPos : SV_POSITION;
|
|
|
+ float3 normalWS : TEXCOORD0;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+ float4 ase_texcoord2 : TEXCOORD2;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ UNITY_VERTEX_OUTPUT_STEREO
|
|
|
+ };
|
|
|
+
|
|
|
+ CBUFFER_START(UnityPerMaterial)
|
|
|
+ float4 _Color;
|
|
|
+ float _MainTilingU;
|
|
|
+ float _DisTilingV1;
|
|
|
+ float _DisTilingU1;
|
|
|
+ float _Soft_value;
|
|
|
+ float _CustomDataDissolve;
|
|
|
+ float _Diss_value;
|
|
|
+ float _Alpha;
|
|
|
+ float _MaskTongDao;
|
|
|
+ float _MaskTexOffsetV2;
|
|
|
+ float _MaskTexOffsetU2;
|
|
|
+ float _MaskTilingV2;
|
|
|
+ float _MaskTilingU2;
|
|
|
+ float _TimeSpeedON;
|
|
|
+ float _MainSpeedV;
|
|
|
+ float _MainSpeedU;
|
|
|
+ float _MainTexOffsetV;
|
|
|
+ float _MainTexOffsetU;
|
|
|
+ float _MainTexRotation;
|
|
|
+ float _MainTilingV;
|
|
|
+ float _DisTexOffsetU1;
|
|
|
+ float _DisTexOffsetV1;
|
|
|
+ #ifdef TESSELLATION_ON
|
|
|
+ float _TessPhongStrength;
|
|
|
+ float _TessValue;
|
|
|
+ float _TessMin;
|
|
|
+ float _TessMax;
|
|
|
+ float _TessEdgeLength;
|
|
|
+ float _TessMaxDisp;
|
|
|
+ #endif
|
|
|
+ CBUFFER_END
|
|
|
+ sampler2D _MainTex;
|
|
|
+ sampler2D _Mask;
|
|
|
+ sampler2D _dissolve;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ struct SurfaceDescription
|
|
|
+ {
|
|
|
+ float Alpha;
|
|
|
+ float AlphaClipThreshold;
|
|
|
+ };
|
|
|
+
|
|
|
+ VertexOutput VertexFunction(VertexInput v )
|
|
|
+ {
|
|
|
+ VertexOutput o;
|
|
|
+ ZERO_INITIALIZE(VertexOutput, o);
|
|
|
+
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
|
|
|
+
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord1.xy = v.ase_texcoord.xy;
|
|
|
+ o.ase_texcoord2 = v.ase_texcoord1;
|
|
|
+
|
|
|
+ //setting value to unused interpolator channels and avoid initialization warnings
|
|
|
+ o.ase_texcoord1.zw = 0;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ float3 defaultVertexValue = v.vertex.xyz;
|
|
|
+ #else
|
|
|
+ float3 defaultVertexValue = float3(0, 0, 0);
|
|
|
+ #endif
|
|
|
+ float3 vertexValue = defaultVertexValue;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ v.vertex.xyz = vertexValue;
|
|
|
+ #else
|
|
|
+ v.vertex.xyz += vertexValue;
|
|
|
+ #endif
|
|
|
+ v.ase_normal = v.ase_normal;
|
|
|
+
|
|
|
+ float3 positionWS = TransformObjectToWorld( v.vertex.xyz );
|
|
|
+ float3 normalWS = TransformObjectToWorldNormal(v.ase_normal);
|
|
|
+
|
|
|
+ o.clipPos = TransformWorldToHClip(positionWS);
|
|
|
+ o.normalWS.xyz = normalWS;
|
|
|
+
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ #if defined(TESSELLATION_ON)
|
|
|
+ struct VertexControl
|
|
|
+ {
|
|
|
+ float4 vertex : INTERNALTESSPOS;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct TessellationFactors
|
|
|
+ {
|
|
|
+ float edge[3] : SV_TessFactor;
|
|
|
+ float inside : SV_InsideTessFactor;
|
|
|
+ };
|
|
|
+
|
|
|
+ VertexControl vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ VertexControl o;
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ o.vertex = v.vertex;
|
|
|
+ o.ase_normal = v.ase_normal;
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord = v.ase_texcoord;
|
|
|
+ o.ase_texcoord1 = v.ase_texcoord1;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ TessellationFactors TessellationFunction (InputPatch<VertexControl,3> v)
|
|
|
+ {
|
|
|
+ TessellationFactors o;
|
|
|
+ float4 tf = 1;
|
|
|
+ float tessValue = _TessValue; float tessMin = _TessMin; float tessMax = _TessMax;
|
|
|
+ float edgeLength = _TessEdgeLength; float tessMaxDisp = _TessMaxDisp;
|
|
|
+ #if defined(ASE_FIXED_TESSELLATION)
|
|
|
+ tf = FixedTess( tessValue );
|
|
|
+ #elif defined(ASE_DISTANCE_TESSELLATION)
|
|
|
+ tf = DistanceBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, tessValue, tessMin, tessMax, GetObjectToWorldMatrix(), _WorldSpaceCameraPos );
|
|
|
+ #elif defined(ASE_LENGTH_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams );
|
|
|
+ #elif defined(ASE_LENGTH_CULL_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTessCull(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, tessMaxDisp, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams, unity_CameraWorldClipPlanes );
|
|
|
+ #endif
|
|
|
+ o.edge[0] = tf.x; o.edge[1] = tf.y; o.edge[2] = tf.z; o.inside = tf.w;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ [partitioning("fractional_odd")]
|
|
|
+ [outputtopology("triangle_cw")]
|
|
|
+ [patchconstantfunc("TessellationFunction")]
|
|
|
+ [outputcontrolpoints(3)]
|
|
|
+ VertexControl HullFunction(InputPatch<VertexControl, 3> patch, uint id : SV_OutputControlPointID)
|
|
|
+ {
|
|
|
+ return patch[id];
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ VertexOutput DomainFunction(TessellationFactors factors, OutputPatch<VertexControl, 3> patch, float3 bary : SV_DomainLocation)
|
|
|
+ {
|
|
|
+ VertexInput o = (VertexInput) 0;
|
|
|
+ o.vertex = patch[0].vertex * bary.x + patch[1].vertex * bary.y + patch[2].vertex * bary.z;
|
|
|
+ o.ase_normal = patch[0].ase_normal * bary.x + patch[1].ase_normal * bary.y + patch[2].ase_normal * bary.z;
|
|
|
+ o.ase_color = patch[0].ase_color * bary.x + patch[1].ase_color * bary.y + patch[2].ase_color * bary.z;
|
|
|
+ o.ase_texcoord = patch[0].ase_texcoord * bary.x + patch[1].ase_texcoord * bary.y + patch[2].ase_texcoord * bary.z;
|
|
|
+ o.ase_texcoord1 = patch[0].ase_texcoord1 * bary.x + patch[1].ase_texcoord1 * bary.y + patch[2].ase_texcoord1 * bary.z;
|
|
|
+ #if defined(ASE_PHONG_TESSELLATION)
|
|
|
+ float3 pp[3];
|
|
|
+ for (int i = 0; i < 3; ++i)
|
|
|
+ pp[i] = o.vertex.xyz - patch[i].ase_normal * (dot(o.vertex.xyz, patch[i].ase_normal) - dot(patch[i].vertex.xyz, patch[i].ase_normal));
|
|
|
+ float phongStrength = _TessPhongStrength;
|
|
|
+ o.vertex.xyz = phongStrength * (pp[0]*bary.x + pp[1]*bary.y + pp[2]*bary.z) + (1.0f-phongStrength) * o.vertex.xyz;
|
|
|
+ #endif
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(patch[0], o);
|
|
|
+ return VertexFunction(o);
|
|
|
+ }
|
|
|
+ #else
|
|
|
+ VertexOutput vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ return VertexFunction( v );
|
|
|
+ }
|
|
|
+ #endif
|
|
|
+
|
|
|
+ half4 frag(VertexOutput IN ) : SV_TARGET
|
|
|
+ {
|
|
|
+ SurfaceDescription surfaceDescription = (SurfaceDescription)0;
|
|
|
+ float2 appendResult43 = (float2(_MainTilingU , _MainTilingV));
|
|
|
+ float2 texCoord48 = IN.ase_texcoord1.xy * appendResult43 + float2( 0,0 );
|
|
|
+ float cos51 = cos( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float sin51 = sin( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float2 rotator51 = mul( IN.ase_texcoord1.xy - float2( 0.5,0.5 ) , float2x2( cos51 , -sin51 , sin51 , cos51 )) + float2( 0.5,0.5 );
|
|
|
+ float2 appendResult46 = (float2(_MainTexOffsetU , _MainTexOffsetV));
|
|
|
+ float2 appendResult36 = (float2(_MainSpeedU , _MainSpeedV));
|
|
|
+ float2 panner35 = ( 1.0 * _Time.y * appendResult36 + texCoord48);
|
|
|
+ float2 lerpResult37 = lerp( ( texCoord48 + ( rotator51 + appendResult46 ) ) , panner35 , round( _TimeSpeedON ));
|
|
|
+ float4 tex2DNode10 = tex2D( _MainTex, lerpResult37 );
|
|
|
+ float2 appendResult93 = (float2(_MaskTilingU2 , _MaskTilingV2));
|
|
|
+ float2 texCoord97 = IN.ase_texcoord1.xy * appendResult93 + float2( 0,0 );
|
|
|
+ float2 appendResult96 = (float2(_MaskTexOffsetU2 , _MaskTexOffsetV2));
|
|
|
+ float4 tex2DNode11 = tex2D( _Mask, ( texCoord97 + appendResult96 ) );
|
|
|
+ float lerpResult57 = lerp( tex2DNode11.r , tex2DNode11.a , round( _MaskTongDao ));
|
|
|
+ float4 texCoord66 = IN.ase_texcoord2;
|
|
|
+ texCoord66.xy = IN.ase_texcoord2.xy * float2( 1,1 ) + float2( 0,0 );
|
|
|
+ float lerpResult72 = lerp( _Diss_value , texCoord66.x , _CustomDataDissolve);
|
|
|
+ float lerpResult69 = lerp( _Diss_value , texCoord66.x , round( _CustomDataDissolve ));
|
|
|
+ float2 appendResult88 = (float2(_DisTilingU1 , _DisTilingV1));
|
|
|
+ float2 texCoord87 = IN.ase_texcoord1.xy * appendResult88 + float2( 0,0 );
|
|
|
+ float2 appendResult84 = (float2(_DisTexOffsetU1 , _DisTexOffsetV1));
|
|
|
+ float smoothstepResult76 = smoothstep( lerpResult72 , ( lerpResult69 + _Soft_value ) , tex2D( _dissolve, ( texCoord87 + appendResult84 ) ).r);
|
|
|
+
|
|
|
+ surfaceDescription.Alpha = ( IN.ase_color.a * ( tex2DNode10.a * lerpResult57 * _Alpha * smoothstepResult76 ) );
|
|
|
+ surfaceDescription.AlphaClipThreshold = 0.5;
|
|
|
+
|
|
|
+ #if _ALPHATEST_ON
|
|
|
+ clip(surfaceDescription.Alpha - surfaceDescription.AlphaClipThreshold);
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #ifdef LOD_FADE_CROSSFADE
|
|
|
+ LODDitheringTransition( IN.clipPos.xyz, unity_LODFade.x );
|
|
|
+ #endif
|
|
|
+
|
|
|
+ float3 normalWS = IN.normalWS;
|
|
|
+ return half4(NormalizeNormalPerPixel(normalWS), 0.0);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ ENDHLSL
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ Pass
|
|
|
+ {
|
|
|
+
|
|
|
+ Name "DepthNormalsOnly"
|
|
|
+ Tags { "LightMode"="DepthNormalsOnly" }
|
|
|
+
|
|
|
+ ZTest LEqual
|
|
|
+ ZWrite On
|
|
|
+
|
|
|
+
|
|
|
+ HLSLPROGRAM
|
|
|
+
|
|
|
+ #pragma multi_compile_instancing
|
|
|
+ #define _RECEIVE_SHADOWS_OFF 1
|
|
|
+ #define ASE_SRP_VERSION 999999
|
|
|
+
|
|
|
+
|
|
|
+ #pragma exclude_renderers glcore gles gles3
|
|
|
+ #pragma vertex vert
|
|
|
+ #pragma fragment frag
|
|
|
+
|
|
|
+ #define ATTRIBUTES_NEED_NORMAL
|
|
|
+ #define ATTRIBUTES_NEED_TANGENT
|
|
|
+ #define ATTRIBUTES_NEED_TEXCOORD1
|
|
|
+ #define VARYINGS_NEED_NORMAL_WS
|
|
|
+ #define VARYINGS_NEED_TANGENT_WS
|
|
|
+
|
|
|
+ #define SHADERPASS SHADERPASS_DEPTHNORMALSONLY
|
|
|
+
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Texture.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Core.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Lighting.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.core/ShaderLibrary/TextureStack.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ShaderGraphFunctions.hlsl"
|
|
|
+ #include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/ShaderPass.hlsl"
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ struct VertexInput
|
|
|
+ {
|
|
|
+ float4 vertex : POSITION;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct VertexOutput
|
|
|
+ {
|
|
|
+ float4 clipPos : SV_POSITION;
|
|
|
+ float3 normalWS : TEXCOORD0;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+ float4 ase_texcoord2 : TEXCOORD2;
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ UNITY_VERTEX_OUTPUT_STEREO
|
|
|
+ };
|
|
|
+
|
|
|
+ CBUFFER_START(UnityPerMaterial)
|
|
|
+ float4 _Color;
|
|
|
+ float _MainTilingU;
|
|
|
+ float _DisTilingV1;
|
|
|
+ float _DisTilingU1;
|
|
|
+ float _Soft_value;
|
|
|
+ float _CustomDataDissolve;
|
|
|
+ float _Diss_value;
|
|
|
+ float _Alpha;
|
|
|
+ float _MaskTongDao;
|
|
|
+ float _MaskTexOffsetV2;
|
|
|
+ float _MaskTexOffsetU2;
|
|
|
+ float _MaskTilingV2;
|
|
|
+ float _MaskTilingU2;
|
|
|
+ float _TimeSpeedON;
|
|
|
+ float _MainSpeedV;
|
|
|
+ float _MainSpeedU;
|
|
|
+ float _MainTexOffsetV;
|
|
|
+ float _MainTexOffsetU;
|
|
|
+ float _MainTexRotation;
|
|
|
+ float _MainTilingV;
|
|
|
+ float _DisTexOffsetU1;
|
|
|
+ float _DisTexOffsetV1;
|
|
|
+ #ifdef TESSELLATION_ON
|
|
|
+ float _TessPhongStrength;
|
|
|
+ float _TessValue;
|
|
|
+ float _TessMin;
|
|
|
+ float _TessMax;
|
|
|
+ float _TessEdgeLength;
|
|
|
+ float _TessMaxDisp;
|
|
|
+ #endif
|
|
|
+ CBUFFER_END
|
|
|
+ sampler2D _MainTex;
|
|
|
+ sampler2D _Mask;
|
|
|
+ sampler2D _dissolve;
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ struct SurfaceDescription
|
|
|
+ {
|
|
|
+ float Alpha;
|
|
|
+ float AlphaClipThreshold;
|
|
|
+ };
|
|
|
+
|
|
|
+ VertexOutput VertexFunction(VertexInput v )
|
|
|
+ {
|
|
|
+ VertexOutput o;
|
|
|
+ ZERO_INITIALIZE(VertexOutput, o);
|
|
|
+
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO(o);
|
|
|
+
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord1.xy = v.ase_texcoord.xy;
|
|
|
+ o.ase_texcoord2 = v.ase_texcoord1;
|
|
|
+
|
|
|
+ //setting value to unused interpolator channels and avoid initialization warnings
|
|
|
+ o.ase_texcoord1.zw = 0;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ float3 defaultVertexValue = v.vertex.xyz;
|
|
|
+ #else
|
|
|
+ float3 defaultVertexValue = float3(0, 0, 0);
|
|
|
+ #endif
|
|
|
+ float3 vertexValue = defaultVertexValue;
|
|
|
+ #ifdef ASE_ABSOLUTE_VERTEX_POS
|
|
|
+ v.vertex.xyz = vertexValue;
|
|
|
+ #else
|
|
|
+ v.vertex.xyz += vertexValue;
|
|
|
+ #endif
|
|
|
+ v.ase_normal = v.ase_normal;
|
|
|
+
|
|
|
+ float3 positionWS = TransformObjectToWorld( v.vertex.xyz );
|
|
|
+ float3 normalWS = TransformObjectToWorldNormal(v.ase_normal);
|
|
|
+
|
|
|
+ o.clipPos = TransformWorldToHClip(positionWS);
|
|
|
+ o.normalWS.xyz = normalWS;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ #if defined(TESSELLATION_ON)
|
|
|
+ struct VertexControl
|
|
|
+ {
|
|
|
+ float4 vertex : INTERNALTESSPOS;
|
|
|
+ float3 ase_normal : NORMAL;
|
|
|
+ float4 ase_color : COLOR;
|
|
|
+ float4 ase_texcoord : TEXCOORD0;
|
|
|
+ float4 ase_texcoord1 : TEXCOORD1;
|
|
|
+
|
|
|
+ UNITY_VERTEX_INPUT_INSTANCE_ID
|
|
|
+ };
|
|
|
+
|
|
|
+ struct TessellationFactors
|
|
|
+ {
|
|
|
+ float edge[3] : SV_TessFactor;
|
|
|
+ float inside : SV_InsideTessFactor;
|
|
|
+ };
|
|
|
+
|
|
|
+ VertexControl vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ VertexControl o;
|
|
|
+ UNITY_SETUP_INSTANCE_ID(v);
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(v, o);
|
|
|
+ o.vertex = v.vertex;
|
|
|
+ o.ase_normal = v.ase_normal;
|
|
|
+ o.ase_color = v.ase_color;
|
|
|
+ o.ase_texcoord = v.ase_texcoord;
|
|
|
+ o.ase_texcoord1 = v.ase_texcoord1;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ TessellationFactors TessellationFunction (InputPatch<VertexControl,3> v)
|
|
|
+ {
|
|
|
+ TessellationFactors o;
|
|
|
+ float4 tf = 1;
|
|
|
+ float tessValue = _TessValue; float tessMin = _TessMin; float tessMax = _TessMax;
|
|
|
+ float edgeLength = _TessEdgeLength; float tessMaxDisp = _TessMaxDisp;
|
|
|
+ #if defined(ASE_FIXED_TESSELLATION)
|
|
|
+ tf = FixedTess( tessValue );
|
|
|
+ #elif defined(ASE_DISTANCE_TESSELLATION)
|
|
|
+ tf = DistanceBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, tessValue, tessMin, tessMax, GetObjectToWorldMatrix(), _WorldSpaceCameraPos );
|
|
|
+ #elif defined(ASE_LENGTH_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTess(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams );
|
|
|
+ #elif defined(ASE_LENGTH_CULL_TESSELLATION)
|
|
|
+ tf = EdgeLengthBasedTessCull(v[0].vertex, v[1].vertex, v[2].vertex, edgeLength, tessMaxDisp, GetObjectToWorldMatrix(), _WorldSpaceCameraPos, _ScreenParams, unity_CameraWorldClipPlanes );
|
|
|
+ #endif
|
|
|
+ o.edge[0] = tf.x; o.edge[1] = tf.y; o.edge[2] = tf.z; o.inside = tf.w;
|
|
|
+ return o;
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ [partitioning("fractional_odd")]
|
|
|
+ [outputtopology("triangle_cw")]
|
|
|
+ [patchconstantfunc("TessellationFunction")]
|
|
|
+ [outputcontrolpoints(3)]
|
|
|
+ VertexControl HullFunction(InputPatch<VertexControl, 3> patch, uint id : SV_OutputControlPointID)
|
|
|
+ {
|
|
|
+ return patch[id];
|
|
|
+ }
|
|
|
+
|
|
|
+ [domain("tri")]
|
|
|
+ VertexOutput DomainFunction(TessellationFactors factors, OutputPatch<VertexControl, 3> patch, float3 bary : SV_DomainLocation)
|
|
|
+ {
|
|
|
+ VertexInput o = (VertexInput) 0;
|
|
|
+ o.vertex = patch[0].vertex * bary.x + patch[1].vertex * bary.y + patch[2].vertex * bary.z;
|
|
|
+ o.ase_normal = patch[0].ase_normal * bary.x + patch[1].ase_normal * bary.y + patch[2].ase_normal * bary.z;
|
|
|
+ o.ase_color = patch[0].ase_color * bary.x + patch[1].ase_color * bary.y + patch[2].ase_color * bary.z;
|
|
|
+ o.ase_texcoord = patch[0].ase_texcoord * bary.x + patch[1].ase_texcoord * bary.y + patch[2].ase_texcoord * bary.z;
|
|
|
+ o.ase_texcoord1 = patch[0].ase_texcoord1 * bary.x + patch[1].ase_texcoord1 * bary.y + patch[2].ase_texcoord1 * bary.z;
|
|
|
+ #if defined(ASE_PHONG_TESSELLATION)
|
|
|
+ float3 pp[3];
|
|
|
+ for (int i = 0; i < 3; ++i)
|
|
|
+ pp[i] = o.vertex.xyz - patch[i].ase_normal * (dot(o.vertex.xyz, patch[i].ase_normal) - dot(patch[i].vertex.xyz, patch[i].ase_normal));
|
|
|
+ float phongStrength = _TessPhongStrength;
|
|
|
+ o.vertex.xyz = phongStrength * (pp[0]*bary.x + pp[1]*bary.y + pp[2]*bary.z) + (1.0f-phongStrength) * o.vertex.xyz;
|
|
|
+ #endif
|
|
|
+ UNITY_TRANSFER_INSTANCE_ID(patch[0], o);
|
|
|
+ return VertexFunction(o);
|
|
|
+ }
|
|
|
+ #else
|
|
|
+ VertexOutput vert ( VertexInput v )
|
|
|
+ {
|
|
|
+ return VertexFunction( v );
|
|
|
+ }
|
|
|
+ #endif
|
|
|
+
|
|
|
+ half4 frag(VertexOutput IN ) : SV_TARGET
|
|
|
+ {
|
|
|
+ SurfaceDescription surfaceDescription = (SurfaceDescription)0;
|
|
|
+ float2 appendResult43 = (float2(_MainTilingU , _MainTilingV));
|
|
|
+ float2 texCoord48 = IN.ase_texcoord1.xy * appendResult43 + float2( 0,0 );
|
|
|
+ float cos51 = cos( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float sin51 = sin( (0.0 + (_MainTexRotation - 0.0) * (( 2.0 * PI ) - 0.0) / (1.0 - 0.0)) );
|
|
|
+ float2 rotator51 = mul( IN.ase_texcoord1.xy - float2( 0.5,0.5 ) , float2x2( cos51 , -sin51 , sin51 , cos51 )) + float2( 0.5,0.5 );
|
|
|
+ float2 appendResult46 = (float2(_MainTexOffsetU , _MainTexOffsetV));
|
|
|
+ float2 appendResult36 = (float2(_MainSpeedU , _MainSpeedV));
|
|
|
+ float2 panner35 = ( 1.0 * _Time.y * appendResult36 + texCoord48);
|
|
|
+ float2 lerpResult37 = lerp( ( texCoord48 + ( rotator51 + appendResult46 ) ) , panner35 , round( _TimeSpeedON ));
|
|
|
+ float4 tex2DNode10 = tex2D( _MainTex, lerpResult37 );
|
|
|
+ float2 appendResult93 = (float2(_MaskTilingU2 , _MaskTilingV2));
|
|
|
+ float2 texCoord97 = IN.ase_texcoord1.xy * appendResult93 + float2( 0,0 );
|
|
|
+ float2 appendResult96 = (float2(_MaskTexOffsetU2 , _MaskTexOffsetV2));
|
|
|
+ float4 tex2DNode11 = tex2D( _Mask, ( texCoord97 + appendResult96 ) );
|
|
|
+ float lerpResult57 = lerp( tex2DNode11.r , tex2DNode11.a , round( _MaskTongDao ));
|
|
|
+ float4 texCoord66 = IN.ase_texcoord2;
|
|
|
+ texCoord66.xy = IN.ase_texcoord2.xy * float2( 1,1 ) + float2( 0,0 );
|
|
|
+ float lerpResult72 = lerp( _Diss_value , texCoord66.x , _CustomDataDissolve);
|
|
|
+ float lerpResult69 = lerp( _Diss_value , texCoord66.x , round( _CustomDataDissolve ));
|
|
|
+ float2 appendResult88 = (float2(_DisTilingU1 , _DisTilingV1));
|
|
|
+ float2 texCoord87 = IN.ase_texcoord1.xy * appendResult88 + float2( 0,0 );
|
|
|
+ float2 appendResult84 = (float2(_DisTexOffsetU1 , _DisTexOffsetV1));
|
|
|
+ float smoothstepResult76 = smoothstep( lerpResult72 , ( lerpResult69 + _Soft_value ) , tex2D( _dissolve, ( texCoord87 + appendResult84 ) ).r);
|
|
|
+
|
|
|
+ surfaceDescription.Alpha = ( IN.ase_color.a * ( tex2DNode10.a * lerpResult57 * _Alpha * smoothstepResult76 ) );
|
|
|
+ surfaceDescription.AlphaClipThreshold = 0.5;
|
|
|
+
|
|
|
+ #if _ALPHATEST_ON
|
|
|
+ clip(surfaceDescription.Alpha - surfaceDescription.AlphaClipThreshold);
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #ifdef LOD_FADE_CROSSFADE
|
|
|
+ LODDitheringTransition( IN.clipPos.xyz, unity_LODFade.x );
|
|
|
+ #endif
|
|
|
+
|
|
|
+ float3 normalWS = IN.normalWS;
|
|
|
+ return half4(NormalizeNormalPerPixel(normalWS), 0.0);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ ENDHLSL
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ CustomEditor "UnityEditor.ShaderGraphUnlitGUI"
|
|
|
+ Fallback "Hidden/InternalErrorShader"
|
|
|
+
|
|
|
+}
|
|
|
+/*ASEBEGIN
|
|
|
+Version=18935
|
|
|
+2092.8;176.8;1567.2;735;3465.966;580.996;2.512305;True;False
|
|
|
+Node;AmplifyShaderEditor.CommentaryNode;60;-2101.907,1653.676;Inherit;False;2248.408;1204.852;Comment;18;90;89;88;87;86;84;83;82;76;72;73;74;71;69;64;66;67;62;溶解;1,1,1,1;0;0
|
|
|
+Node;AmplifyShaderEditor.CommentaryNode;33;-1637.547,-535.0243;Inherit;False;1060.958;936.746;Comment;16;48;47;46;45;44;43;42;41;40;39;38;37;36;35;34;56;;1,1,1,1;0;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;52;-1522.855,-906.1328;Inherit;False;Property;_MainTexRotation;贴图旋转;3;0;Create;False;0;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.PiNode;49;-1515.103,-784.3113;Inherit;False;1;0;FLOAT;2;False;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.TFHCRemapNode;50;-1192.624,-905.7945;Inherit;True;5;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;1;False;3;FLOAT;0;False;4;FLOAT;1;False;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;90;-1830.682,1713.338;Inherit;False;Property;_DisTilingU1;DisTilingU;18;0;Create;False;0;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;89;-1831.382,1822.986;Inherit;False;Property;_DisTilingV1;DisTilingV;19;0;Create;False;0;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.TexCoordVertexDataNode;53;-1450.839,-1078.364;Inherit;False;0;2;0;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;91;-1313.914,466.3815;Inherit;False;Property;_MaskTilingU2;MaskTilingU;12;0;Create;False;0;0;0;False;0;False;0;1;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;45;-1583.234,-374.5119;Inherit;False;Property;_MainTilingV;MainTilingV;7;0;Create;False;0;0;0;False;0;False;0;-0.0777778;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;41;-1579.877,-485.0244;Inherit;False;Property;_MainTilingU;MainTilingU;6;0;Create;False;0;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;40;-1485.311,-244.3249;Inherit;False;Property;_MainTexOffsetU;MainTexOffsetU;4;0;Create;False;0;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;92;-1314.614,576.6024;Inherit;False;Property;_MaskTilingV2;MaskTilingV;13;0;Create;False;0;0;0;False;0;False;0;1;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;44;-1490.278,-151.6354;Inherit;False;Property;_MainTexOffsetV;MainTexOffsetV;5;0;Create;False;0;0;0;False;0;False;0;-0.1111111;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;34;-1344,16;Inherit;False;Property;_MainSpeedU;MainSpeedU;9;0;Create;False;0;0;0;False;0;False;0.5;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RotatorNode;51;-911.3743,-1048.95;Inherit;True;3;0;FLOAT2;0,0;False;1;FLOAT2;0.5,0.5;False;2;FLOAT;0;False;1;FLOAT2;0
|
|
|
+Node;AmplifyShaderEditor.DynamicAppendNode;88;-1637.554,1765.49;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.RangedFloatNode;83;-1737.717,1954.037;Inherit;False;Property;_DisTexOffsetU1;DisTexOffsetU;20;0;Create;False;0;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.DynamicAppendNode;93;-1120.786,519.1064;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.RangedFloatNode;82;-1741.82,2046.726;Inherit;False;Property;_DisTexOffsetV1;DisTexOffsetV;21;0;Create;False;0;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;94;-1225.052,800.3424;Inherit;False;Property;_MaskTexOffsetV2;MaskTexOffsetV;15;0;Create;False;0;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;62;-1504.672,2459.433;Inherit;False;Property;_CustomDataDissolve;粒子参数控制溶解;24;1;[Enum];Create;False;0;2;ParticCtrlDissolveOff;0;ParticCtrlDissolveOn;1;0;False;0;False;0;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.DynamicAppendNode;43;-1385.148,-432.8724;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.RangedFloatNode;95;-1220.949,708.2263;Inherit;False;Property;_MaskTexOffsetU2;MaskTexOffsetU;14;0;Create;False;0;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;42;-1328,128;Inherit;False;Property;_MainSpeedV;MainSpeedV;10;0;Create;False;0;0;0;False;0;False;0.5;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.DynamicAppendNode;46;-1278.444,-235.78;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.TextureCoordinatesNode;97;-932.8779,551.0375;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.DynamicAppendNode;96;-1014.082,716.1985;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.TextureCoordinatesNode;87;-1449.646,1797.421;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.DynamicAppendNode;84;-1530.85,1962.582;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;56;-1118.023,-189.4615;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
|
|
|
+Node;AmplifyShaderEditor.RoundOpNode;64;-1204.75,2495.136;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.DynamicAppendNode;36;-1163.072,59.59404;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.TextureCoordinatesNode;48;-1197.24,-400.9406;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;67;-1182.102,2318.551;Float;False;Property;_Diss_value;Diss_value;22;0;Create;True;0;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;38;-1263.457,286.3216;Inherit;False;Property;_TimeSpeedON;TimeSpeedON;8;0;Create;False;0;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.TextureCoordinatesNode;66;-1453.425,2222.863;Inherit;False;1;-1;4;3;2;SAMPLER2D;;False;0;FLOAT2;1,1;False;1;FLOAT2;0,0;False;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
|
|
+Node;AmplifyShaderEditor.SimpleAddOpNode;86;-1179.013,1845.063;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;58;-324.6702,882.6866;Inherit;False;Property;_MaskTongDao;MaskR或者A通道;16;0;Create;False;0;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.SimpleAddOpNode;98;-662.2444,598.6794;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
|
|
|
+Node;AmplifyShaderEditor.RoundOpNode;39;-932.0359,285.1961;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;71;-829.4059,2490.455;Float;False;Property;_Soft_value;Soft_value;23;0;Create;True;0;0;0;False;0;False;0;0;0;0;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.LerpOp;69;-997.7648,2398.791;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.PannerNode;35;-992,96;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0;False;1;FLOAT;1;False;1;FLOAT2;0
|
|
|
+Node;AmplifyShaderEditor.SimpleAddOpNode;47;-926.6071,-353.2993;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
|
|
|
+Node;AmplifyShaderEditor.SimpleAddOpNode;73;-635.4085,2258.267;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.LerpOp;72;-1012.634,2128.949;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.SamplerNode;11;-339.3046,522.6465;Inherit;True;Property;_Mask;Mask;11;0;Create;True;0;0;0;False;0;False;-1;4002bf77b3865c94aa1d5c0442aec986;66a3b6dfe8da415409e07ed72d4fcf25;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.SamplerNode;74;-959.741,1734.826;Inherit;True;Property;_dissolve;dissolve;17;0;Create;True;0;0;0;False;0;False;-1;None;None;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.RoundOpNode;59;17.62614,915.4614;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.LerpOp;37;-758.5895,-24.74466;Inherit;False;3;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;1;FLOAT2;0
|
|
|
+Node;AmplifyShaderEditor.SmoothstepOpNode;76;-297.5679,1827.801;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;1;False;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.RangedFloatNode;14;-150.9195,1114.052;Inherit;False;Property;_Alpha;Alpha;0;0;Create;True;0;0;0;False;0;False;1;1;0;1;0;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.SamplerNode;10;-383.6964,-111.231;Inherit;True;Property;_MainTex;MainTex;2;0;Create;True;0;0;0;False;0;False;-1;9673290ef4cbbaf4e8a8f5441916f69c;e19774c46bdad7047bd62d8005507442;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.LerpOp;57;17.12528,654.9515;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.VertexColorNode;13;-259.7808,279.0825;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
|
|
+Node;AmplifyShaderEditor.SimpleMultiplyOpNode;16;205.0678,556.4605;Inherit;False;4;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.ColorNode;15;-302.6226,98.92871;Inherit;False;Property;_Color;Color;1;1;[HDR];Create;True;0;0;0;False;0;False;1,1,1,1;0.990566,0.7876779,0.3308116,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
|
|
|
+Node;AmplifyShaderEditor.SimpleMultiplyOpNode;12;32.30394,59.06898;Inherit;True;3;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;COLOR;0,0,0,0;False;1;COLOR;0
|
|
|
+Node;AmplifyShaderEditor.SimpleMultiplyOpNode;99;423.0142,390.6053;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
|
|
|
+Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;6;0,0;Float;False;False;-1;2;UnityEditor.ShaderGraphUnlitGUI;0;3;New Amplify Shader;2992e84f91cbeb14eab234972e07ea9d;True;SceneSelectionPass;0;6;SceneSelectionPass;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;True;0;False;-1;False;False;False;False;False;False;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;False;False;False;False;True;3;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;True;2;True;17;d3d9;d3d11;glcore;gles;gles3;metal;vulkan;xbox360;xboxone;xboxseries;ps4;playstation;psp2;n3ds;wiiu;switch;nomrt;0;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;2;False;-1;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;1;LightMode=SceneSelectionPass;False;True;4;d3d11;glcore;gles;gles3;0;Hidden/InternalErrorShader;0;0;Standard;0;False;0
|
|
|
+Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;5;0,0;Float;False;False;-1;2;UnityEditor.ShaderGraphUnlitGUI;0;3;New Amplify Shader;2992e84f91cbeb14eab234972e07ea9d;True;Universal2D;0;5;Universal2D;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;True;0;False;-1;False;False;False;False;False;False;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;False;False;False;False;True;3;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;True;2;True;17;d3d9;d3d11;glcore;gles;gles3;metal;vulkan;xbox360;xboxone;xboxseries;ps4;playstation;psp2;n3ds;wiiu;switch;nomrt;0;False;True;1;5;False;-1;10;False;-1;1;1;False;-1;10;False;-1;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;True;True;True;True;0;False;-1;False;False;False;False;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;False;True;2;False;-1;True;3;False;-1;True;True;0;False;-1;0;False;-1;True;1;LightMode=Universal2D;False;False;0;Hidden/InternalErrorShader;0;0;Standard;0;False;0
|
|
|
+Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;9;0,0;Float;False;False;-1;2;UnityEditor.ShaderGraphUnlitGUI;0;3;New Amplify Shader;2992e84f91cbeb14eab234972e07ea9d;True;DepthNormalsOnly;0;9;DepthNormalsOnly;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;True;0;False;-1;False;False;False;False;False;False;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;False;False;False;False;True;3;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;True;2;True;17;d3d9;d3d11;glcore;gles;gles3;metal;vulkan;xbox360;xboxone;xboxseries;ps4;playstation;psp2;n3ds;wiiu;switch;nomrt;0;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;1;False;-1;True;3;False;-1;False;True;1;LightMode=DepthNormalsOnly;False;True;15;d3d9;d3d11_9x;d3d11;metal;vulkan;xbox360;xboxone;xboxseries;ps4;playstation;psp2;n3ds;wiiu;switch;nomrt;0;Hidden/InternalErrorShader;0;0;Standard;0;False;0
|
|
|
+Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;2;0,0;Float;False;False;-1;2;UnityEditor.ShaderGraphUnlitGUI;0;3;New Amplify Shader;2992e84f91cbeb14eab234972e07ea9d;True;ShadowCaster;0;2;ShadowCaster;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;True;0;False;-1;False;False;False;False;False;False;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;False;False;False;False;True;3;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;True;2;True;17;d3d9;d3d11;glcore;gles;gles3;metal;vulkan;xbox360;xboxone;xboxseries;ps4;playstation;psp2;n3ds;wiiu;switch;nomrt;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;False;False;True;False;False;False;False;0;False;-1;False;False;False;False;False;False;False;False;False;True;1;False;-1;True;3;False;-1;False;True;1;LightMode=ShadowCaster;False;False;0;Hidden/InternalErrorShader;0;0;Standard;0;False;0
|
|
|
+Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;8;0,0;Float;False;False;-1;2;UnityEditor.ShaderGraphUnlitGUI;0;3;New Amplify Shader;2992e84f91cbeb14eab234972e07ea9d;True;DepthNormals;0;8;DepthNormals;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;True;0;False;-1;False;False;False;False;False;False;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;False;False;False;False;True;3;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;True;2;True;17;d3d9;d3d11;glcore;gles;gles3;metal;vulkan;xbox360;xboxone;xboxseries;ps4;playstation;psp2;n3ds;wiiu;switch;nomrt;0;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;1;False;-1;True;3;False;-1;False;True;1;LightMode=DepthNormalsOnly;False;True;4;d3d11;glcore;gles;gles3;0;Hidden/InternalErrorShader;0;0;Standard;0;False;0
|
|
|
+Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1;508.3,-28.6;Float;False;True;-1;2;UnityEditor.ShaderGraphUnlitGUI;0;3;LT/UIAlpha;2992e84f91cbeb14eab234972e07ea9d;True;Forward;0;1;Forward;8;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;True;2;False;-1;False;False;False;False;False;False;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;False;False;False;False;True;3;RenderPipeline=UniversalPipeline;RenderType=Transparent=RenderType;Queue=Transparent=Queue=0;True;2;True;8;d3d9;d3d11;glcore;gles;gles3;metal;vulkan;nomrt;0;False;True;1;5;False;-1;10;False;-1;1;1;False;-1;10;False;-1;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;True;True;True;True;0;False;-1;False;False;False;False;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;False;True;2;False;-1;True;3;False;-1;True;True;0;False;-1;0;False;-1;True;1;LightMode=UniversalForwardOnly;False;False;0;Hidden/InternalErrorShader;0;0;Standard;22;Surface;1;637931222903383506; Blend;0;0;Two Sided;0;638469488439051413;Cast Shadows;0;637931222893889307; Use Shadow Threshold;0;0;Receive Shadows;0;637931222885901849;GPU Instancing;1;0;LOD CrossFade;0;0;Built-in Fog;0;0;DOTS Instancing;0;0;Meta Pass;0;0;Extra Pre Pass;0;0;Tessellation;0;0; Phong;0;0; Strength;0.5,False,-1;0; Type;0;0; Tess;16,False,-1;0; Min;10,False,-1;0; Max;25,False,-1;0; Edge Length;16,False,-1;0; Max Displacement;25,False,-1;0;Vertex Position,InvertActionOnDeselection;1;0;0;10;False;True;False;True;False;True;True;True;True;True;False;;False;0
|
|
|
+Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;4;0,0;Float;False;False;-1;2;UnityEditor.ShaderGraphUnlitGUI;0;3;New Amplify Shader;2992e84f91cbeb14eab234972e07ea9d;True;Meta;0;4;Meta;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;True;0;False;-1;False;False;False;False;False;False;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;False;False;False;False;True;3;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;True;2;True;17;d3d9;d3d11;glcore;gles;gles3;metal;vulkan;xbox360;xboxone;xboxseries;ps4;playstation;psp2;n3ds;wiiu;switch;nomrt;0;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;2;False;-1;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;1;LightMode=Meta;False;False;0;Hidden/InternalErrorShader;0;0;Standard;0;False;0
|
|
|
+Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;0;0,0;Float;False;False;-1;2;UnityEditor.ShaderGraphUnlitGUI;0;3;New Amplify Shader;2992e84f91cbeb14eab234972e07ea9d;True;ExtraPrePass;0;0;ExtraPrePass;5;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;True;0;False;-1;False;False;False;False;False;False;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;False;False;False;False;True;3;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;True;2;True;17;d3d9;d3d11;glcore;gles;gles3;metal;vulkan;xbox360;xboxone;xboxseries;ps4;playstation;psp2;n3ds;wiiu;switch;nomrt;0;False;True;1;1;False;-1;0;False;-1;0;1;False;-1;0;False;-1;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;True;True;True;True;True;0;False;-1;False;False;False;False;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;False;True;1;False;-1;True;3;False;-1;True;True;0;False;-1;0;False;-1;True;0;False;False;0;Hidden/InternalErrorShader;0;0;Standard;0;False;0
|
|
|
+Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;7;0,0;Float;False;False;-1;2;UnityEditor.ShaderGraphUnlitGUI;0;3;New Amplify Shader;2992e84f91cbeb14eab234972e07ea9d;True;ScenePickingPass;0;7;ScenePickingPass;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;True;0;False;-1;False;False;False;False;False;False;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;False;False;False;False;True;3;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;True;2;True;17;d3d9;d3d11;glcore;gles;gles3;metal;vulkan;xbox360;xboxone;xboxseries;ps4;playstation;psp2;n3ds;wiiu;switch;nomrt;0;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;1;LightMode=Picking;False;True;4;d3d11;glcore;gles;gles3;0;Hidden/InternalErrorShader;0;0;Standard;0;False;0
|
|
|
+Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;3;0,0;Float;False;False;-1;2;UnityEditor.ShaderGraphUnlitGUI;0;3;New Amplify Shader;2992e84f91cbeb14eab234972e07ea9d;True;DepthOnly;0;3;DepthOnly;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;True;0;False;-1;False;False;False;False;False;False;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;False;False;False;False;True;3;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;True;2;True;17;d3d9;d3d11;glcore;gles;gles3;metal;vulkan;xbox360;xboxone;xboxseries;ps4;playstation;psp2;n3ds;wiiu;switch;nomrt;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;-1;False;False;False;True;False;False;False;False;0;False;-1;False;False;False;False;False;False;False;False;False;True;1;False;-1;False;False;True;1;LightMode=DepthOnly;False;False;0;Hidden/InternalErrorShader;0;0;Standard;0;False;0
|
|
|
+WireConnection;50;0;52;0
|
|
|
+WireConnection;50;4;49;0
|
|
|
+WireConnection;51;0;53;0
|
|
|
+WireConnection;51;2;50;0
|
|
|
+WireConnection;88;0;90;0
|
|
|
+WireConnection;88;1;89;0
|
|
|
+WireConnection;93;0;91;0
|
|
|
+WireConnection;93;1;92;0
|
|
|
+WireConnection;43;0;41;0
|
|
|
+WireConnection;43;1;45;0
|
|
|
+WireConnection;46;0;40;0
|
|
|
+WireConnection;46;1;44;0
|
|
|
+WireConnection;97;0;93;0
|
|
|
+WireConnection;96;0;95;0
|
|
|
+WireConnection;96;1;94;0
|
|
|
+WireConnection;87;0;88;0
|
|
|
+WireConnection;84;0;83;0
|
|
|
+WireConnection;84;1;82;0
|
|
|
+WireConnection;56;0;51;0
|
|
|
+WireConnection;56;1;46;0
|
|
|
+WireConnection;64;0;62;0
|
|
|
+WireConnection;36;0;34;0
|
|
|
+WireConnection;36;1;42;0
|
|
|
+WireConnection;48;0;43;0
|
|
|
+WireConnection;86;0;87;0
|
|
|
+WireConnection;86;1;84;0
|
|
|
+WireConnection;98;0;97;0
|
|
|
+WireConnection;98;1;96;0
|
|
|
+WireConnection;39;0;38;0
|
|
|
+WireConnection;69;0;67;0
|
|
|
+WireConnection;69;1;66;1
|
|
|
+WireConnection;69;2;64;0
|
|
|
+WireConnection;35;0;48;0
|
|
|
+WireConnection;35;2;36;0
|
|
|
+WireConnection;47;0;48;0
|
|
|
+WireConnection;47;1;56;0
|
|
|
+WireConnection;73;0;69;0
|
|
|
+WireConnection;73;1;71;0
|
|
|
+WireConnection;72;0;67;0
|
|
|
+WireConnection;72;1;66;1
|
|
|
+WireConnection;72;2;62;0
|
|
|
+WireConnection;11;1;98;0
|
|
|
+WireConnection;74;1;86;0
|
|
|
+WireConnection;59;0;58;0
|
|
|
+WireConnection;37;0;47;0
|
|
|
+WireConnection;37;1;35;0
|
|
|
+WireConnection;37;2;39;0
|
|
|
+WireConnection;76;0;74;1
|
|
|
+WireConnection;76;1;72;0
|
|
|
+WireConnection;76;2;73;0
|
|
|
+WireConnection;10;1;37;0
|
|
|
+WireConnection;57;0;11;1
|
|
|
+WireConnection;57;1;11;4
|
|
|
+WireConnection;57;2;59;0
|
|
|
+WireConnection;16;0;10;4
|
|
|
+WireConnection;16;1;57;0
|
|
|
+WireConnection;16;2;14;0
|
|
|
+WireConnection;16;3;76;0
|
|
|
+WireConnection;12;0;10;0
|
|
|
+WireConnection;12;1;15;0
|
|
|
+WireConnection;12;2;13;0
|
|
|
+WireConnection;99;0;13;4
|
|
|
+WireConnection;99;1;16;0
|
|
|
+WireConnection;1;2;12;0
|
|
|
+WireConnection;1;3;99;0
|
|
|
+ASEEND*/
|
|
|
+//CHKSM=00A451790BE593149E74A4D14364E410B962A9C9
|