Files
2026-09-20 16:52:21 +08:00

5202 lines
240 KiB
GLSL

// Made with Amplify Shader Editor v1.9.1.5
// Available at the Unity Asset Store - http://u3d.as/y3X
Shader "CRS/Rock&Stones (Shader_Feature)"
{
Properties
{
[HideInInspector] _EmissionColor("Emission Color", Color) = (1,1,1,1)
[HideInInspector] _AlphaCutoff("Alpha Cutoff ", Range(0, 1)) = 0.5
[ASEBegin][Header(TILES)]_MossTile("Moss Tile", Float) = 0
_SnowTile("Snow Tile", Float) = 0
_SpraklesTile("Sprakles Tile", Float) = 2
[Header(DETAILS)]_Roughness("Roughness", Range( 0 , 1)) = 0
_VertexWetness("Vertex Wetness", Range( 0 , 0.7)) = 0.7
_EdgeColor("Edge Color", Color) = (0.25,0.178,0.093,0)
_EdgeValue("Edge Value", Range( 0 , 2)) = 0
_MossDirtColor("Moss/Dirt Color", Color) = (0.01715163,0.254717,0.006007475,0)
_MossDirtValue("Moss/Dirt Value", Range( 0 , 10)) = 0
_AO("AO", Range( 0 , 1)) = 1
_AOMoss("AO Moss", Range( 0 , 2)) = 0
[Header(MUD)]_MudCoverageAmount("Mud Coverage Amount", Range( -1 , 1)) = 0.2
_MudCoverageFalloff("Mud Coverage Falloff", Range( 0.01 , 2)) = 0.5
_MudCoverageIntensity("Mud Coverage Intensity", Range( 0 , 2)) = 2
[Header (MOSS)][Toggle(_MOSSSTATICSWITCH_ON)] _MossStaticSwitch("Moss Static Switch", Float) = 1
_MossRoughness("Moss Roughness", Range( 0 , 1)) = 0.5
_MossCoverageAmount("Moss Coverage Amount", Range( -1 , 1)) = 0.3058824
_MossCoverageFalloff("Moss Coverage Falloff", Range( 0.01 , 2)) = 0.5
[Header (SNOW)][Toggle(_SNOWSPARKLESRIMCOLORSTATICSWITCH_ON)] _SnowSparklesRimColorStaticSwitch("Snow Sparkles RimColor Static Switch", Float) = 0
_SNOWCoverageAmount("SNOW Coverage Amount", Range( -1 , 1)) = 0
_SNOWCoverageFalloff("SNOW Coverage Falloff", Range( 0.01 , 2)) = 0.5
_SnowRoughness("Snow Roughness", Range( 0 , 1)) = 0
_MoreSnow("More Snow", Range( 0 , 1)) = 0.1583755
[Header(SPARKLES)]_SparklesIntensity("Sparkles Intensity", Range( 0 , 2)) = 0.34
_SparkleScale("Sparkle Scale", Float) = 20
_SparkleScale2("Sparkle Scale2", Range( 0 , 10)) = 0.23
_SparkleCutoff("Sparkle Cutoff", Range( 0 , 10)) = 0.0015
[Header(RIM COLOR)]_RimColor3("Rim Color", Color) = (0.5,0.5,0.5,1)
_RimPower("Rim Power", Range( 0 , 20)) = 0.5
[Header (RAIN)][Toggle(_RAINRIPPLESSTATICSWITCH_ON)] _RainRipplesStaticSwitch("Rain Ripples Static Switch", Float) = 0
_RainIntensity("Rain Intensity", Range( 0 , 1)) = 0
_RainOnTop("RainOnTop", Range( 0 , 0.3)) = 0.8
_RainBaseColor("Rain BaseColor", Range( 0 , 1)) = 0.1
_Distortion("Distortion", Float) = 0.1
_FlowSpeed("Flow Speed", Float) = 1
_RainScale("Rain Scale", Vector) = (1,1,0,0)
[Header(RIPPLES)]_RipplesBaseColor("Ripples BaseColor", Range( 0 , 1)) = 0.1
_RIpplesTile("RIpples Tile", Float) = 5
_GradientTile("Gradient Tile", Float) = 0
[Header(COLORS)]_BaseColor("Base Color", Color) = (1,1,1,0)
_MossColor("Moss Color", Color) = (0.2321422,0.754717,0.1886792,0)
_SnowColor("Snow Color", Color) = (1,1,1,0)
_MudColor("Mud Color", Color) = (0.2862745,0.1803922,0.04313726,0)
_MudWetColor("Mud Wet Color", Color) = (0.4039216,0.2509804,0.04313726,0)
_BaseNormal("Base Normal", 2D) = "bump" {}
_MossSnowNormal("Moss/Snow Normal", 2D) = "bump" {}
_DetailMask1("Detail Mask1", 2D) = "white" {}
[ASEEnd]_DetailMask2("Detail Mask2", 2D) = "white" {}
[HideInInspector] _texcoord( "", 2D ) = "white" {}
//_TransmissionShadow( "Transmission Shadow", Range( 0, 1 ) ) = 0.5
//_TransStrength( "Trans Strength", Range( 0, 50 ) ) = 1
//_TransNormal( "Trans Normal Distortion", Range( 0, 1 ) ) = 0.5
//_TransScattering( "Trans Scattering", Range( 1, 50 ) ) = 2
//_TransDirect( "Trans Direct", Range( 0, 1 ) ) = 0.9
//_TransAmbient( "Trans Ambient", Range( 0, 1 ) ) = 0.1
//_TransShadow( "Trans Shadow", Range( 0, 1 ) ) = 0.5
//_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
[HideInInspector][ToggleOff] _SpecularHighlights("Specular Highlights", Float) = 1.0
[HideInInspector][ToggleOff] _EnvironmentReflections("Environment Reflections", Float) = 1.0
[HideInInspector][ToggleOff] _ReceiveShadows("Receive Shadows", Float) = 1.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) = "" {}
}
SubShader
{
LOD 0
Tags { "RenderPipeline"="UniversalPipeline" "RenderType"="Opaque" "Queue"="Geometry" "UniversalMaterialType"="Lit" }
Cull Back
ZWrite On
ZTest LEqual
Offset 0 , 0
AlphaToMask Off
HLSLINCLUDE
#pragma target 3.5
#pragma prefer_hlslcc gles
// ensure rendering platforms toggle list is visible
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl"
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Filtering.hlsl"
#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"="UniversalForward" }
Blend One Zero, One Zero
ZWrite On
ZTest LEqual
Offset 0 , 0
ColorMask RGBA
HLSLPROGRAM
#define _NORMAL_DROPOFF_TS 1
#pragma multi_compile_instancing
#pragma instancing_options renderinglayer
#pragma multi_compile_fragment _ LOD_FADE_CROSSFADE
#pragma multi_compile_fog
#define ASE_FOG 1
#define _EMISSION
#define _NORMALMAP 1
#define ASE_SRP_VERSION 120110
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE _MAIN_LIGHT_SHADOWS_SCREEN
#pragma multi_compile _ _ADDITIONAL_LIGHTS_VERTEX _ADDITIONAL_LIGHTS
#pragma multi_compile_fragment _ _ADDITIONAL_LIGHT_SHADOWS
#pragma multi_compile_fragment _ _REFLECTION_PROBE_BLENDING
#pragma multi_compile_fragment _ _REFLECTION_PROBE_BOX_PROJECTION
#pragma multi_compile_fragment _ _SHADOWS_SOFT
#pragma multi_compile_fragment _ _SCREEN_SPACE_OCCLUSION
#pragma multi_compile_fragment _ _DBUFFER_MRT1 _DBUFFER_MRT2 _DBUFFER_MRT3
#pragma multi_compile_fragment _ _LIGHT_LAYERS
#pragma multi_compile_fragment _ _LIGHT_COOKIES
#pragma multi_compile _ _CLUSTERED_RENDERING
#pragma shader_feature_local _RECEIVE_SHADOWS_OFF
#pragma shader_feature_local_fragment _SPECULARHIGHLIGHTS_OFF
#pragma shader_feature_local_fragment _ENVIRONMENTREFLECTIONS_OFF
#pragma multi_compile _ LIGHTMAP_SHADOW_MIXING
#pragma multi_compile _ SHADOWS_SHADOWMASK
#pragma multi_compile _ DIRLIGHTMAP_COMBINED
#pragma multi_compile _ LIGHTMAP_ON
#pragma multi_compile _ DYNAMICLIGHTMAP_ON
#pragma multi_compile_fragment _ DEBUG_DISPLAY
#pragma vertex vert
#pragma fragment frag
#define SHADERPASS SHADERPASS_FORWARD
#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.universal/ShaderLibrary/Input.hlsl"
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/TextureStack.hlsl"
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Shadows.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"
#if defined(UNITY_INSTANCING_ENABLED) && defined(_TERRAIN_INSTANCED_PERPIXEL_NORMAL)
#define ENABLE_TERRAIN_PERPIXEL_NORMAL
#endif
#define ASE_NEEDS_FRAG_WORLD_NORMAL
#define ASE_NEEDS_FRAG_COLOR
#define ASE_NEEDS_FRAG_WORLD_TANGENT
#define ASE_NEEDS_FRAG_WORLD_BITANGENT
#define ASE_NEEDS_FRAG_SCREEN_POSITION
#define ASE_NEEDS_FRAG_WORLD_POSITION
#define ASE_NEEDS_FRAG_WORLD_VIEW_DIR
#pragma shader_feature_local _RAINRIPPLESSTATICSWITCH_ON
#pragma shader_feature_local _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
#pragma shader_feature_local _MOSSSTATICSWITCH_ON
struct VertexInput
{
float4 vertex : POSITION;
float3 ase_normal : NORMAL;
float4 ase_tangent : TANGENT;
float4 texcoord : TEXCOORD0;
float4 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
float4 ase_color : COLOR;
UNITY_VERTEX_INPUT_INSTANCE_ID
};
struct VertexOutput
{
float4 clipPos : SV_POSITION;
float4 lightmapUVOrVertexSH : TEXCOORD0;
half4 fogFactorAndVertexLight : TEXCOORD1;
#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)
float4 shadowCoord : TEXCOORD2;
#endif
float4 tSpace0 : TEXCOORD3;
float4 tSpace1 : TEXCOORD4;
float4 tSpace2 : TEXCOORD5;
#if defined(ASE_NEEDS_FRAG_SCREEN_POSITION)
float4 screenPos : TEXCOORD6;
#endif
#if defined(DYNAMICLIGHTMAP_ON)
float2 dynamicLightmapUV : TEXCOORD7;
#endif
float4 ase_texcoord8 : TEXCOORD8;
float4 ase_color : COLOR;
float4 ase_texcoord9 : TEXCOORD9;
UNITY_VERTEX_INPUT_INSTANCE_ID
UNITY_VERTEX_OUTPUT_STEREO
};
CBUFFER_START(UnityPerMaterial)
float4 _EdgeColor;
float4 _BaseColor;
float4 _DetailMask1_ST;
float4 _MossDirtColor;
float4 _MossColor;
float4 _MudColor;
float4 _RimColor3;
float4 _SnowColor;
float4 _BaseNormal_ST;
float4 _MudWetColor;
float2 _RainScale;
float _RainIntensity;
float _RipplesBaseColor;
float _FlowSpeed;
float _Distortion;
float _RainOnTop;
float _SnowTile;
float _RIpplesTile;
float _MoreSnow;
float _RimPower;
float _Roughness;
float _MossRoughness;
float _SnowRoughness;
float _RainBaseColor;
float _GradientTile;
float _SparkleScale;
float _SNOWCoverageAmount;
float _EdgeValue;
float _MossDirtValue;
float _MossTile;
float _AOMoss;
float _MudCoverageAmount;
float _MudCoverageFalloff;
float _SNOWCoverageFalloff;
float _MudCoverageIntensity;
float _MossCoverageFalloff;
float _SparkleCutoff;
float _SparkleScale2;
float _SpraklesTile;
float _VertexWetness;
float _SparklesIntensity;
float _MossCoverageAmount;
float _AO;
#ifdef ASE_TRANSMISSION
float _TransmissionShadow;
#endif
#ifdef ASE_TRANSLUCENCY
float _TransStrength;
float _TransNormal;
float _TransScattering;
float _TransDirect;
float _TransAmbient;
float _TransShadow;
#endif
#ifdef ASE_TESSELLATION
float _TessPhongStrength;
float _TessValue;
float _TessMin;
float _TessMax;
float _TessEdgeLength;
float _TessMaxDisp;
#endif
CBUFFER_END
// Property used by ScenePickingPass
#ifdef SCENEPICKINGPASS
float4 _SelectionID;
#endif
// Properties used by SceneSelectionPass
#ifdef SCENESELECTIONPASS
int _ObjectId;
int _PassValue;
#endif
sampler2D _DetailMask1;
sampler2D _DetailMask2;
sampler2D _BaseNormal;
sampler2D _MossSnowNormal;
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/Varyings.hlsl"
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/PBRForwardPass.hlsl"
//#ifdef HAVE_VFX_MODIFICATION
//#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/VisualEffectVertex.hlsl"
//#endif
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_texcoord8.xy = v.texcoord.xy;
o.ase_color = v.ase_color;
o.ase_texcoord9 = v.vertex;
//setting value to unused interpolator channels and avoid initialization warnings
o.ase_texcoord8.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 positionVS = TransformWorldToView( positionWS );
float4 positionCS = TransformWorldToHClip( positionWS );
VertexNormalInputs normalInput = GetVertexNormalInputs( v.ase_normal, v.ase_tangent );
o.tSpace0 = float4( normalInput.normalWS, positionWS.x);
o.tSpace1 = float4( normalInput.tangentWS, positionWS.y);
o.tSpace2 = float4( normalInput.bitangentWS, positionWS.z);
#if defined(LIGHTMAP_ON)
OUTPUT_LIGHTMAP_UV( v.texcoord1, unity_LightmapST, o.lightmapUVOrVertexSH.xy );
#endif
#if !defined(LIGHTMAP_ON)
OUTPUT_SH( normalInput.normalWS.xyz, o.lightmapUVOrVertexSH.xyz );
#endif
#if defined(DYNAMICLIGHTMAP_ON)
o.dynamicLightmapUV.xy = v.texcoord2.xy * unity_DynamicLightmapST.xy + unity_DynamicLightmapST.zw;
#endif
#if defined(ENABLE_TERRAIN_PERPIXEL_NORMAL)
o.lightmapUVOrVertexSH.zw = v.texcoord;
o.lightmapUVOrVertexSH.xy = v.texcoord * unity_LightmapST.xy + unity_LightmapST.zw;
#endif
half3 vertexLight = VertexLighting( positionWS, normalInput.normalWS );
#ifdef ASE_FOG
half fogFactor = ComputeFogFactor( positionCS.z );
#else
half fogFactor = 0;
#endif
o.fogFactorAndVertexLight = half4(fogFactor, vertexLight);
#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)
VertexPositionInputs vertexInput = (VertexPositionInputs)0;
vertexInput.positionWS = positionWS;
vertexInput.positionCS = positionCS;
o.shadowCoord = GetShadowCoord( vertexInput );
#endif
o.clipPos = positionCS;
#if defined(ASE_NEEDS_FRAG_SCREEN_POSITION)
o.screenPos = ComputeScreenPos(positionCS);
#endif
return o;
}
#if defined(ASE_TESSELLATION)
struct VertexControl
{
float4 vertex : INTERNALTESSPOS;
float3 ase_normal : NORMAL;
float4 ase_tangent : TANGENT;
float4 texcoord : TEXCOORD0;
float4 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
float4 ase_color : COLOR;
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_tangent = v.ase_tangent;
o.texcoord = v.texcoord;
o.texcoord1 = v.texcoord1;
o.texcoord2 = v.texcoord2;
o.ase_color = v.ase_color;
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_tangent = patch[0].ase_tangent * bary.x + patch[1].ase_tangent * bary.y + patch[2].ase_tangent * bary.z;
o.texcoord = patch[0].texcoord * bary.x + patch[1].texcoord * bary.y + patch[2].texcoord * bary.z;
o.texcoord1 = patch[0].texcoord1 * bary.x + patch[1].texcoord1 * bary.y + patch[2].texcoord1 * bary.z;
o.texcoord2 = patch[0].texcoord2 * bary.x + patch[1].texcoord2 * bary.y + patch[2].texcoord2 * bary.z;
o.ase_color = patch[0].ase_color * bary.x + patch[1].ase_color * bary.y + patch[2].ase_color * 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
#if defined(ASE_EARLY_Z_DEPTH_OPTIMIZE)
#define ASE_SV_DEPTH SV_DepthLessEqual
#else
#define ASE_SV_DEPTH SV_Depth
#endif
half4 frag ( VertexOutput IN
#ifdef ASE_DEPTH_WRITE_ON
,out float outputDepth : ASE_SV_DEPTH
#endif
) : SV_Target
{
UNITY_SETUP_INSTANCE_ID(IN);
UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(IN);
#ifdef LOD_FADE_CROSSFADE
LODDitheringTransition( IN.clipPos.xyz, unity_LODFade.x );
#endif
#if defined(ENABLE_TERRAIN_PERPIXEL_NORMAL)
float2 sampleCoords = (IN.lightmapUVOrVertexSH.zw / _TerrainHeightmapRecipSize.zw + 0.5f) * _TerrainHeightmapRecipSize.xy;
float3 WorldNormal = TransformObjectToWorldNormal(normalize(SAMPLE_TEXTURE2D(_TerrainNormalmapTexture, sampler_TerrainNormalmapTexture, sampleCoords).rgb * 2 - 1));
float3 WorldTangent = -cross(GetObjectToWorldMatrix()._13_23_33, WorldNormal);
float3 WorldBiTangent = cross(WorldNormal, -WorldTangent);
#else
float3 WorldNormal = normalize( IN.tSpace0.xyz );
float3 WorldTangent = IN.tSpace1.xyz;
float3 WorldBiTangent = IN.tSpace2.xyz;
#endif
float3 WorldPosition = float3(IN.tSpace0.w,IN.tSpace1.w,IN.tSpace2.w);
float3 WorldViewDirection = _WorldSpaceCameraPos.xyz - WorldPosition;
float4 ShadowCoords = float4( 0, 0, 0, 0 );
#if defined(ASE_NEEDS_FRAG_SCREEN_POSITION)
float4 ScreenPos = IN.screenPos;
#endif
float2 NormalizedScreenSpaceUV = GetNormalizedScreenSpaceUV(IN.clipPos);
#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)
ShadowCoords = IN.shadowCoord;
#elif defined(MAIN_LIGHT_CALCULATE_SHADOWS)
ShadowCoords = TransformWorldToShadowCoord( WorldPosition );
#endif
WorldViewDirection = SafeNormalize( WorldViewDirection );
float2 uv_DetailMask1 = IN.ase_texcoord8.xy * _DetailMask1_ST.xy + _DetailMask1_ST.zw;
float4 tex2DNode210 = tex2D( _DetailMask1, uv_DetailMask1 );
float temp_output_497_0 = ( 1.0 - tex2DNode210.b );
float2 temp_cast_0 = (_MossTile).xx;
float2 texCoord276 = IN.ase_texcoord8.xy * temp_cast_0 + float2( 0,0 );
float2 TopTiling_Moss279 = texCoord276;
float4 tex2DNode1860 = tex2D( _DetailMask2, TopTiling_Moss279 );
float4 temp_output_675_0 = ( _MossColor * tex2DNode1860.b );
float4 lerpResult1273 = lerp( ( ( ( _EdgeColor * _BaseColor ) + ( _EdgeColor * tex2DNode210.g * _EdgeValue ) ) + ( temp_output_497_0 * _MossDirtValue * _MossDirtColor ) ) , temp_output_675_0 , ( _AOMoss * temp_output_497_0 ));
float temp_output_1408_0 = pow( saturate( ( -WorldNormal.y + _MudCoverageAmount ) ) , _MudCoverageFalloff );
float4 lerpResult1400 = lerp( lerpResult1273 , ( _MudColor * temp_output_1408_0 ) , saturate( ( temp_output_1408_0 * _MudCoverageIntensity ) ));
float2 uv_BaseNormal = IN.ase_texcoord8.xy * _BaseNormal_ST.xy + _BaseNormal_ST.zw;
float3 tex2DNode218 = UnpackNormalScale( tex2D( _BaseNormal, uv_BaseNormal ), 1.0f );
float3 break1517 = tex2DNode218;
float SplitX1516 = break1517.x;
float SplitY1515 = break1517.y;
float lerpResult1511 = lerp( ( ( SplitX1516 + ( SplitY1515 + IN.ase_color.g ) ) * ( IN.ase_color.g * 5.0 ) ) , IN.ase_color.g , IN.ase_color.g);
float GColors1509 = saturate( lerpResult1511 );
float4 lerpResult1521 = lerp( lerpResult1400 , _MudColor , GColors1509);
float4 lerpResult1845 = lerp( ( 0.4 * lerpResult1521 ) , _MudWetColor , IN.ase_color.g);
float4 lerpResult1837 = lerp( lerpResult1521 , lerpResult1845 , IN.ase_color.b);
float4 BaseColorFirstPass1404 = lerpResult1837;
float3 BaseNormal508 = tex2DNode218;
float3 tanToWorld0 = float3( WorldTangent.x, WorldBiTangent.x, WorldNormal.x );
float3 tanToWorld1 = float3( WorldTangent.y, WorldBiTangent.y, WorldNormal.y );
float3 tanToWorld2 = float3( WorldTangent.z, WorldBiTangent.z, WorldNormal.z );
float3 tanNormal302 = BaseNormal508;
float3 worldNormal302 = float3(dot(tanToWorld0,tanNormal302), dot(tanToWorld1,tanNormal302), dot(tanToWorld2,tanNormal302));
float3 PNorm303 = worldNormal302;
float3 temp_cast_1 = (_MossCoverageFalloff).xxx;
float TopAlbedoMask_MOSS317 = saturate( ( pow( saturate( ( PNorm303 + _MossCoverageAmount ) ) , temp_cast_1 ).y * 1.5 ) );
float4 lerpResult321 = lerp( BaseColorFirstPass1404 , temp_output_675_0 , TopAlbedoMask_MOSS317);
float lerpResult1696 = lerp( ( ( SplitX1516 + ( SplitY1515 + IN.ase_color.r ) ) * ( IN.ase_color.r * 5.0 ) ) , IN.ase_color.r , IN.ase_color.r);
float RColors1698 = saturate( lerpResult1696 );
float4 lerpResult1481 = lerp( lerpResult321 , BaseColorFirstPass1404 , RColors1698);
#ifdef _MOSSSTATICSWITCH_ON
float4 staticSwitch1264 = lerpResult1481;
#else
float4 staticSwitch1264 = BaseColorFirstPass1404;
#endif
float2 _Vector0 = float2(20,25);
float4 ase_screenPosNorm = ScreenPos / ScreenPos.w;
ase_screenPosNorm.z = ( UNITY_NEAR_CLIP_VALUE >= 0 ) ? ase_screenPosNorm.z : ase_screenPosNorm.z * 0.5 + 0.5;
float4 lerpResult1356 = lerp( ( float4( _Vector0, 0.0 , 0.0 ) * ase_screenPosNorm ) , float4( ( float3( _Vector0 , 0.0 ) * WorldPosition ) , 0.0 ) , 0.8);
float4 tex2DNode1147 = tex2D( _DetailMask2, ( lerpResult1356 * _SparkleScale2 ).xy );
float2 temp_cast_6 = (_SpraklesTile).xx;
float2 texCoord1143 = IN.ase_texcoord8.xy * temp_cast_6 + float2( 0,0 );
float4 tex2DNode1146 = tex2D( _DetailMask2, ( texCoord1143 * _SparkleScale ) );
float Sparkles1153 = ( step( _SparkleCutoff , ( tex2DNode1147.a * tex2DNode1146.a ) ) * _SparklesIntensity );
float3 temp_cast_7 = (_SNOWCoverageFalloff).xxx;
float TopAlbedoMask_SNOW1103 = pow( saturate( ( PNorm303 + _SNOWCoverageAmount ) ) , temp_cast_7 ).y;
float4 lerpResult1083 = lerp( staticSwitch1264 , ( ( _SnowColor * 0.8 ) + Sparkles1153 ) , TopAlbedoMask_SNOW1103);
#ifdef _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
float4 staticSwitch1259 = lerpResult1083;
#else
float4 staticSwitch1259 = staticSwitch1264;
#endif
float4 BASE_M1322 = staticSwitch1259;
float2 temp_cast_8 = (_GradientTile).xx;
float2 texCoord767 = IN.ase_texcoord8.xy * temp_cast_8 + float2( 0,0 );
float2 temp_cast_9 = (_RIpplesTile).xx;
float2 texCoord765 = IN.ase_texcoord8.xy * temp_cast_9 + float2( 0,0 );
float4 tex2DNode960 = tex2D( _DetailMask2, texCoord765 );
float2 temp_cast_10 = (tex2DNode960.g).xx;
float2 panner766 = ( 1.0 * _Time.y * float2( 0.4,0.4 ) + temp_cast_10);
float temp_output_804_0 = saturate( ( ( tex2D( _DetailMask2, ( texCoord767 + panner766 ) ).r * tex2DNode960.g ) * 10.0 ) );
float lerpResult1010 = lerp( ( temp_output_804_0 * 5.0 ) , ( temp_output_804_0 * _RainIntensity ) , _RainIntensity);
float Ripples777 = lerpResult1010;
float temp_output_836_0 = ( _TimeParameters.x * _FlowSpeed );
float4 transform842 = mul(GetObjectToWorldMatrix(),float4( IN.ase_texcoord9.xyz , 0.0 ));
float2 panner844 = ( temp_output_836_0 * float2( 0,0.1 ) + ( (transform842).zy * _RainScale ));
float3 Dis904 = ( BaseNormal508 * _Distortion );
float3 temp_cast_14 = (0.28).xxx;
float3 break1627 = ( abs( WorldNormal ) - temp_cast_14 );
float X1628 = break1627.x;
float lerpResult1646 = lerp( 0.0 , tex2D( _DetailMask2, ( float3( panner844 , 0.0 ) + Dis904 ).xy ).r , X1628);
float2 panner1569 = ( temp_output_836_0 * float2( 0,0.1 ) + ( _RainScale * (transform842).xy ));
float4 tex2DNode1614 = tex2D( _DetailMask2, ( Dis904 + float3( panner1569 , 0.0 ) ).xy );
float Z1629 = break1627.z;
float lerpResult1648 = lerp( 0.0 , tex2DNode1614.r , Z1629);
float Y1676 = break1627.y;
float lerpResult1675 = lerp( 0.0 , tex2DNode1614.r , ( Y1676 * _RainOnTop ));
float SteaksRouighness983 = saturate( ( lerpResult1646 + lerpResult1648 + lerpResult1675 ) );
float4 lerpResult1710 = lerp( ( BASE_M1322 + ( ( ( Ripples777 * _RipplesBaseColor ) + ( SteaksRouighness983 * _RainBaseColor ) ) * _RainIntensity ) ) , BASE_M1322 , ( 1.0 - IN.ase_color.a ));
#ifdef _RAINRIPPLESSTATICSWITCH_ON
float4 staticSwitch994 = lerpResult1710;
#else
float4 staticSwitch994 = BASE_M1322;
#endif
float4 Albedo991 = staticSwitch994;
float3 MossNorm1783 = BlendNormal( UnpackNormalScale( tex2D( _MossSnowNormal, TopTiling_Moss279 ), 1.0f ) , BaseNormal508 );
float3 lerpResult1781 = lerp( BaseNormal508 , MossNorm1783 , TopAlbedoMask_MOSS317);
float3 lerpResult1789 = lerp( lerpResult1781 , BaseNormal508 , RColors1698);
#ifdef _MOSSSTATICSWITCH_ON
float3 staticSwitch1298 = lerpResult1789;
#else
float3 staticSwitch1298 = BaseNormal508;
#endif
float2 temp_cast_18 = (_SnowTile).xx;
float2 texCoord1270 = IN.ase_texcoord8.xy * temp_cast_18 + float2( 0,0 );
float2 TopTiling_Snow1272 = texCoord1270;
float3 tex2DNode1183 = UnpackNormalScale( tex2D( _MossSnowNormal, TopTiling_Snow1272 ), 1.0f );
float3 lerpResult1187 = lerp( BlendNormal( tex2DNode1183 , BaseNormal508 ) , tex2DNode1183 , ( TopAlbedoMask_SNOW1103 * _MoreSnow ));
float3 SnowNorm1794 = lerpResult1187;
float3 lerpResult1304 = lerp( staticSwitch1298 , SnowNorm1794 , TopAlbedoMask_SNOW1103);
#ifdef _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
float3 staticSwitch1300 = lerpResult1304;
#else
float3 staticSwitch1300 = staticSwitch1298;
#endif
float3 FinalNormal1364 = staticSwitch1300;
float fresnelNdotV1031 = dot( WorldNormal, WorldViewDirection );
float fresnelNode1031 = ( 0.0 + 2.24 * pow( 1.0 - fresnelNdotV1031, _RimPower ) );
float4 lerpResult1035 = lerp( float4( 0,0,0,0 ) , ( _RimColor3 * fresnelNode1031 ) , TopAlbedoMask_SNOW1103);
#ifdef _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
float4 staticSwitch1036 = lerpResult1035;
#else
float4 staticSwitch1036 = float4( 0,0,0,0 );
#endif
float4 Emission1357 = staticSwitch1036;
float temp_output_507_0 = ( tex2DNode210.r * _Roughness );
float mg1849 = tex2DNode1860.b;
float lerpResult1738 = lerp( temp_output_507_0 , ( mg1849 * _MossRoughness ) , TopAlbedoMask_MOSS317);
float lerpResult1748 = lerp( lerpResult1738 , temp_output_507_0 , RColors1698);
#ifdef _MOSSSTATICSWITCH_ON
float staticSwitch1761 = lerpResult1748;
#else
float staticSwitch1761 = temp_output_507_0;
#endif
float lerpResult1767 = lerp( staticSwitch1761 , _SnowRoughness , TopAlbedoMask_SNOW1103);
#ifdef _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
float staticSwitch1765 = lerpResult1767;
#else
float staticSwitch1765 = staticSwitch1761;
#endif
float lerpResult1682 = lerp( staticSwitch1765 , _VertexWetness , IN.ase_color.b);
float temp_output_1755_0 = saturate( lerpResult1682 );
float lerpResult951 = lerp( ( ( ( 0.4 + SteaksRouighness983 ) + Ripples777 ) * _RainIntensity ) , temp_output_1755_0 , ( 1.0 - IN.ase_color.a ));
float lerpResult1867 = lerp( temp_output_1755_0 , lerpResult951 , _RainIntensity);
#ifdef _RAINRIPPLESSTATICSWITCH_ON
float staticSwitch941 = lerpResult1867;
#else
float staticSwitch941 = temp_output_1755_0;
#endif
float RainRipplesRoughnessBaseColorOpactiy988 = staticSwitch941;
float lerpResult1862 = lerp( tex2DNode210.b , 1.0 , ( 1.0 - _AO ));
float FinalAO1360 = lerpResult1862;
float3 BaseColor = Albedo991.rgb;
float3 Normal = FinalNormal1364;
float3 Emission = Emission1357.rgb;
float3 Specular = 0.5;
float Metallic = 0;
float Smoothness = RainRipplesRoughnessBaseColorOpactiy988;
float Occlusion = FinalAO1360;
float Alpha = 1;
float AlphaClipThreshold = 0.5;
float AlphaClipThresholdShadow = 0.5;
float3 BakedGI = 0;
float3 RefractionColor = 1;
float RefractionIndex = 1;
float3 Transmission = 1;
float3 Translucency = 1;
#ifdef ASE_DEPTH_WRITE_ON
float DepthValue = 0;
#endif
#ifdef _CLEARCOAT
float CoatMask = 0;
float CoatSmoothness = 0;
#endif
#ifdef _ALPHATEST_ON
clip(Alpha - AlphaClipThreshold);
#endif
InputData inputData = (InputData)0;
inputData.positionWS = WorldPosition;
inputData.viewDirectionWS = WorldViewDirection;
#ifdef _NORMALMAP
#if _NORMAL_DROPOFF_TS
inputData.normalWS = TransformTangentToWorld(Normal, half3x3(WorldTangent, WorldBiTangent, WorldNormal));
#elif _NORMAL_DROPOFF_OS
inputData.normalWS = TransformObjectToWorldNormal(Normal);
#elif _NORMAL_DROPOFF_WS
inputData.normalWS = Normal;
#endif
inputData.normalWS = NormalizeNormalPerPixel(inputData.normalWS);
#else
inputData.normalWS = WorldNormal;
#endif
#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)
inputData.shadowCoord = ShadowCoords;
#elif defined(MAIN_LIGHT_CALCULATE_SHADOWS)
inputData.shadowCoord = TransformWorldToShadowCoord(inputData.positionWS);
#else
inputData.shadowCoord = float4(0, 0, 0, 0);
#endif
#ifdef ASE_FOG
inputData.fogCoord = IN.fogFactorAndVertexLight.x;
#endif
inputData.vertexLighting = IN.fogFactorAndVertexLight.yzw;
#if defined(ENABLE_TERRAIN_PERPIXEL_NORMAL)
float3 SH = SampleSH(inputData.normalWS.xyz);
#else
float3 SH = IN.lightmapUVOrVertexSH.xyz;
#endif
#if defined(DYNAMICLIGHTMAP_ON)
inputData.bakedGI = SAMPLE_GI(IN.lightmapUVOrVertexSH.xy, IN.dynamicLightmapUV.xy, SH, inputData.normalWS);
#else
inputData.bakedGI = SAMPLE_GI(IN.lightmapUVOrVertexSH.xy, SH, inputData.normalWS);
#endif
#ifdef ASE_BAKEDGI
inputData.bakedGI = BakedGI;
#endif
inputData.normalizedScreenSpaceUV = NormalizedScreenSpaceUV;
inputData.shadowMask = SAMPLE_SHADOWMASK(IN.lightmapUVOrVertexSH.xy);
#if defined(DEBUG_DISPLAY)
#if defined(DYNAMICLIGHTMAP_ON)
inputData.dynamicLightmapUV = IN.dynamicLightmapUV.xy;
#endif
#if defined(LIGHTMAP_ON)
inputData.staticLightmapUV = IN.lightmapUVOrVertexSH.xy;
#else
inputData.vertexSH = SH;
#endif
#endif
SurfaceData surfaceData;
surfaceData.albedo = BaseColor;
surfaceData.metallic = saturate(Metallic);
surfaceData.specular = Specular;
surfaceData.smoothness = saturate(Smoothness),
surfaceData.occlusion = Occlusion,
surfaceData.emission = Emission,
surfaceData.alpha = saturate(Alpha);
surfaceData.normalTS = Normal;
surfaceData.clearCoatMask = 0;
surfaceData.clearCoatSmoothness = 1;
#ifdef _CLEARCOAT
surfaceData.clearCoatMask = saturate(CoatMask);
surfaceData.clearCoatSmoothness = saturate(CoatSmoothness);
#endif
#ifdef _DBUFFER
ApplyDecalToSurfaceData(IN.clipPos, surfaceData, inputData);
#endif
half4 color = UniversalFragmentPBR( inputData, surfaceData);
#ifdef ASE_TRANSMISSION
{
float shadow = _TransmissionShadow;
Light mainLight = GetMainLight( inputData.shadowCoord );
float3 mainAtten = mainLight.color * mainLight.distanceAttenuation;
mainAtten = lerp( mainAtten, mainAtten * mainLight.shadowAttenuation, shadow );
half3 mainTransmission = max(0 , -dot(inputData.normalWS, mainLight.direction)) * mainAtten * Transmission;
color.rgb += BaseColor * mainTransmission;
#ifdef _ADDITIONAL_LIGHTS
int transPixelLightCount = GetAdditionalLightsCount();
for (int i = 0; i < transPixelLightCount; ++i)
{
Light light = GetAdditionalLight(i, inputData.positionWS);
float3 atten = light.color * light.distanceAttenuation;
atten = lerp( atten, atten * light.shadowAttenuation, shadow );
half3 transmission = max(0 , -dot(inputData.normalWS, light.direction)) * atten * Transmission;
color.rgb += BaseColor * transmission;
}
#endif
}
#endif
#ifdef ASE_TRANSLUCENCY
{
float shadow = _TransShadow;
float normal = _TransNormal;
float scattering = _TransScattering;
float direct = _TransDirect;
float ambient = _TransAmbient;
float strength = _TransStrength;
Light mainLight = GetMainLight( inputData.shadowCoord );
float3 mainAtten = mainLight.color * mainLight.distanceAttenuation;
mainAtten = lerp( mainAtten, mainAtten * mainLight.shadowAttenuation, shadow );
half3 mainLightDir = mainLight.direction + inputData.normalWS * normal;
half mainVdotL = pow( saturate( dot( inputData.viewDirectionWS, -mainLightDir ) ), scattering );
half3 mainTranslucency = mainAtten * ( mainVdotL * direct + inputData.bakedGI * ambient ) * Translucency;
color.rgb += BaseColor * mainTranslucency * strength;
#ifdef _ADDITIONAL_LIGHTS
int transPixelLightCount = GetAdditionalLightsCount();
for (int i = 0; i < transPixelLightCount; ++i)
{
Light light = GetAdditionalLight(i, inputData.positionWS);
float3 atten = light.color * light.distanceAttenuation;
atten = lerp( atten, atten * light.shadowAttenuation, shadow );
half3 lightDir = light.direction + inputData.normalWS * normal;
half VdotL = pow( saturate( dot( inputData.viewDirectionWS, -lightDir ) ), scattering );
half3 translucency = atten * ( VdotL * direct + inputData.bakedGI * ambient ) * Translucency;
color.rgb += BaseColor * translucency * strength;
}
#endif
}
#endif
#ifdef ASE_REFRACTION
float4 projScreenPos = ScreenPos / ScreenPos.w;
float3 refractionOffset = ( RefractionIndex - 1.0 ) * mul( UNITY_MATRIX_V, float4( WorldNormal,0 ) ).xyz * ( 1.0 - dot( WorldNormal, WorldViewDirection ) );
projScreenPos.xy += refractionOffset.xy;
float3 refraction = SHADERGRAPH_SAMPLE_SCENE_COLOR( projScreenPos.xy ) * RefractionColor;
color.rgb = lerp( refraction, color.rgb, color.a );
color.a = 1;
#endif
#ifdef ASE_FINAL_COLOR_ALPHA_MULTIPLY
color.rgb *= color.a;
#endif
#ifdef ASE_FOG
#ifdef TERRAIN_SPLAT_ADDPASS
color.rgb = MixFogColor(color.rgb, half3( 0, 0, 0 ), IN.fogFactorAndVertexLight.x );
#else
color.rgb = MixFog(color.rgb, IN.fogFactorAndVertexLight.x);
#endif
#endif
#ifdef ASE_DEPTH_WRITE_ON
outputDepth = DepthValue;
#endif
return color;
}
ENDHLSL
}
Pass
{
Name "ShadowCaster"
Tags { "LightMode"="ShadowCaster" }
ZWrite On
ZTest LEqual
AlphaToMask Off
ColorMask 0
HLSLPROGRAM
#define _NORMAL_DROPOFF_TS 1
#pragma multi_compile_instancing
#pragma multi_compile_fragment _ LOD_FADE_CROSSFADE
#define ASE_FOG 1
#define _EMISSION
#define _NORMALMAP 1
#define ASE_SRP_VERSION 120110
#pragma vertex vert
#pragma fragment frag
#pragma multi_compile_vertex _ _CASTING_PUNCTUAL_LIGHT_SHADOW
#define SHADERPASS SHADERPASS_SHADOWCASTER
#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.universal/ShaderLibrary/Input.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;
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
UNITY_VERTEX_INPUT_INSTANCE_ID
UNITY_VERTEX_OUTPUT_STEREO
};
CBUFFER_START(UnityPerMaterial)
float4 _EdgeColor;
float4 _BaseColor;
float4 _DetailMask1_ST;
float4 _MossDirtColor;
float4 _MossColor;
float4 _MudColor;
float4 _RimColor3;
float4 _SnowColor;
float4 _BaseNormal_ST;
float4 _MudWetColor;
float2 _RainScale;
float _RainIntensity;
float _RipplesBaseColor;
float _FlowSpeed;
float _Distortion;
float _RainOnTop;
float _SnowTile;
float _RIpplesTile;
float _MoreSnow;
float _RimPower;
float _Roughness;
float _MossRoughness;
float _SnowRoughness;
float _RainBaseColor;
float _GradientTile;
float _SparkleScale;
float _SNOWCoverageAmount;
float _EdgeValue;
float _MossDirtValue;
float _MossTile;
float _AOMoss;
float _MudCoverageAmount;
float _MudCoverageFalloff;
float _SNOWCoverageFalloff;
float _MudCoverageIntensity;
float _MossCoverageFalloff;
float _SparkleCutoff;
float _SparkleScale2;
float _SpraklesTile;
float _VertexWetness;
float _SparklesIntensity;
float _MossCoverageAmount;
float _AO;
#ifdef ASE_TRANSMISSION
float _TransmissionShadow;
#endif
#ifdef ASE_TRANSLUCENCY
float _TransStrength;
float _TransNormal;
float _TransScattering;
float _TransDirect;
float _TransAmbient;
float _TransShadow;
#endif
#ifdef ASE_TESSELLATION
float _TessPhongStrength;
float _TessValue;
float _TessMin;
float _TessMax;
float _TessEdgeLength;
float _TessMaxDisp;
#endif
CBUFFER_END
// Property used by ScenePickingPass
#ifdef SCENEPICKINGPASS
float4 _SelectionID;
#endif
// Properties used by SceneSelectionPass
#ifdef SCENESELECTIONPASS
int _ObjectId;
int _PassValue;
#endif
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/Varyings.hlsl"
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/ShadowCasterPass.hlsl"
//#ifdef HAVE_VFX_MODIFICATION
//#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/VisualEffectVertex.hlsl"
//#endif
float3 _LightDirection;
float3 _LightPosition;
VertexOutput VertexFunction( VertexInput v )
{
VertexOutput o;
UNITY_SETUP_INSTANCE_ID(v);
UNITY_TRANSFER_INSTANCE_ID(v, o);
UNITY_INITIALIZE_VERTEX_OUTPUT_STEREO( o );
#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
float3 normalWS = TransformObjectToWorldDir(v.ase_normal);
#if _CASTING_PUNCTUAL_LIGHT_SHADOW
float3 lightDirectionWS = normalize(_LightPosition - positionWS);
#else
float3 lightDirectionWS = _LightDirection;
#endif
float4 clipPos = TransformWorldToHClip(ApplyShadowBias(positionWS, normalWS, lightDirectionWS));
#if UNITY_REVERSED_Z
clipPos.z = min(clipPos.z, UNITY_NEAR_CLIP_VALUE);
#else
clipPos.z = max(clipPos.z, UNITY_NEAR_CLIP_VALUE);
#endif
#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR) && defined(ASE_NEEDS_FRAG_SHADOWCOORDS)
VertexPositionInputs vertexInput = (VertexPositionInputs)0;
vertexInput.positionWS = positionWS;
vertexInput.positionCS = clipPos;
o.shadowCoord = GetShadowCoord( vertexInput );
#endif
o.clipPos = clipPos;
return o;
}
#if defined(ASE_TESSELLATION)
struct VertexControl
{
float4 vertex : INTERNALTESSPOS;
float3 ase_normal : NORMAL;
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;
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;
#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
#if defined(ASE_EARLY_Z_DEPTH_OPTIMIZE)
#define ASE_SV_DEPTH SV_DepthLessEqual
#else
#define ASE_SV_DEPTH SV_Depth
#endif
half4 frag( VertexOutput IN
#ifdef ASE_DEPTH_WRITE_ON
,out float outputDepth : ASE_SV_DEPTH
#endif
) : 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
float Alpha = 1;
float AlphaClipThreshold = 0.5;
float AlphaClipThresholdShadow = 0.5;
#ifdef ASE_DEPTH_WRITE_ON
float DepthValue = 0;
#endif
#ifdef _ALPHATEST_ON
#ifdef _ALPHATEST_SHADOW_ON
clip(Alpha - AlphaClipThresholdShadow);
#else
clip(Alpha - AlphaClipThreshold);
#endif
#endif
#ifdef LOD_FADE_CROSSFADE
LODDitheringTransition( IN.clipPos.xyz, unity_LODFade.x );
#endif
#ifdef ASE_DEPTH_WRITE_ON
outputDepth = DepthValue;
#endif
return 0;
}
ENDHLSL
}
Pass
{
Name "DepthOnly"
Tags { "LightMode"="DepthOnly" }
ZWrite On
ColorMask 0
AlphaToMask Off
HLSLPROGRAM
#define _NORMAL_DROPOFF_TS 1
#pragma multi_compile_instancing
#pragma multi_compile_fragment _ LOD_FADE_CROSSFADE
#define ASE_FOG 1
#define _EMISSION
#define _NORMALMAP 1
#define ASE_SRP_VERSION 120110
#pragma vertex vert
#pragma fragment frag
#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.universal/ShaderLibrary/Input.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;
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
UNITY_VERTEX_INPUT_INSTANCE_ID
UNITY_VERTEX_OUTPUT_STEREO
};
CBUFFER_START(UnityPerMaterial)
float4 _EdgeColor;
float4 _BaseColor;
float4 _DetailMask1_ST;
float4 _MossDirtColor;
float4 _MossColor;
float4 _MudColor;
float4 _RimColor3;
float4 _SnowColor;
float4 _BaseNormal_ST;
float4 _MudWetColor;
float2 _RainScale;
float _RainIntensity;
float _RipplesBaseColor;
float _FlowSpeed;
float _Distortion;
float _RainOnTop;
float _SnowTile;
float _RIpplesTile;
float _MoreSnow;
float _RimPower;
float _Roughness;
float _MossRoughness;
float _SnowRoughness;
float _RainBaseColor;
float _GradientTile;
float _SparkleScale;
float _SNOWCoverageAmount;
float _EdgeValue;
float _MossDirtValue;
float _MossTile;
float _AOMoss;
float _MudCoverageAmount;
float _MudCoverageFalloff;
float _SNOWCoverageFalloff;
float _MudCoverageIntensity;
float _MossCoverageFalloff;
float _SparkleCutoff;
float _SparkleScale2;
float _SpraklesTile;
float _VertexWetness;
float _SparklesIntensity;
float _MossCoverageAmount;
float _AO;
#ifdef ASE_TRANSMISSION
float _TransmissionShadow;
#endif
#ifdef ASE_TRANSLUCENCY
float _TransStrength;
float _TransNormal;
float _TransScattering;
float _TransDirect;
float _TransAmbient;
float _TransShadow;
#endif
#ifdef ASE_TESSELLATION
float _TessPhongStrength;
float _TessValue;
float _TessMin;
float _TessMax;
float _TessEdgeLength;
float _TessMaxDisp;
#endif
CBUFFER_END
// Property used by ScenePickingPass
#ifdef SCENEPICKINGPASS
float4 _SelectionID;
#endif
// Properties used by SceneSelectionPass
#ifdef SCENESELECTIONPASS
int _ObjectId;
int _PassValue;
#endif
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/Varyings.hlsl"
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/DepthOnlyPass.hlsl"
//#ifdef HAVE_VFX_MODIFICATION
//#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/VisualEffectVertex.hlsl"
//#endif
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);
#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
o.clipPos = positionCS;
return o;
}
#if defined(ASE_TESSELLATION)
struct VertexControl
{
float4 vertex : INTERNALTESSPOS;
float3 ase_normal : NORMAL;
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;
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;
#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
#if defined(ASE_EARLY_Z_DEPTH_OPTIMIZE)
#define ASE_SV_DEPTH SV_DepthLessEqual
#else
#define ASE_SV_DEPTH SV_Depth
#endif
half4 frag( VertexOutput IN
#ifdef ASE_DEPTH_WRITE_ON
,out float outputDepth : ASE_SV_DEPTH
#endif
) : 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
float Alpha = 1;
float AlphaClipThreshold = 0.5;
#ifdef ASE_DEPTH_WRITE_ON
float DepthValue = 0;
#endif
#ifdef _ALPHATEST_ON
clip(Alpha - AlphaClipThreshold);
#endif
#ifdef LOD_FADE_CROSSFADE
LODDitheringTransition( IN.clipPos.xyz, unity_LODFade.x );
#endif
#ifdef ASE_DEPTH_WRITE_ON
outputDepth = DepthValue;
#endif
return 0;
}
ENDHLSL
}
Pass
{
Name "Meta"
Tags { "LightMode"="Meta" }
Cull Off
HLSLPROGRAM
#define _NORMAL_DROPOFF_TS 1
#define ASE_FOG 1
#define _EMISSION
#define _NORMALMAP 1
#define ASE_SRP_VERSION 120110
#pragma vertex vert
#pragma fragment frag
#pragma shader_feature EDITOR_VISUALIZATION
#define SHADERPASS SHADERPASS_META
#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.universal/ShaderLibrary/Input.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/MetaInput.hlsl"
#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/ShaderPass.hlsl"
#define ASE_NEEDS_VERT_NORMAL
#define ASE_NEEDS_FRAG_COLOR
#define ASE_NEEDS_FRAG_WORLD_POSITION
#pragma shader_feature_local _RAINRIPPLESSTATICSWITCH_ON
#pragma shader_feature_local _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
#pragma shader_feature_local _MOSSSTATICSWITCH_ON
struct VertexInput
{
float4 vertex : POSITION;
float3 ase_normal : NORMAL;
float4 texcoord0 : TEXCOORD0;
float4 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
float4 ase_color : COLOR;
float4 ase_tangent : TANGENT;
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 EDITOR_VISUALIZATION
float4 VizUV : TEXCOORD2;
float4 LightCoord : TEXCOORD3;
#endif
float4 ase_texcoord4 : TEXCOORD4;
float4 ase_texcoord5 : TEXCOORD5;
float4 ase_color : COLOR;
float4 ase_texcoord6 : TEXCOORD6;
float4 ase_texcoord7 : TEXCOORD7;
float4 ase_texcoord8 : TEXCOORD8;
float4 ase_texcoord9 : TEXCOORD9;
UNITY_VERTEX_INPUT_INSTANCE_ID
UNITY_VERTEX_OUTPUT_STEREO
};
CBUFFER_START(UnityPerMaterial)
float4 _EdgeColor;
float4 _BaseColor;
float4 _DetailMask1_ST;
float4 _MossDirtColor;
float4 _MossColor;
float4 _MudColor;
float4 _RimColor3;
float4 _SnowColor;
float4 _BaseNormal_ST;
float4 _MudWetColor;
float2 _RainScale;
float _RainIntensity;
float _RipplesBaseColor;
float _FlowSpeed;
float _Distortion;
float _RainOnTop;
float _SnowTile;
float _RIpplesTile;
float _MoreSnow;
float _RimPower;
float _Roughness;
float _MossRoughness;
float _SnowRoughness;
float _RainBaseColor;
float _GradientTile;
float _SparkleScale;
float _SNOWCoverageAmount;
float _EdgeValue;
float _MossDirtValue;
float _MossTile;
float _AOMoss;
float _MudCoverageAmount;
float _MudCoverageFalloff;
float _SNOWCoverageFalloff;
float _MudCoverageIntensity;
float _MossCoverageFalloff;
float _SparkleCutoff;
float _SparkleScale2;
float _SpraklesTile;
float _VertexWetness;
float _SparklesIntensity;
float _MossCoverageAmount;
float _AO;
#ifdef ASE_TRANSMISSION
float _TransmissionShadow;
#endif
#ifdef ASE_TRANSLUCENCY
float _TransStrength;
float _TransNormal;
float _TransScattering;
float _TransDirect;
float _TransAmbient;
float _TransShadow;
#endif
#ifdef ASE_TESSELLATION
float _TessPhongStrength;
float _TessValue;
float _TessMin;
float _TessMax;
float _TessEdgeLength;
float _TessMaxDisp;
#endif
CBUFFER_END
// Property used by ScenePickingPass
#ifdef SCENEPICKINGPASS
float4 _SelectionID;
#endif
// Properties used by SceneSelectionPass
#ifdef SCENESELECTIONPASS
int _ObjectId;
int _PassValue;
#endif
sampler2D _DetailMask1;
sampler2D _DetailMask2;
sampler2D _BaseNormal;
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/Varyings.hlsl"
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/LightingMetaPass.hlsl"
//#ifdef HAVE_VFX_MODIFICATION
//#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/VisualEffectVertex.hlsl"
//#endif
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);
float3 ase_worldNormal = TransformObjectToWorldNormal(v.ase_normal);
o.ase_texcoord5.xyz = ase_worldNormal;
float3 ase_worldTangent = TransformObjectToWorldDir(v.ase_tangent.xyz);
o.ase_texcoord6.xyz = ase_worldTangent;
float ase_vertexTangentSign = v.ase_tangent.w * ( unity_WorldTransformParams.w >= 0.0 ? 1.0 : -1.0 );
float3 ase_worldBitangent = cross( ase_worldNormal, ase_worldTangent ) * ase_vertexTangentSign;
o.ase_texcoord7.xyz = ase_worldBitangent;
float4 ase_clipPos = TransformObjectToHClip((v.vertex).xyz);
float4 screenPos = ComputeScreenPos(ase_clipPos);
o.ase_texcoord8 = screenPos;
o.ase_texcoord4.xy = v.texcoord0.xy;
o.ase_color = v.ase_color;
o.ase_texcoord9 = v.vertex;
//setting value to unused interpolator channels and avoid initialization warnings
o.ase_texcoord4.zw = 0;
o.ase_texcoord5.w = 0;
o.ase_texcoord6.w = 0;
o.ase_texcoord7.w = 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 = MetaVertexPosition( v.vertex, v.texcoord1.xy, v.texcoord1.xy, unity_LightmapST, unity_DynamicLightmapST );
#ifdef EDITOR_VISUALIZATION
float2 VizUV = 0;
float4 LightCoord = 0;
UnityEditorVizData(v.vertex.xyz, v.texcoord0.xy, v.texcoord1.xy, v.texcoord2.xy, VizUV, LightCoord);
o.VizUV = float4(VizUV, 0, 0);
o.LightCoord = LightCoord;
#endif
#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(ASE_TESSELLATION)
struct VertexControl
{
float4 vertex : INTERNALTESSPOS;
float3 ase_normal : NORMAL;
float4 texcoord0 : TEXCOORD0;
float4 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
float4 ase_color : COLOR;
float4 ase_tangent : TANGENT;
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.texcoord0 = v.texcoord0;
o.texcoord1 = v.texcoord1;
o.texcoord2 = v.texcoord2;
o.ase_color = v.ase_color;
o.ase_tangent = v.ase_tangent;
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.texcoord0 = patch[0].texcoord0 * bary.x + patch[1].texcoord0 * bary.y + patch[2].texcoord0 * bary.z;
o.texcoord1 = patch[0].texcoord1 * bary.x + patch[1].texcoord1 * bary.y + patch[2].texcoord1 * bary.z;
o.texcoord2 = patch[0].texcoord2 * bary.x + patch[1].texcoord2 * bary.y + patch[2].texcoord2 * 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_tangent = patch[0].ase_tangent * bary.x + patch[1].ase_tangent * bary.y + patch[2].ase_tangent * 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 uv_DetailMask1 = IN.ase_texcoord4.xy * _DetailMask1_ST.xy + _DetailMask1_ST.zw;
float4 tex2DNode210 = tex2D( _DetailMask1, uv_DetailMask1 );
float temp_output_497_0 = ( 1.0 - tex2DNode210.b );
float2 temp_cast_0 = (_MossTile).xx;
float2 texCoord276 = IN.ase_texcoord4.xy * temp_cast_0 + float2( 0,0 );
float2 TopTiling_Moss279 = texCoord276;
float4 tex2DNode1860 = tex2D( _DetailMask2, TopTiling_Moss279 );
float4 temp_output_675_0 = ( _MossColor * tex2DNode1860.b );
float4 lerpResult1273 = lerp( ( ( ( _EdgeColor * _BaseColor ) + ( _EdgeColor * tex2DNode210.g * _EdgeValue ) ) + ( temp_output_497_0 * _MossDirtValue * _MossDirtColor ) ) , temp_output_675_0 , ( _AOMoss * temp_output_497_0 ));
float3 ase_worldNormal = IN.ase_texcoord5.xyz;
float temp_output_1408_0 = pow( saturate( ( -ase_worldNormal.y + _MudCoverageAmount ) ) , _MudCoverageFalloff );
float4 lerpResult1400 = lerp( lerpResult1273 , ( _MudColor * temp_output_1408_0 ) , saturate( ( temp_output_1408_0 * _MudCoverageIntensity ) ));
float2 uv_BaseNormal = IN.ase_texcoord4.xy * _BaseNormal_ST.xy + _BaseNormal_ST.zw;
float3 tex2DNode218 = UnpackNormalScale( tex2D( _BaseNormal, uv_BaseNormal ), 1.0f );
float3 break1517 = tex2DNode218;
float SplitX1516 = break1517.x;
float SplitY1515 = break1517.y;
float lerpResult1511 = lerp( ( ( SplitX1516 + ( SplitY1515 + IN.ase_color.g ) ) * ( IN.ase_color.g * 5.0 ) ) , IN.ase_color.g , IN.ase_color.g);
float GColors1509 = saturate( lerpResult1511 );
float4 lerpResult1521 = lerp( lerpResult1400 , _MudColor , GColors1509);
float4 lerpResult1845 = lerp( ( 0.4 * lerpResult1521 ) , _MudWetColor , IN.ase_color.g);
float4 lerpResult1837 = lerp( lerpResult1521 , lerpResult1845 , IN.ase_color.b);
float4 BaseColorFirstPass1404 = lerpResult1837;
float3 BaseNormal508 = tex2DNode218;
float3 ase_worldTangent = IN.ase_texcoord6.xyz;
float3 ase_worldBitangent = IN.ase_texcoord7.xyz;
float3 tanToWorld0 = float3( ase_worldTangent.x, ase_worldBitangent.x, ase_worldNormal.x );
float3 tanToWorld1 = float3( ase_worldTangent.y, ase_worldBitangent.y, ase_worldNormal.y );
float3 tanToWorld2 = float3( ase_worldTangent.z, ase_worldBitangent.z, ase_worldNormal.z );
float3 tanNormal302 = BaseNormal508;
float3 worldNormal302 = float3(dot(tanToWorld0,tanNormal302), dot(tanToWorld1,tanNormal302), dot(tanToWorld2,tanNormal302));
float3 PNorm303 = worldNormal302;
float3 temp_cast_1 = (_MossCoverageFalloff).xxx;
float TopAlbedoMask_MOSS317 = saturate( ( pow( saturate( ( PNorm303 + _MossCoverageAmount ) ) , temp_cast_1 ).y * 1.5 ) );
float4 lerpResult321 = lerp( BaseColorFirstPass1404 , temp_output_675_0 , TopAlbedoMask_MOSS317);
float lerpResult1696 = lerp( ( ( SplitX1516 + ( SplitY1515 + IN.ase_color.r ) ) * ( IN.ase_color.r * 5.0 ) ) , IN.ase_color.r , IN.ase_color.r);
float RColors1698 = saturate( lerpResult1696 );
float4 lerpResult1481 = lerp( lerpResult321 , BaseColorFirstPass1404 , RColors1698);
#ifdef _MOSSSTATICSWITCH_ON
float4 staticSwitch1264 = lerpResult1481;
#else
float4 staticSwitch1264 = BaseColorFirstPass1404;
#endif
float2 _Vector0 = float2(20,25);
float4 screenPos = IN.ase_texcoord8;
float4 ase_screenPosNorm = screenPos / screenPos.w;
ase_screenPosNorm.z = ( UNITY_NEAR_CLIP_VALUE >= 0 ) ? ase_screenPosNorm.z : ase_screenPosNorm.z * 0.5 + 0.5;
float4 lerpResult1356 = lerp( ( float4( _Vector0, 0.0 , 0.0 ) * ase_screenPosNorm ) , float4( ( float3( _Vector0 , 0.0 ) * WorldPosition ) , 0.0 ) , 0.8);
float4 tex2DNode1147 = tex2D( _DetailMask2, ( lerpResult1356 * _SparkleScale2 ).xy );
float2 temp_cast_6 = (_SpraklesTile).xx;
float2 texCoord1143 = IN.ase_texcoord4.xy * temp_cast_6 + float2( 0,0 );
float4 tex2DNode1146 = tex2D( _DetailMask2, ( texCoord1143 * _SparkleScale ) );
float Sparkles1153 = ( step( _SparkleCutoff , ( tex2DNode1147.a * tex2DNode1146.a ) ) * _SparklesIntensity );
float3 temp_cast_7 = (_SNOWCoverageFalloff).xxx;
float TopAlbedoMask_SNOW1103 = pow( saturate( ( PNorm303 + _SNOWCoverageAmount ) ) , temp_cast_7 ).y;
float4 lerpResult1083 = lerp( staticSwitch1264 , ( ( _SnowColor * 0.8 ) + Sparkles1153 ) , TopAlbedoMask_SNOW1103);
#ifdef _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
float4 staticSwitch1259 = lerpResult1083;
#else
float4 staticSwitch1259 = staticSwitch1264;
#endif
float4 BASE_M1322 = staticSwitch1259;
float2 temp_cast_8 = (_GradientTile).xx;
float2 texCoord767 = IN.ase_texcoord4.xy * temp_cast_8 + float2( 0,0 );
float2 temp_cast_9 = (_RIpplesTile).xx;
float2 texCoord765 = IN.ase_texcoord4.xy * temp_cast_9 + float2( 0,0 );
float4 tex2DNode960 = tex2D( _DetailMask2, texCoord765 );
float2 temp_cast_10 = (tex2DNode960.g).xx;
float2 panner766 = ( 1.0 * _Time.y * float2( 0.4,0.4 ) + temp_cast_10);
float temp_output_804_0 = saturate( ( ( tex2D( _DetailMask2, ( texCoord767 + panner766 ) ).r * tex2DNode960.g ) * 10.0 ) );
float lerpResult1010 = lerp( ( temp_output_804_0 * 5.0 ) , ( temp_output_804_0 * _RainIntensity ) , _RainIntensity);
float Ripples777 = lerpResult1010;
float temp_output_836_0 = ( _TimeParameters.x * _FlowSpeed );
float4 transform842 = mul(GetObjectToWorldMatrix(),float4( IN.ase_texcoord9.xyz , 0.0 ));
float2 panner844 = ( temp_output_836_0 * float2( 0,0.1 ) + ( (transform842).zy * _RainScale ));
float3 Dis904 = ( BaseNormal508 * _Distortion );
float3 temp_cast_14 = (0.28).xxx;
float3 break1627 = ( abs( ase_worldNormal ) - temp_cast_14 );
float X1628 = break1627.x;
float lerpResult1646 = lerp( 0.0 , tex2D( _DetailMask2, ( float3( panner844 , 0.0 ) + Dis904 ).xy ).r , X1628);
float2 panner1569 = ( temp_output_836_0 * float2( 0,0.1 ) + ( _RainScale * (transform842).xy ));
float4 tex2DNode1614 = tex2D( _DetailMask2, ( Dis904 + float3( panner1569 , 0.0 ) ).xy );
float Z1629 = break1627.z;
float lerpResult1648 = lerp( 0.0 , tex2DNode1614.r , Z1629);
float Y1676 = break1627.y;
float lerpResult1675 = lerp( 0.0 , tex2DNode1614.r , ( Y1676 * _RainOnTop ));
float SteaksRouighness983 = saturate( ( lerpResult1646 + lerpResult1648 + lerpResult1675 ) );
float4 lerpResult1710 = lerp( ( BASE_M1322 + ( ( ( Ripples777 * _RipplesBaseColor ) + ( SteaksRouighness983 * _RainBaseColor ) ) * _RainIntensity ) ) , BASE_M1322 , ( 1.0 - IN.ase_color.a ));
#ifdef _RAINRIPPLESSTATICSWITCH_ON
float4 staticSwitch994 = lerpResult1710;
#else
float4 staticSwitch994 = BASE_M1322;
#endif
float4 Albedo991 = staticSwitch994;
float3 ase_worldViewDir = ( _WorldSpaceCameraPos.xyz - WorldPosition );
ase_worldViewDir = SafeNormalize( ase_worldViewDir );
float fresnelNdotV1031 = dot( ase_worldNormal, ase_worldViewDir );
float fresnelNode1031 = ( 0.0 + 2.24 * pow( 1.0 - fresnelNdotV1031, _RimPower ) );
float4 lerpResult1035 = lerp( float4( 0,0,0,0 ) , ( _RimColor3 * fresnelNode1031 ) , TopAlbedoMask_SNOW1103);
#ifdef _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
float4 staticSwitch1036 = lerpResult1035;
#else
float4 staticSwitch1036 = float4( 0,0,0,0 );
#endif
float4 Emission1357 = staticSwitch1036;
float3 BaseColor = Albedo991.rgb;
float3 Emission = Emission1357.rgb;
float Alpha = 1;
float AlphaClipThreshold = 0.5;
#ifdef _ALPHATEST_ON
clip(Alpha - AlphaClipThreshold);
#endif
MetaInput metaInput = (MetaInput)0;
metaInput.Albedo = BaseColor;
metaInput.Emission = Emission;
#ifdef EDITOR_VISUALIZATION
metaInput.VizUV = IN.VizUV.xy;
metaInput.LightCoord = IN.LightCoord;
#endif
return UnityMetaFragment(metaInput);
}
ENDHLSL
}
Pass
{
Name "Universal2D"
Tags { "LightMode"="Universal2D" }
Blend One Zero, One Zero
ZWrite On
ZTest LEqual
Offset 0 , 0
ColorMask RGBA
HLSLPROGRAM
#define _NORMAL_DROPOFF_TS 1
#define ASE_FOG 1
#define _EMISSION
#define _NORMALMAP 1
#define ASE_SRP_VERSION 120110
#pragma vertex vert
#pragma fragment frag
#define SHADERPASS SHADERPASS_2D
#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.universal/ShaderLibrary/Input.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"
#define ASE_NEEDS_VERT_NORMAL
#define ASE_NEEDS_FRAG_COLOR
#define ASE_NEEDS_FRAG_WORLD_POSITION
#pragma shader_feature_local _RAINRIPPLESSTATICSWITCH_ON
#pragma shader_feature_local _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
#pragma shader_feature_local _MOSSSTATICSWITCH_ON
struct VertexInput
{
float4 vertex : POSITION;
float3 ase_normal : NORMAL;
float4 ase_texcoord : TEXCOORD0;
float4 ase_color : COLOR;
float4 ase_tangent : TANGENT;
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_texcoord2 : TEXCOORD2;
float4 ase_texcoord3 : TEXCOORD3;
float4 ase_color : COLOR;
float4 ase_texcoord4 : TEXCOORD4;
float4 ase_texcoord5 : TEXCOORD5;
float4 ase_texcoord6 : TEXCOORD6;
float4 ase_texcoord7 : TEXCOORD7;
UNITY_VERTEX_INPUT_INSTANCE_ID
UNITY_VERTEX_OUTPUT_STEREO
};
CBUFFER_START(UnityPerMaterial)
float4 _EdgeColor;
float4 _BaseColor;
float4 _DetailMask1_ST;
float4 _MossDirtColor;
float4 _MossColor;
float4 _MudColor;
float4 _RimColor3;
float4 _SnowColor;
float4 _BaseNormal_ST;
float4 _MudWetColor;
float2 _RainScale;
float _RainIntensity;
float _RipplesBaseColor;
float _FlowSpeed;
float _Distortion;
float _RainOnTop;
float _SnowTile;
float _RIpplesTile;
float _MoreSnow;
float _RimPower;
float _Roughness;
float _MossRoughness;
float _SnowRoughness;
float _RainBaseColor;
float _GradientTile;
float _SparkleScale;
float _SNOWCoverageAmount;
float _EdgeValue;
float _MossDirtValue;
float _MossTile;
float _AOMoss;
float _MudCoverageAmount;
float _MudCoverageFalloff;
float _SNOWCoverageFalloff;
float _MudCoverageIntensity;
float _MossCoverageFalloff;
float _SparkleCutoff;
float _SparkleScale2;
float _SpraklesTile;
float _VertexWetness;
float _SparklesIntensity;
float _MossCoverageAmount;
float _AO;
#ifdef ASE_TRANSMISSION
float _TransmissionShadow;
#endif
#ifdef ASE_TRANSLUCENCY
float _TransStrength;
float _TransNormal;
float _TransScattering;
float _TransDirect;
float _TransAmbient;
float _TransShadow;
#endif
#ifdef ASE_TESSELLATION
float _TessPhongStrength;
float _TessValue;
float _TessMin;
float _TessMax;
float _TessEdgeLength;
float _TessMaxDisp;
#endif
CBUFFER_END
// Property used by ScenePickingPass
#ifdef SCENEPICKINGPASS
float4 _SelectionID;
#endif
// Properties used by SceneSelectionPass
#ifdef SCENESELECTIONPASS
int _ObjectId;
int _PassValue;
#endif
sampler2D _DetailMask1;
sampler2D _DetailMask2;
sampler2D _BaseNormal;
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/Varyings.hlsl"
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/PBR2DPass.hlsl"
//#ifdef HAVE_VFX_MODIFICATION
//#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/VisualEffectVertex.hlsl"
//#endif
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 );
float3 ase_worldNormal = TransformObjectToWorldNormal(v.ase_normal);
o.ase_texcoord3.xyz = ase_worldNormal;
float3 ase_worldTangent = TransformObjectToWorldDir(v.ase_tangent.xyz);
o.ase_texcoord4.xyz = ase_worldTangent;
float ase_vertexTangentSign = v.ase_tangent.w * ( unity_WorldTransformParams.w >= 0.0 ? 1.0 : -1.0 );
float3 ase_worldBitangent = cross( ase_worldNormal, ase_worldTangent ) * ase_vertexTangentSign;
o.ase_texcoord5.xyz = ase_worldBitangent;
float4 ase_clipPos = TransformObjectToHClip((v.vertex).xyz);
float4 screenPos = ComputeScreenPos(ase_clipPos);
o.ase_texcoord6 = screenPos;
o.ase_texcoord2.xy = v.ase_texcoord.xy;
o.ase_color = v.ase_color;
o.ase_texcoord7 = v.vertex;
//setting value to unused interpolator channels and avoid initialization warnings
o.ase_texcoord2.zw = 0;
o.ase_texcoord3.w = 0;
o.ase_texcoord4.w = 0;
o.ase_texcoord5.w = 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
o.clipPos = positionCS;
return o;
}
#if defined(ASE_TESSELLATION)
struct VertexControl
{
float4 vertex : INTERNALTESSPOS;
float3 ase_normal : NORMAL;
float4 ase_texcoord : TEXCOORD0;
float4 ase_color : COLOR;
float4 ase_tangent : TANGENT;
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_tangent = v.ase_tangent;
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_tangent = patch[0].ase_tangent * bary.x + patch[1].ase_tangent * bary.y + patch[2].ase_tangent * 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 uv_DetailMask1 = IN.ase_texcoord2.xy * _DetailMask1_ST.xy + _DetailMask1_ST.zw;
float4 tex2DNode210 = tex2D( _DetailMask1, uv_DetailMask1 );
float temp_output_497_0 = ( 1.0 - tex2DNode210.b );
float2 temp_cast_0 = (_MossTile).xx;
float2 texCoord276 = IN.ase_texcoord2.xy * temp_cast_0 + float2( 0,0 );
float2 TopTiling_Moss279 = texCoord276;
float4 tex2DNode1860 = tex2D( _DetailMask2, TopTiling_Moss279 );
float4 temp_output_675_0 = ( _MossColor * tex2DNode1860.b );
float4 lerpResult1273 = lerp( ( ( ( _EdgeColor * _BaseColor ) + ( _EdgeColor * tex2DNode210.g * _EdgeValue ) ) + ( temp_output_497_0 * _MossDirtValue * _MossDirtColor ) ) , temp_output_675_0 , ( _AOMoss * temp_output_497_0 ));
float3 ase_worldNormal = IN.ase_texcoord3.xyz;
float temp_output_1408_0 = pow( saturate( ( -ase_worldNormal.y + _MudCoverageAmount ) ) , _MudCoverageFalloff );
float4 lerpResult1400 = lerp( lerpResult1273 , ( _MudColor * temp_output_1408_0 ) , saturate( ( temp_output_1408_0 * _MudCoverageIntensity ) ));
float2 uv_BaseNormal = IN.ase_texcoord2.xy * _BaseNormal_ST.xy + _BaseNormal_ST.zw;
float3 tex2DNode218 = UnpackNormalScale( tex2D( _BaseNormal, uv_BaseNormal ), 1.0f );
float3 break1517 = tex2DNode218;
float SplitX1516 = break1517.x;
float SplitY1515 = break1517.y;
float lerpResult1511 = lerp( ( ( SplitX1516 + ( SplitY1515 + IN.ase_color.g ) ) * ( IN.ase_color.g * 5.0 ) ) , IN.ase_color.g , IN.ase_color.g);
float GColors1509 = saturate( lerpResult1511 );
float4 lerpResult1521 = lerp( lerpResult1400 , _MudColor , GColors1509);
float4 lerpResult1845 = lerp( ( 0.4 * lerpResult1521 ) , _MudWetColor , IN.ase_color.g);
float4 lerpResult1837 = lerp( lerpResult1521 , lerpResult1845 , IN.ase_color.b);
float4 BaseColorFirstPass1404 = lerpResult1837;
float3 BaseNormal508 = tex2DNode218;
float3 ase_worldTangent = IN.ase_texcoord4.xyz;
float3 ase_worldBitangent = IN.ase_texcoord5.xyz;
float3 tanToWorld0 = float3( ase_worldTangent.x, ase_worldBitangent.x, ase_worldNormal.x );
float3 tanToWorld1 = float3( ase_worldTangent.y, ase_worldBitangent.y, ase_worldNormal.y );
float3 tanToWorld2 = float3( ase_worldTangent.z, ase_worldBitangent.z, ase_worldNormal.z );
float3 tanNormal302 = BaseNormal508;
float3 worldNormal302 = float3(dot(tanToWorld0,tanNormal302), dot(tanToWorld1,tanNormal302), dot(tanToWorld2,tanNormal302));
float3 PNorm303 = worldNormal302;
float3 temp_cast_1 = (_MossCoverageFalloff).xxx;
float TopAlbedoMask_MOSS317 = saturate( ( pow( saturate( ( PNorm303 + _MossCoverageAmount ) ) , temp_cast_1 ).y * 1.5 ) );
float4 lerpResult321 = lerp( BaseColorFirstPass1404 , temp_output_675_0 , TopAlbedoMask_MOSS317);
float lerpResult1696 = lerp( ( ( SplitX1516 + ( SplitY1515 + IN.ase_color.r ) ) * ( IN.ase_color.r * 5.0 ) ) , IN.ase_color.r , IN.ase_color.r);
float RColors1698 = saturate( lerpResult1696 );
float4 lerpResult1481 = lerp( lerpResult321 , BaseColorFirstPass1404 , RColors1698);
#ifdef _MOSSSTATICSWITCH_ON
float4 staticSwitch1264 = lerpResult1481;
#else
float4 staticSwitch1264 = BaseColorFirstPass1404;
#endif
float2 _Vector0 = float2(20,25);
float4 screenPos = IN.ase_texcoord6;
float4 ase_screenPosNorm = screenPos / screenPos.w;
ase_screenPosNorm.z = ( UNITY_NEAR_CLIP_VALUE >= 0 ) ? ase_screenPosNorm.z : ase_screenPosNorm.z * 0.5 + 0.5;
float4 lerpResult1356 = lerp( ( float4( _Vector0, 0.0 , 0.0 ) * ase_screenPosNorm ) , float4( ( float3( _Vector0 , 0.0 ) * WorldPosition ) , 0.0 ) , 0.8);
float4 tex2DNode1147 = tex2D( _DetailMask2, ( lerpResult1356 * _SparkleScale2 ).xy );
float2 temp_cast_6 = (_SpraklesTile).xx;
float2 texCoord1143 = IN.ase_texcoord2.xy * temp_cast_6 + float2( 0,0 );
float4 tex2DNode1146 = tex2D( _DetailMask2, ( texCoord1143 * _SparkleScale ) );
float Sparkles1153 = ( step( _SparkleCutoff , ( tex2DNode1147.a * tex2DNode1146.a ) ) * _SparklesIntensity );
float3 temp_cast_7 = (_SNOWCoverageFalloff).xxx;
float TopAlbedoMask_SNOW1103 = pow( saturate( ( PNorm303 + _SNOWCoverageAmount ) ) , temp_cast_7 ).y;
float4 lerpResult1083 = lerp( staticSwitch1264 , ( ( _SnowColor * 0.8 ) + Sparkles1153 ) , TopAlbedoMask_SNOW1103);
#ifdef _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
float4 staticSwitch1259 = lerpResult1083;
#else
float4 staticSwitch1259 = staticSwitch1264;
#endif
float4 BASE_M1322 = staticSwitch1259;
float2 temp_cast_8 = (_GradientTile).xx;
float2 texCoord767 = IN.ase_texcoord2.xy * temp_cast_8 + float2( 0,0 );
float2 temp_cast_9 = (_RIpplesTile).xx;
float2 texCoord765 = IN.ase_texcoord2.xy * temp_cast_9 + float2( 0,0 );
float4 tex2DNode960 = tex2D( _DetailMask2, texCoord765 );
float2 temp_cast_10 = (tex2DNode960.g).xx;
float2 panner766 = ( 1.0 * _Time.y * float2( 0.4,0.4 ) + temp_cast_10);
float temp_output_804_0 = saturate( ( ( tex2D( _DetailMask2, ( texCoord767 + panner766 ) ).r * tex2DNode960.g ) * 10.0 ) );
float lerpResult1010 = lerp( ( temp_output_804_0 * 5.0 ) , ( temp_output_804_0 * _RainIntensity ) , _RainIntensity);
float Ripples777 = lerpResult1010;
float temp_output_836_0 = ( _TimeParameters.x * _FlowSpeed );
float4 transform842 = mul(GetObjectToWorldMatrix(),float4( IN.ase_texcoord7.xyz , 0.0 ));
float2 panner844 = ( temp_output_836_0 * float2( 0,0.1 ) + ( (transform842).zy * _RainScale ));
float3 Dis904 = ( BaseNormal508 * _Distortion );
float3 temp_cast_14 = (0.28).xxx;
float3 break1627 = ( abs( ase_worldNormal ) - temp_cast_14 );
float X1628 = break1627.x;
float lerpResult1646 = lerp( 0.0 , tex2D( _DetailMask2, ( float3( panner844 , 0.0 ) + Dis904 ).xy ).r , X1628);
float2 panner1569 = ( temp_output_836_0 * float2( 0,0.1 ) + ( _RainScale * (transform842).xy ));
float4 tex2DNode1614 = tex2D( _DetailMask2, ( Dis904 + float3( panner1569 , 0.0 ) ).xy );
float Z1629 = break1627.z;
float lerpResult1648 = lerp( 0.0 , tex2DNode1614.r , Z1629);
float Y1676 = break1627.y;
float lerpResult1675 = lerp( 0.0 , tex2DNode1614.r , ( Y1676 * _RainOnTop ));
float SteaksRouighness983 = saturate( ( lerpResult1646 + lerpResult1648 + lerpResult1675 ) );
float4 lerpResult1710 = lerp( ( BASE_M1322 + ( ( ( Ripples777 * _RipplesBaseColor ) + ( SteaksRouighness983 * _RainBaseColor ) ) * _RainIntensity ) ) , BASE_M1322 , ( 1.0 - IN.ase_color.a ));
#ifdef _RAINRIPPLESSTATICSWITCH_ON
float4 staticSwitch994 = lerpResult1710;
#else
float4 staticSwitch994 = BASE_M1322;
#endif
float4 Albedo991 = staticSwitch994;
float3 BaseColor = Albedo991.rgb;
float Alpha = 1;
float AlphaClipThreshold = 0.5;
half4 color = half4(BaseColor, Alpha );
#ifdef _ALPHATEST_ON
clip(Alpha - AlphaClipThreshold);
#endif
return color;
}
ENDHLSL
}
Pass
{
Name "DepthNormals"
Tags { "LightMode"="DepthNormals" }
ZWrite On
Blend One Zero
ZTest LEqual
ZWrite On
HLSLPROGRAM
#define _NORMAL_DROPOFF_TS 1
#pragma multi_compile_instancing
#pragma multi_compile_fragment _ LOD_FADE_CROSSFADE
#define ASE_FOG 1
#define _EMISSION
#define _NORMALMAP 1
#define ASE_SRP_VERSION 120110
#pragma vertex vert
#pragma fragment frag
#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.universal/ShaderLibrary/Input.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"
#define ASE_NEEDS_FRAG_WORLD_TANGENT
#define ASE_NEEDS_FRAG_WORLD_NORMAL
#define ASE_NEEDS_VERT_NORMAL
#define ASE_NEEDS_VERT_TANGENT
#define ASE_NEEDS_FRAG_COLOR
#pragma shader_feature_local _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
#pragma shader_feature_local _MOSSSTATICSWITCH_ON
struct VertexInput
{
float4 vertex : POSITION;
float3 ase_normal : NORMAL;
float4 ase_tangent : TANGENT;
float4 ase_texcoord : TEXCOORD0;
float4 ase_color : COLOR;
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
float3 worldNormal : TEXCOORD2;
float4 worldTangent : TEXCOORD3;
float4 ase_texcoord4 : TEXCOORD4;
float4 ase_texcoord5 : TEXCOORD5;
float4 ase_color : COLOR;
UNITY_VERTEX_INPUT_INSTANCE_ID
UNITY_VERTEX_OUTPUT_STEREO
};
CBUFFER_START(UnityPerMaterial)
float4 _EdgeColor;
float4 _BaseColor;
float4 _DetailMask1_ST;
float4 _MossDirtColor;
float4 _MossColor;
float4 _MudColor;
float4 _RimColor3;
float4 _SnowColor;
float4 _BaseNormal_ST;
float4 _MudWetColor;
float2 _RainScale;
float _RainIntensity;
float _RipplesBaseColor;
float _FlowSpeed;
float _Distortion;
float _RainOnTop;
float _SnowTile;
float _RIpplesTile;
float _MoreSnow;
float _RimPower;
float _Roughness;
float _MossRoughness;
float _SnowRoughness;
float _RainBaseColor;
float _GradientTile;
float _SparkleScale;
float _SNOWCoverageAmount;
float _EdgeValue;
float _MossDirtValue;
float _MossTile;
float _AOMoss;
float _MudCoverageAmount;
float _MudCoverageFalloff;
float _SNOWCoverageFalloff;
float _MudCoverageIntensity;
float _MossCoverageFalloff;
float _SparkleCutoff;
float _SparkleScale2;
float _SpraklesTile;
float _VertexWetness;
float _SparklesIntensity;
float _MossCoverageAmount;
float _AO;
#ifdef ASE_TRANSMISSION
float _TransmissionShadow;
#endif
#ifdef ASE_TRANSLUCENCY
float _TransStrength;
float _TransNormal;
float _TransScattering;
float _TransDirect;
float _TransAmbient;
float _TransShadow;
#endif
#ifdef ASE_TESSELLATION
float _TessPhongStrength;
float _TessValue;
float _TessMin;
float _TessMax;
float _TessEdgeLength;
float _TessMaxDisp;
#endif
CBUFFER_END
// Property used by ScenePickingPass
#ifdef SCENEPICKINGPASS
float4 _SelectionID;
#endif
// Properties used by SceneSelectionPass
#ifdef SCENESELECTIONPASS
int _ObjectId;
int _PassValue;
#endif
sampler2D _BaseNormal;
sampler2D _MossSnowNormal;
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/Varyings.hlsl"
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/DepthNormalsOnlyPass.hlsl"
//#ifdef HAVE_VFX_MODIFICATION
//#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/VisualEffectVertex.hlsl"
//#endif
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);
float3 ase_worldNormal = TransformObjectToWorldNormal(v.ase_normal);
float3 ase_worldTangent = TransformObjectToWorldDir(v.ase_tangent.xyz);
float ase_vertexTangentSign = v.ase_tangent.w * ( unity_WorldTransformParams.w >= 0.0 ? 1.0 : -1.0 );
float3 ase_worldBitangent = cross( ase_worldNormal, ase_worldTangent ) * ase_vertexTangentSign;
o.ase_texcoord5.xyz = ase_worldBitangent;
o.ase_texcoord4.xy = v.ase_texcoord.xy;
o.ase_color = v.ase_color;
//setting value to unused interpolator channels and avoid initialization warnings
o.ase_texcoord4.zw = 0;
o.ase_texcoord5.w = 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 );
float4 tangentWS = float4(TransformObjectToWorldDir( v.ase_tangent.xyz), v.ase_tangent.w);
float4 positionCS = TransformWorldToHClip( positionWS );
#if defined(ASE_NEEDS_FRAG_WORLD_POSITION)
o.worldPos = positionWS;
#endif
o.worldNormal = normalWS;
o.worldTangent = tangentWS;
#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
o.clipPos = positionCS;
return o;
}
#if defined(ASE_TESSELLATION)
struct VertexControl
{
float4 vertex : INTERNALTESSPOS;
float3 ase_normal : NORMAL;
float4 ase_tangent : TANGENT;
float4 ase_texcoord : TEXCOORD0;
float4 ase_color : COLOR;
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_tangent = v.ase_tangent;
o.ase_texcoord = v.ase_texcoord;
o.ase_color = v.ase_color;
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_tangent = patch[0].ase_tangent * bary.x + patch[1].ase_tangent * bary.y + patch[2].ase_tangent * 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;
#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
#if defined(ASE_EARLY_Z_DEPTH_OPTIMIZE)
#define ASE_SV_DEPTH SV_DepthLessEqual
#else
#define ASE_SV_DEPTH SV_Depth
#endif
half4 frag( VertexOutput IN
#ifdef ASE_DEPTH_WRITE_ON
,out float outputDepth : ASE_SV_DEPTH
#endif
) : 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 );
float3 WorldNormal = IN.worldNormal;
float4 WorldTangent = IN.worldTangent;
#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 uv_BaseNormal = IN.ase_texcoord4.xy * _BaseNormal_ST.xy + _BaseNormal_ST.zw;
float3 tex2DNode218 = UnpackNormalScale( tex2D( _BaseNormal, uv_BaseNormal ), 1.0f );
float3 BaseNormal508 = tex2DNode218;
float2 temp_cast_0 = (_MossTile).xx;
float2 texCoord276 = IN.ase_texcoord4.xy * temp_cast_0 + float2( 0,0 );
float2 TopTiling_Moss279 = texCoord276;
float3 MossNorm1783 = BlendNormal( UnpackNormalScale( tex2D( _MossSnowNormal, TopTiling_Moss279 ), 1.0f ) , BaseNormal508 );
float3 ase_worldBitangent = IN.ase_texcoord5.xyz;
float3 tanToWorld0 = float3( WorldTangent.xyz.x, ase_worldBitangent.x, WorldNormal.x );
float3 tanToWorld1 = float3( WorldTangent.xyz.y, ase_worldBitangent.y, WorldNormal.y );
float3 tanToWorld2 = float3( WorldTangent.xyz.z, ase_worldBitangent.z, WorldNormal.z );
float3 tanNormal302 = BaseNormal508;
float3 worldNormal302 = float3(dot(tanToWorld0,tanNormal302), dot(tanToWorld1,tanNormal302), dot(tanToWorld2,tanNormal302));
float3 PNorm303 = worldNormal302;
float3 temp_cast_1 = (_MossCoverageFalloff).xxx;
float TopAlbedoMask_MOSS317 = saturate( ( pow( saturate( ( PNorm303 + _MossCoverageAmount ) ) , temp_cast_1 ).y * 1.5 ) );
float3 lerpResult1781 = lerp( BaseNormal508 , MossNorm1783 , TopAlbedoMask_MOSS317);
float3 break1517 = tex2DNode218;
float SplitX1516 = break1517.x;
float SplitY1515 = break1517.y;
float lerpResult1696 = lerp( ( ( SplitX1516 + ( SplitY1515 + IN.ase_color.r ) ) * ( IN.ase_color.r * 5.0 ) ) , IN.ase_color.r , IN.ase_color.r);
float RColors1698 = saturate( lerpResult1696 );
float3 lerpResult1789 = lerp( lerpResult1781 , BaseNormal508 , RColors1698);
#ifdef _MOSSSTATICSWITCH_ON
float3 staticSwitch1298 = lerpResult1789;
#else
float3 staticSwitch1298 = BaseNormal508;
#endif
float2 temp_cast_2 = (_SnowTile).xx;
float2 texCoord1270 = IN.ase_texcoord4.xy * temp_cast_2 + float2( 0,0 );
float2 TopTiling_Snow1272 = texCoord1270;
float3 tex2DNode1183 = UnpackNormalScale( tex2D( _MossSnowNormal, TopTiling_Snow1272 ), 1.0f );
float3 temp_cast_3 = (_SNOWCoverageFalloff).xxx;
float TopAlbedoMask_SNOW1103 = pow( saturate( ( PNorm303 + _SNOWCoverageAmount ) ) , temp_cast_3 ).y;
float3 lerpResult1187 = lerp( BlendNormal( tex2DNode1183 , BaseNormal508 ) , tex2DNode1183 , ( TopAlbedoMask_SNOW1103 * _MoreSnow ));
float3 SnowNorm1794 = lerpResult1187;
float3 lerpResult1304 = lerp( staticSwitch1298 , SnowNorm1794 , TopAlbedoMask_SNOW1103);
#ifdef _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
float3 staticSwitch1300 = lerpResult1304;
#else
float3 staticSwitch1300 = staticSwitch1298;
#endif
float3 FinalNormal1364 = staticSwitch1300;
float3 Normal = FinalNormal1364;
float Alpha = 1;
float AlphaClipThreshold = 0.5;
#ifdef ASE_DEPTH_WRITE_ON
float DepthValue = 0;
#endif
#ifdef _ALPHATEST_ON
clip(Alpha - AlphaClipThreshold);
#endif
#ifdef LOD_FADE_CROSSFADE
LODDitheringTransition( IN.clipPos.xyz, unity_LODFade.x );
#endif
#ifdef ASE_DEPTH_WRITE_ON
outputDepth = DepthValue;
#endif
#if defined(_GBUFFER_NORMALS_OCT)
float2 octNormalWS = PackNormalOctQuadEncode(WorldNormal);
float2 remappedOctNormalWS = saturate(octNormalWS * 0.5 + 0.5);
half3 packedNormalWS = PackFloat2To888(remappedOctNormalWS);
return half4(packedNormalWS, 0.0);
#else
#if defined(_NORMALMAP)
#if _NORMAL_DROPOFF_TS
float crossSign = (WorldTangent.w > 0.0 ? 1.0 : -1.0) * GetOddNegativeScale();
float3 bitangent = crossSign * cross(WorldNormal.xyz, WorldTangent.xyz);
float3 normalWS = TransformTangentToWorld(Normal, half3x3(WorldTangent.xyz, bitangent, WorldNormal.xyz));
#elif _NORMAL_DROPOFF_OS
float3 normalWS = TransformObjectToWorldNormal(Normal);
#elif _NORMAL_DROPOFF_WS
float3 normalWS = Normal;
#endif
#else
float3 normalWS = WorldNormal;
#endif
return half4(NormalizeNormalPerPixel(normalWS), 0.0);
#endif
}
ENDHLSL
}
Pass
{
Name "GBuffer"
Tags { "LightMode"="UniversalGBuffer" }
Blend One Zero, One Zero
ZWrite On
ZTest LEqual
Offset 0 , 0
ColorMask RGBA
HLSLPROGRAM
#define _NORMAL_DROPOFF_TS 1
#pragma multi_compile_instancing
#pragma instancing_options renderinglayer
#pragma multi_compile_fragment _ LOD_FADE_CROSSFADE
#pragma multi_compile_fog
#define ASE_FOG 1
#define _EMISSION
#define _NORMALMAP 1
#define ASE_SRP_VERSION 120110
#pragma multi_compile _ _MAIN_LIGHT_SHADOWS _MAIN_LIGHT_SHADOWS_CASCADE _MAIN_LIGHT_SHADOWS_SCREEN
#pragma multi_compile_fragment _ _REFLECTION_PROBE_BLENDING
#pragma multi_compile_fragment _ _REFLECTION_PROBE_BOX_PROJECTION
#pragma multi_compile_fragment _ _SHADOWS_SOFT
#pragma multi_compile_fragment _ _DBUFFER_MRT1 _DBUFFER_MRT2 _DBUFFER_MRT3
#pragma multi_compile_fragment _ _LIGHT_LAYERS
#pragma multi_compile_fragment _ _RENDER_PASS_ENABLED
#pragma shader_feature_local _RECEIVE_SHADOWS_OFF
#pragma shader_feature_local_fragment _SPECULARHIGHLIGHTS_OFF
#pragma shader_feature_local_fragment _ENVIRONMENTREFLECTIONS_OFF
#pragma multi_compile _ LIGHTMAP_SHADOW_MIXING
#pragma multi_compile _ SHADOWS_SHADOWMASK
#pragma multi_compile _ DIRLIGHTMAP_COMBINED
#pragma multi_compile _ LIGHTMAP_ON
#pragma multi_compile _ DYNAMICLIGHTMAP_ON
#pragma multi_compile_fragment _ _GBUFFER_NORMALS_OCT
#pragma vertex vert
#pragma fragment frag
#define SHADERPASS SHADERPASS_GBUFFER
#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.universal/ShaderLibrary/Input.hlsl"
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/TextureStack.hlsl"
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/Shadows.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"
#if defined(UNITY_INSTANCING_ENABLED) && defined(_TERRAIN_INSTANCED_PERPIXEL_NORMAL)
#define ENABLE_TERRAIN_PERPIXEL_NORMAL
#endif
#define ASE_NEEDS_FRAG_WORLD_NORMAL
#define ASE_NEEDS_FRAG_COLOR
#define ASE_NEEDS_FRAG_WORLD_TANGENT
#define ASE_NEEDS_FRAG_WORLD_BITANGENT
#define ASE_NEEDS_FRAG_SCREEN_POSITION
#define ASE_NEEDS_FRAG_WORLD_POSITION
#define ASE_NEEDS_FRAG_WORLD_VIEW_DIR
#pragma shader_feature_local _RAINRIPPLESSTATICSWITCH_ON
#pragma shader_feature_local _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
#pragma shader_feature_local _MOSSSTATICSWITCH_ON
struct VertexInput
{
float4 vertex : POSITION;
float3 ase_normal : NORMAL;
float4 ase_tangent : TANGENT;
float4 texcoord : TEXCOORD0;
float4 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
float4 ase_color : COLOR;
UNITY_VERTEX_INPUT_INSTANCE_ID
};
struct VertexOutput
{
float4 clipPos : SV_POSITION;
float4 lightmapUVOrVertexSH : TEXCOORD0;
half4 fogFactorAndVertexLight : TEXCOORD1;
#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)
float4 shadowCoord : TEXCOORD2;
#endif
float4 tSpace0 : TEXCOORD3;
float4 tSpace1 : TEXCOORD4;
float4 tSpace2 : TEXCOORD5;
#if defined(ASE_NEEDS_FRAG_SCREEN_POSITION)
float4 screenPos : TEXCOORD6;
#endif
#if defined(DYNAMICLIGHTMAP_ON)
float2 dynamicLightmapUV : TEXCOORD7;
#endif
float4 ase_texcoord8 : TEXCOORD8;
float4 ase_color : COLOR;
float4 ase_texcoord9 : TEXCOORD9;
UNITY_VERTEX_INPUT_INSTANCE_ID
UNITY_VERTEX_OUTPUT_STEREO
};
CBUFFER_START(UnityPerMaterial)
float4 _EdgeColor;
float4 _BaseColor;
float4 _DetailMask1_ST;
float4 _MossDirtColor;
float4 _MossColor;
float4 _MudColor;
float4 _RimColor3;
float4 _SnowColor;
float4 _BaseNormal_ST;
float4 _MudWetColor;
float2 _RainScale;
float _RainIntensity;
float _RipplesBaseColor;
float _FlowSpeed;
float _Distortion;
float _RainOnTop;
float _SnowTile;
float _RIpplesTile;
float _MoreSnow;
float _RimPower;
float _Roughness;
float _MossRoughness;
float _SnowRoughness;
float _RainBaseColor;
float _GradientTile;
float _SparkleScale;
float _SNOWCoverageAmount;
float _EdgeValue;
float _MossDirtValue;
float _MossTile;
float _AOMoss;
float _MudCoverageAmount;
float _MudCoverageFalloff;
float _SNOWCoverageFalloff;
float _MudCoverageIntensity;
float _MossCoverageFalloff;
float _SparkleCutoff;
float _SparkleScale2;
float _SpraklesTile;
float _VertexWetness;
float _SparklesIntensity;
float _MossCoverageAmount;
float _AO;
#ifdef ASE_TRANSMISSION
float _TransmissionShadow;
#endif
#ifdef ASE_TRANSLUCENCY
float _TransStrength;
float _TransNormal;
float _TransScattering;
float _TransDirect;
float _TransAmbient;
float _TransShadow;
#endif
#ifdef ASE_TESSELLATION
float _TessPhongStrength;
float _TessValue;
float _TessMin;
float _TessMax;
float _TessEdgeLength;
float _TessMaxDisp;
#endif
CBUFFER_END
// Property used by ScenePickingPass
#ifdef SCENEPICKINGPASS
float4 _SelectionID;
#endif
// Properties used by SceneSelectionPass
#ifdef SCENESELECTIONPASS
int _ObjectId;
int _PassValue;
#endif
sampler2D _DetailMask1;
sampler2D _DetailMask2;
sampler2D _BaseNormal;
sampler2D _MossSnowNormal;
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/Varyings.hlsl"
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/UnityGBuffer.hlsl"
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/PBRGBufferPass.hlsl"
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_texcoord8.xy = v.texcoord.xy;
o.ase_color = v.ase_color;
o.ase_texcoord9 = v.vertex;
//setting value to unused interpolator channels and avoid initialization warnings
o.ase_texcoord8.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 positionVS = TransformWorldToView( positionWS );
float4 positionCS = TransformWorldToHClip( positionWS );
VertexNormalInputs normalInput = GetVertexNormalInputs( v.ase_normal, v.ase_tangent );
o.tSpace0 = float4( normalInput.normalWS, positionWS.x);
o.tSpace1 = float4( normalInput.tangentWS, positionWS.y);
o.tSpace2 = float4( normalInput.bitangentWS, positionWS.z);
#if defined(LIGHTMAP_ON)
OUTPUT_LIGHTMAP_UV(v.texcoord1, unity_LightmapST, o.lightmapUVOrVertexSH.xy);
#endif
#if defined(DYNAMICLIGHTMAP_ON)
o.dynamicLightmapUV.xy = v.texcoord2.xy * unity_DynamicLightmapST.xy + unity_DynamicLightmapST.zw;
#endif
#if !defined(LIGHTMAP_ON)
OUTPUT_SH(normalInput.normalWS.xyz, o.lightmapUVOrVertexSH.xyz);
#endif
#if defined(ENABLE_TERRAIN_PERPIXEL_NORMAL)
o.lightmapUVOrVertexSH.zw = v.texcoord;
o.lightmapUVOrVertexSH.xy = v.texcoord * unity_LightmapST.xy + unity_LightmapST.zw;
#endif
half3 vertexLight = VertexLighting( positionWS, normalInput.normalWS );
o.fogFactorAndVertexLight = half4(0, vertexLight);
#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)
VertexPositionInputs vertexInput = (VertexPositionInputs)0;
vertexInput.positionWS = positionWS;
vertexInput.positionCS = positionCS;
o.shadowCoord = GetShadowCoord( vertexInput );
#endif
o.clipPos = positionCS;
#if defined(ASE_NEEDS_FRAG_SCREEN_POSITION)
o.screenPos = ComputeScreenPos(positionCS);
#endif
return o;
}
#if defined(ASE_TESSELLATION)
struct VertexControl
{
float4 vertex : INTERNALTESSPOS;
float3 ase_normal : NORMAL;
float4 ase_tangent : TANGENT;
float4 texcoord : TEXCOORD0;
float4 texcoord1 : TEXCOORD1;
float4 texcoord2 : TEXCOORD2;
float4 ase_color : COLOR;
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_tangent = v.ase_tangent;
o.texcoord = v.texcoord;
o.texcoord1 = v.texcoord1;
o.texcoord2 = v.texcoord2;
o.ase_color = v.ase_color;
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_tangent = patch[0].ase_tangent * bary.x + patch[1].ase_tangent * bary.y + patch[2].ase_tangent * bary.z;
o.texcoord = patch[0].texcoord * bary.x + patch[1].texcoord * bary.y + patch[2].texcoord * bary.z;
o.texcoord1 = patch[0].texcoord1 * bary.x + patch[1].texcoord1 * bary.y + patch[2].texcoord1 * bary.z;
o.texcoord2 = patch[0].texcoord2 * bary.x + patch[1].texcoord2 * bary.y + patch[2].texcoord2 * bary.z;
o.ase_color = patch[0].ase_color * bary.x + patch[1].ase_color * bary.y + patch[2].ase_color * 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
#if defined(ASE_EARLY_Z_DEPTH_OPTIMIZE)
#define ASE_SV_DEPTH SV_DepthLessEqual
#else
#define ASE_SV_DEPTH SV_Depth
#endif
FragmentOutput frag ( VertexOutput IN
#ifdef ASE_DEPTH_WRITE_ON
,out float outputDepth : ASE_SV_DEPTH
#endif
)
{
UNITY_SETUP_INSTANCE_ID(IN);
UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(IN);
#ifdef LOD_FADE_CROSSFADE
LODDitheringTransition( IN.clipPos.xyz, unity_LODFade.x );
#endif
#if defined(ENABLE_TERRAIN_PERPIXEL_NORMAL)
float2 sampleCoords = (IN.lightmapUVOrVertexSH.zw / _TerrainHeightmapRecipSize.zw + 0.5f) * _TerrainHeightmapRecipSize.xy;
float3 WorldNormal = TransformObjectToWorldNormal(normalize(SAMPLE_TEXTURE2D(_TerrainNormalmapTexture, sampler_TerrainNormalmapTexture, sampleCoords).rgb * 2 - 1));
float3 WorldTangent = -cross(GetObjectToWorldMatrix()._13_23_33, WorldNormal);
float3 WorldBiTangent = cross(WorldNormal, -WorldTangent);
#else
float3 WorldNormal = normalize( IN.tSpace0.xyz );
float3 WorldTangent = IN.tSpace1.xyz;
float3 WorldBiTangent = IN.tSpace2.xyz;
#endif
float3 WorldPosition = float3(IN.tSpace0.w,IN.tSpace1.w,IN.tSpace2.w);
float3 WorldViewDirection = _WorldSpaceCameraPos.xyz - WorldPosition;
float4 ShadowCoords = float4( 0, 0, 0, 0 );
#if defined(ASE_NEEDS_FRAG_SCREEN_POSITION)
float4 ScreenPos = IN.screenPos;
#endif
float2 NormalizedScreenSpaceUV = GetNormalizedScreenSpaceUV(IN.clipPos);
#if defined(REQUIRES_VERTEX_SHADOW_COORD_INTERPOLATOR)
ShadowCoords = IN.shadowCoord;
#elif defined(MAIN_LIGHT_CALCULATE_SHADOWS)
ShadowCoords = TransformWorldToShadowCoord( WorldPosition );
#else
ShadowCoords = float4(0, 0, 0, 0);
#endif
WorldViewDirection = SafeNormalize( WorldViewDirection );
float2 uv_DetailMask1 = IN.ase_texcoord8.xy * _DetailMask1_ST.xy + _DetailMask1_ST.zw;
float4 tex2DNode210 = tex2D( _DetailMask1, uv_DetailMask1 );
float temp_output_497_0 = ( 1.0 - tex2DNode210.b );
float2 temp_cast_0 = (_MossTile).xx;
float2 texCoord276 = IN.ase_texcoord8.xy * temp_cast_0 + float2( 0,0 );
float2 TopTiling_Moss279 = texCoord276;
float4 tex2DNode1860 = tex2D( _DetailMask2, TopTiling_Moss279 );
float4 temp_output_675_0 = ( _MossColor * tex2DNode1860.b );
float4 lerpResult1273 = lerp( ( ( ( _EdgeColor * _BaseColor ) + ( _EdgeColor * tex2DNode210.g * _EdgeValue ) ) + ( temp_output_497_0 * _MossDirtValue * _MossDirtColor ) ) , temp_output_675_0 , ( _AOMoss * temp_output_497_0 ));
float temp_output_1408_0 = pow( saturate( ( -WorldNormal.y + _MudCoverageAmount ) ) , _MudCoverageFalloff );
float4 lerpResult1400 = lerp( lerpResult1273 , ( _MudColor * temp_output_1408_0 ) , saturate( ( temp_output_1408_0 * _MudCoverageIntensity ) ));
float2 uv_BaseNormal = IN.ase_texcoord8.xy * _BaseNormal_ST.xy + _BaseNormal_ST.zw;
float3 tex2DNode218 = UnpackNormalScale( tex2D( _BaseNormal, uv_BaseNormal ), 1.0f );
float3 break1517 = tex2DNode218;
float SplitX1516 = break1517.x;
float SplitY1515 = break1517.y;
float lerpResult1511 = lerp( ( ( SplitX1516 + ( SplitY1515 + IN.ase_color.g ) ) * ( IN.ase_color.g * 5.0 ) ) , IN.ase_color.g , IN.ase_color.g);
float GColors1509 = saturate( lerpResult1511 );
float4 lerpResult1521 = lerp( lerpResult1400 , _MudColor , GColors1509);
float4 lerpResult1845 = lerp( ( 0.4 * lerpResult1521 ) , _MudWetColor , IN.ase_color.g);
float4 lerpResult1837 = lerp( lerpResult1521 , lerpResult1845 , IN.ase_color.b);
float4 BaseColorFirstPass1404 = lerpResult1837;
float3 BaseNormal508 = tex2DNode218;
float3 tanToWorld0 = float3( WorldTangent.x, WorldBiTangent.x, WorldNormal.x );
float3 tanToWorld1 = float3( WorldTangent.y, WorldBiTangent.y, WorldNormal.y );
float3 tanToWorld2 = float3( WorldTangent.z, WorldBiTangent.z, WorldNormal.z );
float3 tanNormal302 = BaseNormal508;
float3 worldNormal302 = float3(dot(tanToWorld0,tanNormal302), dot(tanToWorld1,tanNormal302), dot(tanToWorld2,tanNormal302));
float3 PNorm303 = worldNormal302;
float3 temp_cast_1 = (_MossCoverageFalloff).xxx;
float TopAlbedoMask_MOSS317 = saturate( ( pow( saturate( ( PNorm303 + _MossCoverageAmount ) ) , temp_cast_1 ).y * 1.5 ) );
float4 lerpResult321 = lerp( BaseColorFirstPass1404 , temp_output_675_0 , TopAlbedoMask_MOSS317);
float lerpResult1696 = lerp( ( ( SplitX1516 + ( SplitY1515 + IN.ase_color.r ) ) * ( IN.ase_color.r * 5.0 ) ) , IN.ase_color.r , IN.ase_color.r);
float RColors1698 = saturate( lerpResult1696 );
float4 lerpResult1481 = lerp( lerpResult321 , BaseColorFirstPass1404 , RColors1698);
#ifdef _MOSSSTATICSWITCH_ON
float4 staticSwitch1264 = lerpResult1481;
#else
float4 staticSwitch1264 = BaseColorFirstPass1404;
#endif
float2 _Vector0 = float2(20,25);
float4 ase_screenPosNorm = ScreenPos / ScreenPos.w;
ase_screenPosNorm.z = ( UNITY_NEAR_CLIP_VALUE >= 0 ) ? ase_screenPosNorm.z : ase_screenPosNorm.z * 0.5 + 0.5;
float4 lerpResult1356 = lerp( ( float4( _Vector0, 0.0 , 0.0 ) * ase_screenPosNorm ) , float4( ( float3( _Vector0 , 0.0 ) * WorldPosition ) , 0.0 ) , 0.8);
float4 tex2DNode1147 = tex2D( _DetailMask2, ( lerpResult1356 * _SparkleScale2 ).xy );
float2 temp_cast_6 = (_SpraklesTile).xx;
float2 texCoord1143 = IN.ase_texcoord8.xy * temp_cast_6 + float2( 0,0 );
float4 tex2DNode1146 = tex2D( _DetailMask2, ( texCoord1143 * _SparkleScale ) );
float Sparkles1153 = ( step( _SparkleCutoff , ( tex2DNode1147.a * tex2DNode1146.a ) ) * _SparklesIntensity );
float3 temp_cast_7 = (_SNOWCoverageFalloff).xxx;
float TopAlbedoMask_SNOW1103 = pow( saturate( ( PNorm303 + _SNOWCoverageAmount ) ) , temp_cast_7 ).y;
float4 lerpResult1083 = lerp( staticSwitch1264 , ( ( _SnowColor * 0.8 ) + Sparkles1153 ) , TopAlbedoMask_SNOW1103);
#ifdef _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
float4 staticSwitch1259 = lerpResult1083;
#else
float4 staticSwitch1259 = staticSwitch1264;
#endif
float4 BASE_M1322 = staticSwitch1259;
float2 temp_cast_8 = (_GradientTile).xx;
float2 texCoord767 = IN.ase_texcoord8.xy * temp_cast_8 + float2( 0,0 );
float2 temp_cast_9 = (_RIpplesTile).xx;
float2 texCoord765 = IN.ase_texcoord8.xy * temp_cast_9 + float2( 0,0 );
float4 tex2DNode960 = tex2D( _DetailMask2, texCoord765 );
float2 temp_cast_10 = (tex2DNode960.g).xx;
float2 panner766 = ( 1.0 * _Time.y * float2( 0.4,0.4 ) + temp_cast_10);
float temp_output_804_0 = saturate( ( ( tex2D( _DetailMask2, ( texCoord767 + panner766 ) ).r * tex2DNode960.g ) * 10.0 ) );
float lerpResult1010 = lerp( ( temp_output_804_0 * 5.0 ) , ( temp_output_804_0 * _RainIntensity ) , _RainIntensity);
float Ripples777 = lerpResult1010;
float temp_output_836_0 = ( _TimeParameters.x * _FlowSpeed );
float4 transform842 = mul(GetObjectToWorldMatrix(),float4( IN.ase_texcoord9.xyz , 0.0 ));
float2 panner844 = ( temp_output_836_0 * float2( 0,0.1 ) + ( (transform842).zy * _RainScale ));
float3 Dis904 = ( BaseNormal508 * _Distortion );
float3 temp_cast_14 = (0.28).xxx;
float3 break1627 = ( abs( WorldNormal ) - temp_cast_14 );
float X1628 = break1627.x;
float lerpResult1646 = lerp( 0.0 , tex2D( _DetailMask2, ( float3( panner844 , 0.0 ) + Dis904 ).xy ).r , X1628);
float2 panner1569 = ( temp_output_836_0 * float2( 0,0.1 ) + ( _RainScale * (transform842).xy ));
float4 tex2DNode1614 = tex2D( _DetailMask2, ( Dis904 + float3( panner1569 , 0.0 ) ).xy );
float Z1629 = break1627.z;
float lerpResult1648 = lerp( 0.0 , tex2DNode1614.r , Z1629);
float Y1676 = break1627.y;
float lerpResult1675 = lerp( 0.0 , tex2DNode1614.r , ( Y1676 * _RainOnTop ));
float SteaksRouighness983 = saturate( ( lerpResult1646 + lerpResult1648 + lerpResult1675 ) );
float4 lerpResult1710 = lerp( ( BASE_M1322 + ( ( ( Ripples777 * _RipplesBaseColor ) + ( SteaksRouighness983 * _RainBaseColor ) ) * _RainIntensity ) ) , BASE_M1322 , ( 1.0 - IN.ase_color.a ));
#ifdef _RAINRIPPLESSTATICSWITCH_ON
float4 staticSwitch994 = lerpResult1710;
#else
float4 staticSwitch994 = BASE_M1322;
#endif
float4 Albedo991 = staticSwitch994;
float3 MossNorm1783 = BlendNormal( UnpackNormalScale( tex2D( _MossSnowNormal, TopTiling_Moss279 ), 1.0f ) , BaseNormal508 );
float3 lerpResult1781 = lerp( BaseNormal508 , MossNorm1783 , TopAlbedoMask_MOSS317);
float3 lerpResult1789 = lerp( lerpResult1781 , BaseNormal508 , RColors1698);
#ifdef _MOSSSTATICSWITCH_ON
float3 staticSwitch1298 = lerpResult1789;
#else
float3 staticSwitch1298 = BaseNormal508;
#endif
float2 temp_cast_18 = (_SnowTile).xx;
float2 texCoord1270 = IN.ase_texcoord8.xy * temp_cast_18 + float2( 0,0 );
float2 TopTiling_Snow1272 = texCoord1270;
float3 tex2DNode1183 = UnpackNormalScale( tex2D( _MossSnowNormal, TopTiling_Snow1272 ), 1.0f );
float3 lerpResult1187 = lerp( BlendNormal( tex2DNode1183 , BaseNormal508 ) , tex2DNode1183 , ( TopAlbedoMask_SNOW1103 * _MoreSnow ));
float3 SnowNorm1794 = lerpResult1187;
float3 lerpResult1304 = lerp( staticSwitch1298 , SnowNorm1794 , TopAlbedoMask_SNOW1103);
#ifdef _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
float3 staticSwitch1300 = lerpResult1304;
#else
float3 staticSwitch1300 = staticSwitch1298;
#endif
float3 FinalNormal1364 = staticSwitch1300;
float fresnelNdotV1031 = dot( WorldNormal, WorldViewDirection );
float fresnelNode1031 = ( 0.0 + 2.24 * pow( 1.0 - fresnelNdotV1031, _RimPower ) );
float4 lerpResult1035 = lerp( float4( 0,0,0,0 ) , ( _RimColor3 * fresnelNode1031 ) , TopAlbedoMask_SNOW1103);
#ifdef _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
float4 staticSwitch1036 = lerpResult1035;
#else
float4 staticSwitch1036 = float4( 0,0,0,0 );
#endif
float4 Emission1357 = staticSwitch1036;
float temp_output_507_0 = ( tex2DNode210.r * _Roughness );
float mg1849 = tex2DNode1860.b;
float lerpResult1738 = lerp( temp_output_507_0 , ( mg1849 * _MossRoughness ) , TopAlbedoMask_MOSS317);
float lerpResult1748 = lerp( lerpResult1738 , temp_output_507_0 , RColors1698);
#ifdef _MOSSSTATICSWITCH_ON
float staticSwitch1761 = lerpResult1748;
#else
float staticSwitch1761 = temp_output_507_0;
#endif
float lerpResult1767 = lerp( staticSwitch1761 , _SnowRoughness , TopAlbedoMask_SNOW1103);
#ifdef _SNOWSPARKLESRIMCOLORSTATICSWITCH_ON
float staticSwitch1765 = lerpResult1767;
#else
float staticSwitch1765 = staticSwitch1761;
#endif
float lerpResult1682 = lerp( staticSwitch1765 , _VertexWetness , IN.ase_color.b);
float temp_output_1755_0 = saturate( lerpResult1682 );
float lerpResult951 = lerp( ( ( ( 0.4 + SteaksRouighness983 ) + Ripples777 ) * _RainIntensity ) , temp_output_1755_0 , ( 1.0 - IN.ase_color.a ));
float lerpResult1867 = lerp( temp_output_1755_0 , lerpResult951 , _RainIntensity);
#ifdef _RAINRIPPLESSTATICSWITCH_ON
float staticSwitch941 = lerpResult1867;
#else
float staticSwitch941 = temp_output_1755_0;
#endif
float RainRipplesRoughnessBaseColorOpactiy988 = staticSwitch941;
float lerpResult1862 = lerp( tex2DNode210.b , 1.0 , ( 1.0 - _AO ));
float FinalAO1360 = lerpResult1862;
float3 BaseColor = Albedo991.rgb;
float3 Normal = FinalNormal1364;
float3 Emission = Emission1357.rgb;
float3 Specular = 0.5;
float Metallic = 0;
float Smoothness = RainRipplesRoughnessBaseColorOpactiy988;
float Occlusion = FinalAO1360;
float Alpha = 1;
float AlphaClipThreshold = 0.5;
float AlphaClipThresholdShadow = 0.5;
float3 BakedGI = 0;
float3 RefractionColor = 1;
float RefractionIndex = 1;
float3 Transmission = 1;
float3 Translucency = 1;
#ifdef ASE_DEPTH_WRITE_ON
float DepthValue = 0;
#endif
#ifdef _ALPHATEST_ON
clip(Alpha - AlphaClipThreshold);
#endif
InputData inputData = (InputData)0;
inputData.positionWS = WorldPosition;
inputData.positionCS = IN.clipPos;
inputData.shadowCoord = ShadowCoords;
#ifdef _NORMALMAP
#if _NORMAL_DROPOFF_TS
inputData.normalWS = TransformTangentToWorld(Normal, half3x3( WorldTangent, WorldBiTangent, WorldNormal ));
#elif _NORMAL_DROPOFF_OS
inputData.normalWS = TransformObjectToWorldNormal(Normal);
#elif _NORMAL_DROPOFF_WS
inputData.normalWS = Normal;
#endif
#else
inputData.normalWS = WorldNormal;
#endif
inputData.normalWS = NormalizeNormalPerPixel(inputData.normalWS);
inputData.viewDirectionWS = SafeNormalize( WorldViewDirection );
inputData.vertexLighting = IN.fogFactorAndVertexLight.yzw;
#if defined(ENABLE_TERRAIN_PERPIXEL_NORMAL)
float3 SH = SampleSH(inputData.normalWS.xyz);
#else
float3 SH = IN.lightmapUVOrVertexSH.xyz;
#endif
#ifdef ASE_BAKEDGI
inputData.bakedGI = BakedGI;
#else
#if defined(DYNAMICLIGHTMAP_ON)
inputData.bakedGI = SAMPLE_GI( IN.lightmapUVOrVertexSH.xy, IN.dynamicLightmapUV.xy, SH, inputData.normalWS);
#else
inputData.bakedGI = SAMPLE_GI( IN.lightmapUVOrVertexSH.xy, SH, inputData.normalWS );
#endif
#endif
inputData.normalizedScreenSpaceUV = NormalizedScreenSpaceUV;
inputData.shadowMask = SAMPLE_SHADOWMASK(IN.lightmapUVOrVertexSH.xy);
#if defined(DEBUG_DISPLAY)
#if defined(DYNAMICLIGHTMAP_ON)
inputData.dynamicLightmapUV = IN.dynamicLightmapUV.xy;
#endif
#if defined(LIGHTMAP_ON)
inputData.staticLightmapUV = IN.lightmapUVOrVertexSH.xy;
#else
inputData.vertexSH = SH;
#endif
#endif
#ifdef _DBUFFER
ApplyDecal(IN.clipPos,
BaseColor,
Specular,
inputData.normalWS,
Metallic,
Occlusion,
Smoothness);
#endif
BRDFData brdfData;
InitializeBRDFData
(BaseColor, Metallic, Specular, Smoothness, Alpha, brdfData);
Light mainLight = GetMainLight(inputData.shadowCoord, inputData.positionWS, inputData.shadowMask);
half4 color;
MixRealtimeAndBakedGI(mainLight, inputData.normalWS, inputData.bakedGI, inputData.shadowMask);
color.rgb = GlobalIllumination(brdfData, inputData.bakedGI, Occlusion, inputData.positionWS, inputData.normalWS, inputData.viewDirectionWS);
color.a = Alpha;
#ifdef ASE_FINAL_COLOR_ALPHA_MULTIPLY
color.rgb *= color.a;
#endif
#ifdef ASE_DEPTH_WRITE_ON
outputDepth = DepthValue;
#endif
return BRDFDataToGbuffer(brdfData, inputData, Smoothness, Emission + color.rgb, Occlusion);
}
ENDHLSL
}
Pass
{
Name "SceneSelectionPass"
Tags { "LightMode"="SceneSelectionPass" }
Cull Off
HLSLPROGRAM
#define _NORMAL_DROPOFF_TS 1
#define ASE_FOG 1
#define _EMISSION
#define _NORMALMAP 1
#define ASE_SRP_VERSION 120110
#pragma vertex vert
#pragma fragment frag
#define SCENESELECTIONPASS 1
#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.universal/ShaderLibrary/Input.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;
UNITY_VERTEX_INPUT_INSTANCE_ID
};
struct VertexOutput
{
float4 clipPos : SV_POSITION;
UNITY_VERTEX_INPUT_INSTANCE_ID
UNITY_VERTEX_OUTPUT_STEREO
};
CBUFFER_START(UnityPerMaterial)
float4 _EdgeColor;
float4 _BaseColor;
float4 _DetailMask1_ST;
float4 _MossDirtColor;
float4 _MossColor;
float4 _MudColor;
float4 _RimColor3;
float4 _SnowColor;
float4 _BaseNormal_ST;
float4 _MudWetColor;
float2 _RainScale;
float _RainIntensity;
float _RipplesBaseColor;
float _FlowSpeed;
float _Distortion;
float _RainOnTop;
float _SnowTile;
float _RIpplesTile;
float _MoreSnow;
float _RimPower;
float _Roughness;
float _MossRoughness;
float _SnowRoughness;
float _RainBaseColor;
float _GradientTile;
float _SparkleScale;
float _SNOWCoverageAmount;
float _EdgeValue;
float _MossDirtValue;
float _MossTile;
float _AOMoss;
float _MudCoverageAmount;
float _MudCoverageFalloff;
float _SNOWCoverageFalloff;
float _MudCoverageIntensity;
float _MossCoverageFalloff;
float _SparkleCutoff;
float _SparkleScale2;
float _SpraklesTile;
float _VertexWetness;
float _SparklesIntensity;
float _MossCoverageAmount;
float _AO;
#ifdef ASE_TRANSMISSION
float _TransmissionShadow;
#endif
#ifdef ASE_TRANSLUCENCY
float _TransStrength;
float _TransNormal;
float _TransScattering;
float _TransDirect;
float _TransAmbient;
float _TransShadow;
#endif
#ifdef ASE_TESSELLATION
float _TessPhongStrength;
float _TessValue;
float _TessMin;
float _TessMax;
float _TessEdgeLength;
float _TessMaxDisp;
#endif
CBUFFER_END
// Property used by ScenePickingPass
#ifdef SCENEPICKINGPASS
float4 _SelectionID;
#endif
// Properties used by SceneSelectionPass
#ifdef SCENESELECTIONPASS
int _ObjectId;
int _PassValue;
#endif
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/Varyings.hlsl"
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/SelectionPickingPass.hlsl"
//#ifdef HAVE_VFX_MODIFICATION
//#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/VisualEffectVertex.hlsl"
//#endif
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);
#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(ASE_TESSELLATION)
struct VertexControl
{
float4 vertex : INTERNALTESSPOS;
float3 ase_normal : NORMAL;
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;
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;
#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;
surfaceDescription.Alpha = 1;
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;
#ifdef SCENESELECTIONPASS
outColor = half4(_ObjectId, _PassValue, 1.0, 1.0);
#elif defined(SCENEPICKINGPASS)
outColor = _SelectionID;
#endif
return outColor;
}
ENDHLSL
}
Pass
{
Name "ScenePickingPass"
Tags { "LightMode"="Picking" }
HLSLPROGRAM
#define _NORMAL_DROPOFF_TS 1
#define ASE_FOG 1
#define _EMISSION
#define _NORMALMAP 1
#define ASE_SRP_VERSION 120110
#pragma vertex vert
#pragma fragment frag
#define SCENEPICKINGPASS 1
#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.universal/ShaderLibrary/Input.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;
UNITY_VERTEX_INPUT_INSTANCE_ID
};
struct VertexOutput
{
float4 clipPos : SV_POSITION;
UNITY_VERTEX_INPUT_INSTANCE_ID
UNITY_VERTEX_OUTPUT_STEREO
};
CBUFFER_START(UnityPerMaterial)
float4 _EdgeColor;
float4 _BaseColor;
float4 _DetailMask1_ST;
float4 _MossDirtColor;
float4 _MossColor;
float4 _MudColor;
float4 _RimColor3;
float4 _SnowColor;
float4 _BaseNormal_ST;
float4 _MudWetColor;
float2 _RainScale;
float _RainIntensity;
float _RipplesBaseColor;
float _FlowSpeed;
float _Distortion;
float _RainOnTop;
float _SnowTile;
float _RIpplesTile;
float _MoreSnow;
float _RimPower;
float _Roughness;
float _MossRoughness;
float _SnowRoughness;
float _RainBaseColor;
float _GradientTile;
float _SparkleScale;
float _SNOWCoverageAmount;
float _EdgeValue;
float _MossDirtValue;
float _MossTile;
float _AOMoss;
float _MudCoverageAmount;
float _MudCoverageFalloff;
float _SNOWCoverageFalloff;
float _MudCoverageIntensity;
float _MossCoverageFalloff;
float _SparkleCutoff;
float _SparkleScale2;
float _SpraklesTile;
float _VertexWetness;
float _SparklesIntensity;
float _MossCoverageAmount;
float _AO;
#ifdef ASE_TRANSMISSION
float _TransmissionShadow;
#endif
#ifdef ASE_TRANSLUCENCY
float _TransStrength;
float _TransNormal;
float _TransScattering;
float _TransDirect;
float _TransAmbient;
float _TransShadow;
#endif
#ifdef ASE_TESSELLATION
float _TessPhongStrength;
float _TessValue;
float _TessMin;
float _TessMax;
float _TessEdgeLength;
float _TessMaxDisp;
#endif
CBUFFER_END
// Property used by ScenePickingPass
#ifdef SCENEPICKINGPASS
float4 _SelectionID;
#endif
// Properties used by SceneSelectionPass
#ifdef SCENESELECTIONPASS
int _ObjectId;
int _PassValue;
#endif
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/Varyings.hlsl"
//#include "Packages/com.unity.render-pipelines.universal/Editor/ShaderGraph/Includes/SelectionPickingPass.hlsl"
//#ifdef HAVE_VFX_MODIFICATION
//#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/VisualEffectVertex.hlsl"
//#endif
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);
#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(ASE_TESSELLATION)
struct VertexControl
{
float4 vertex : INTERNALTESSPOS;
float3 ase_normal : NORMAL;
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;
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;
#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;
surfaceDescription.Alpha = 1;
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;
#ifdef SCENESELECTIONPASS
outColor = half4(_ObjectId, _PassValue, 1.0, 1.0);
#elif defined(SCENEPICKINGPASS)
outColor = _SelectionID;
#endif
return outColor;
}
ENDHLSL
}
}
CustomEditor "UnityEditor.ShaderGraphLitGUI"
FallBack "Hidden/Shader Graph/FallbackError"
Fallback Off
}
/*ASEBEGIN
Version=19105
Node;AmplifyShaderEditor.CommentaryNode;816;-7648.088,317.3181;Inherit;False;3034.327;556.3071;Comment;21;767;795;768;766;786;960;765;764;684;1068;1025;1011;1012;804;781;782;772;1000;1022;1462;1288;Ripples;1,1,1,1;0;0
Node;AmplifyShaderEditor.TexturePropertyNode;684;-7365.686,459.9317;Inherit;True;Property;_DetailMask2;Detail Mask2;48;0;Create;True;0;0;0;False;0;False;None;8f8f7056e38d7904898641b1b93efa5b;False;white;Auto;Texture2D;-1;0;2;SAMPLER2D;0;SAMPLERSTATE;1
Node;AmplifyShaderEditor.WireNode;1893;-7074.681,284.3033;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.WireNode;1894;-6989.486,262.396;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.WireNode;1892;-6495.354,272.1328;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.WireNode;1891;-6410.159,247.791;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.WireNode;1884;-6389.223,-251.6118;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.WireNode;1885;-6335.298,-288.5133;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.WireNode;1883;-4347.052,-295.1935;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.CommentaryNode;1181;-5680.838,-84.27124;Inherit;False;1063.536;363.3989;Comment;5;218;1516;1515;1517;508;Base Normal Blends;1,1,1,1;0;0
Node;AmplifyShaderEditor.SamplerNode;210;-4518.246,-252.4777;Inherit;True;Property;_DetailMask1;Detail Mask1;47;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.WireNode;1446;-4131.011,-745.7536;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1882;-4261.805,-327.666;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.SamplerNode;218;-5646.144,69.51658;Inherit;True;Property;_BaseNormal;Base Normal;45;0;Create;True;0;0;0;False;0;False;-1;None;None;True;0;True;bump;Auto;True;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;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.CommentaryNode;1042;-4011.95,-1012.62;Inherit;False;513.4541;375.549;Comment;4;243;246;1113;248;Edges;0,1,0,1;0;0
Node;AmplifyShaderEditor.CommentaryNode;272;-6362.021,-101.8474;Inherit;False;631.3555;366.3495;Comment;6;279;1272;273;1270;1271;276;Moss Snow Tiles;1,1,1,1;0;0
Node;AmplifyShaderEditor.CommentaryNode;1051;-3828.456,-604.5776;Inherit;False;596.5018;317;Comment;4;541;542;1444;1447;AO Moss;0,0,1,1;0;0
Node;AmplifyShaderEditor.RangedFloatNode;273;-6319.546,-1.491297;Inherit;False;Property;_MossTile;Moss Tile;0;1;[Header];Create;True;1;TILES;0;0;False;0;False;0;10;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1879;-4191.824,-1003.529;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.OneMinusNode;497;-4049.51,-385.3837;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1445;-4083.01,-789.7536;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.BreakToComponentsNode;1517;-5149.355,82.51087;Inherit;False;FLOAT3;1;0;FLOAT3;0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15
Node;AmplifyShaderEditor.RangedFloatNode;764;-7588.173,718.1876;Inherit;False;Property;_RIpplesTile;RIpples Tile;38;0;Create;True;0;0;0;False;0;False;5;10;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1399;-844.1518,-700.7576;Inherit;False;2053.981;661.7046;Comment;17;1528;1527;1396;1395;1405;1412;1410;1526;1402;1411;1408;1409;1389;1388;1393;1394;1387;;1,1,1,1;0;0
Node;AmplifyShaderEditor.ColorNode;243;-3916.897,-962.6203;Inherit;False;Property;_EdgeColor;Edge Color;5;0;Create;True;0;0;0;False;0;False;0.25,0.178,0.093,0;0.6509804,0.6313726,0.6039216,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.WireNode;1880;-4151.413,-1049.713;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.CommentaryNode;1061;-3146.855,-418.0706;Inherit;False;603.1592;337.9734;Comment;3;485;489;494;Dirt;0,0,1,1;0;0
Node;AmplifyShaderEditor.WireNode;1113;-3731.294,-792.6451;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.TextureCoordinatesNode;276;-6161.532,-20.26043;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.TextureCoordinatesNode;765;-7364.712,701.5187;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.RegisterLocalVarNode;1515;-4972.356,158.5047;Inherit;False;SplitY;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1444;-3758.884,-472.5115;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WorldNormalVector;1387;-794.1518,-424.8979;Inherit;False;False;1;0;FLOAT3;0,0,0;False;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3
Node;AmplifyShaderEditor.RangedFloatNode;248;-3985.746,-744.4426;Inherit;False;Property;_EdgeValue;Edge Value;6;0;Create;True;0;0;0;False;0;False;0;1.233;0;2;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1888;-3493.929,-898.2361;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.CommentaryNode;1523;-6072.8,1984.577;Inherit;False;1556.436;537.1753;Comment;12;1495;1512;1494;1507;1508;1510;1511;1509;1491;1513;1498;1524;G Colors;1,1,1,1;0;0
Node;AmplifyShaderEditor.VertexColorNode;1524;-5995.152,2312.731;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.WireNode;1886;-2875.832,-771.8352;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.CommentaryNode;1075;-2143.659,-1191.779;Inherit;False;994.6027;450.4256;Comment;6;1849;675;674;318;1860;1881;Moss BaseColor;1,1,1,1;0;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;279;-5943.047,-24.04143;Inherit;False;TopTiling_Moss;-1;True;1;0;FLOAT2;0,0;False;1;FLOAT2;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1516;-4971.056,66.60463;Inherit;False;SplitX;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1507;-6022.8,2159.934;Inherit;False;1515;SplitY;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1169;-7022.14,936.8444;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;246;-3660.496,-859.7368;Inherit;False;3;3;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.RangedFloatNode;485;-3125.105,-329.0192;Inherit;False;Property;_MossDirtValue;Moss/Dirt Value;8;0;Create;True;0;0;0;False;0;False;0;10;0;10;0;1;FLOAT;0
Node;AmplifyShaderEditor.ColorNode;489;-3073.396,-255.026;Inherit;False;Property;_MossDirtColor;Moss/Dirt Color;7;0;Create;True;0;0;0;False;0;False;0.01715163,0.254717,0.006007475,0;0.1839997,0.1170906,0,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.RangedFloatNode;542;-3802.011,-549.0279;Inherit;False;Property;_AOMoss;AO Moss;10;0;Create;True;0;0;0;False;0;False;0;0;0;2;0;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;795;-6865.554,384.281;Inherit;False;Property;_GradientTile;Gradient Tile;39;0;Create;True;0;0;0;False;0;False;0;20;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1447;-3713.947,-486.4659;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1393;-767.7489,-269.7606;Float;False;Property;_MudCoverageAmount;Mud Coverage Amount;11;1;[Header];Create;True;1;MUD;0;0;False;0;False;0.2;-1;-1;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1898;-2277.076,-1018.121;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.NegateNode;1394;-559.5034,-389.5509;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SamplerNode;960;-6997.159,665.0973;Inherit;True;Property;_TextureSample1;Texture Sample 1;1;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.ColorNode;1727;-3146.964,-698.2365;Inherit;False;Property;_BaseColor;Base Color;40;1;[Header];Create;True;1;COLORS;0;0;False;0;False;1,1,1,0;1,1,1,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SimpleAddOpNode;1491;-5834.744,2146.456;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;318;-2107.681,-855.1999;Inherit;False;279;TopTiling_Moss;1;0;OBJECT;;False;1;FLOAT2;0
Node;AmplifyShaderEditor.WireNode;1723;-2614.592,-802.3299;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.PannerNode;766;-6648.283,488.5461;Inherit;True;3;0;FLOAT2;0,0;False;2;FLOAT2;0.4,0.4;False;1;FLOAT;1;False;1;FLOAT2;0
Node;AmplifyShaderEditor.TextureCoordinatesNode;767;-6620.54,366.2734;Inherit;False;0;-1;2;3;2;SAMPLER2D;;False;0;FLOAT2;4,4;False;1;FLOAT2;0,0;False;5;FLOAT2;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;494;-2753.128,-379.0452;Inherit;True;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1388;-356.7416,-389.9745;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1494;-5753.12,2248.021;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;541;-3453.153,-545.5776;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1168;-6930.032,958.655;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.GetLocalVarNode;1508;-5981.987,2034.577;Inherit;False;1516;SplitX;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1725;-2787.873,-721.7174;Inherit;True;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.RangedFloatNode;1498;-5727.731,2278.796;Inherit;False;Constant;_MaskIntensityB;Mask Intensity (B);21;0;Create;True;0;0;0;False;0;False;5;5;0;5;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1881;-2128.33,-947.6094;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;508;-5316.511,-6.80892;Inherit;False;BaseNormal;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1673;-5340.263,967.7293;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1513;-5452.569,2110.24;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleAddOpNode;768;-6358.223,453.6026;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
Node;AmplifyShaderEditor.RangedFloatNode;1409;-418.7314,-159.7908;Inherit;False;Property;_MudCoverageFalloff;Mud Coverage Falloff;12;0;Create;True;0;0;0;False;0;False;0.5;0.55;0.01;2;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1274;-2471.658,-411.8544;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.CommentaryNode;1800;-6932.233,-1297.304;Inherit;False;746.2407;309;Comment;3;328;302;303;;1,1,1,1;0;0
Node;AmplifyShaderEditor.ColorNode;674;-1825.738,-1151.111;Inherit;False;Property;_MossColor;Moss Color;41;0;Create;True;1;;0;0;False;0;False;0.2321422,0.754717,0.1886792,0;0.8392157,0.6127949,0.1921568,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SimpleAddOpNode;1495;-5651.339,2040.437;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleAddOpNode;247;-2522.608,-712.0431;Inherit;True;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.SaturateNode;1389;-125.9345,-388.404;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SamplerNode;1860;-1901.809,-972.6887;Inherit;True;Property;_TextureSample3;Texture Sample 3;56;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.WireNode;1462;-5958.719,748.9599;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1439;-1310.526,-505.6101;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;853;-7675.664,1020.751;Inherit;False;4182.611;888.1353;Comment;30;983;1680;1677;1679;1675;1721;1583;1624;1646;1648;1649;1678;1616;1647;1614;917;844;1570;918;840;1569;836;1660;1576;834;827;835;1659;842;843;Rain;1,1,1,1;0;0
Node;AmplifyShaderEditor.CommentaryNode;944;-3416.148,1032.948;Inherit;False;850.2794;342.8147;Comment;4;904;911;919;912;Rain Distortion;1,1,1,1;0;0
Node;AmplifyShaderEditor.WireNode;1414;-1244.207,-533.9601;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.PosVertexDataNode;843;-7650.839,1159.937;Inherit;True;0;0;5;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.RangedFloatNode;1411;-7.582209,-180.1816;Inherit;False;Property;_MudCoverageIntensity;Mud Coverage Intensity;13;0;Create;True;0;0;0;False;0;False;2;0.97;0;2;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1674;-4630.009,967.9214;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;675;-1368.999,-1077.951;Inherit;True;2;2;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.SamplerNode;786;-6179.023,503.5996;Inherit;True;Property;_TextureSample2;Texture Sample 2;1;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.WireNode;1000;-5916.694,727.9487;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;328;-6882.233,-1245.378;Inherit;False;508;BaseNormal;1;0;OBJECT;;False;1;FLOAT3;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1512;-5281.796,2036.163;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.ColorNode;1395;-358.7963,-569.7521;Inherit;False;Property;_MudColor;Mud Color;43;0;Create;True;0;0;0;False;0;False;0.2862745,0.1803922,0.04313726,0;0.6039216,0.454902,0.2745098,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.PowerNode;1408;-16.2704,-288.5306;Inherit;False;False;2;0;FLOAT;0;False;1;FLOAT;1;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1121;-2161.43,-703.3079;Inherit;True;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.WireNode;1526;-41.35109,-509.115;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.RangedFloatNode;782;-5852.8,770.4694;Inherit;False;Constant;_RIpplesIntensity;RIpples Intensity;37;0;Create;True;1;;0;0;False;0;False;10;1;0;10;0;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1670;-3474.792,1421.927;Inherit;False;928.4615;299.1665;Comment;8;1627;1590;1593;1625;1626;1628;1629;1676;Masks;1,1,1,1;0;0
Node;AmplifyShaderEditor.GetLocalVarNode;919;-3398.182,1090.159;Inherit;False;508;BaseNormal;1;0;OBJECT;;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WorldNormalVector;302;-6643.147,-1242.491;Inherit;False;False;1;0;FLOAT3;0,0,0;False;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3
Node;AmplifyShaderEditor.LerpOp;1273;-1116.187,-662.2748;Inherit;True;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.WireNode;1160;-4568.13,943.1686;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1410;248.5372,-298.213;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;912;-3106.818,1289.615;Inherit;False;Property;_Distortion;Distortion;34;0;Create;True;0;0;0;False;0;False;0.1;0.18;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;772;-5798.401,534.7252;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.ObjectToWorldTransfNode;842;-7374.026,1137.268;Inherit;True;1;0;FLOAT4;0,0,0,1;False;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.LerpOp;1511;-5046.453,2271.703;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;835;-6242.328,1334.786;Inherit;False;Property;_FlowSpeed;Flow Speed;35;0;Create;True;0;0;0;False;0;False;1;8;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1396;169.2959,-438.4964;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.WireNode;1402;666.5126,-602.4361;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;303;-6409.992,-1247.304;Float;True;PNorm;3;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.CommentaryNode;656;-3967.035,-1689.31;Inherit;False;1764.797;617.3173;Comment;11;317;1831;1829;1830;316;315;278;313;312;309;274;Moss Coverage ;1,1,1,1;0;0
Node;AmplifyShaderEditor.CommentaryNode;1405;752.3666,-650.0431;Inherit;False;315;304;Comment;1;1400;Rock BaseColor;1,0.68162,0,1;0;0
Node;AmplifyShaderEditor.WireNode;1161;-4569.009,863.0714;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;911;-2925.497,1091.521;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;781;-5518.068,574.7357;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1528;560.3622,-480.1712;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.SwizzleNode;1659;-7052.512,1353.485;Inherit;True;FLOAT2;0;1;2;3;1;0;FLOAT4;0,0,0,0;False;1;FLOAT2;0
Node;AmplifyShaderEditor.SaturateNode;1510;-4892.733,2264.294;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WorldNormalVector;1590;-3448.799,1472.923;Inherit;False;False;1;0;FLOAT3;0,0,0;False;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3
Node;AmplifyShaderEditor.Vector2Node;827;-6703.91,1254.072;Inherit;False;Property;_RainScale;Rain Scale;36;0;Create;True;0;0;0;False;0;False;1,1;0.8,0.8;0;3;FLOAT2;0;FLOAT;1;FLOAT;2
Node;AmplifyShaderEditor.CommentaryNode;1136;-4580.779,-19.13477;Inherit;False;2017.56;876.8102;Sparkles;29;1152;1150;1151;1149;1148;1147;1146;1159;1144;1145;1140;1356;1162;1143;1141;1355;1417;1138;1329;1137;1416;1415;1448;1449;1450;1451;1452;1453;1153;Sparkles;1,1,1,1;0;0
Node;AmplifyShaderEditor.SaturateNode;1412;490.5757,-293.9922;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleTimeNode;834;-6252.187,1198.253;Inherit;False;1;0;FLOAT;1;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1626;-3267.762,1585.622;Inherit;False;Constant;_Float5;Float 5;58;0;Create;True;0;0;0;False;0;False;0.28;0;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;836;-6017.807,1291.202;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;309;-3887.931,-1608.508;Inherit;True;303;PNorm;1;0;OBJECT;;False;1;FLOAT3;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1576;-6490.064,1361.26;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
Node;AmplifyShaderEditor.WireNode;1527;775.6496,-265.6332;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.AbsOpNode;1593;-3222.992,1470.61;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.LerpOp;1400;802.3659,-600.0431;Inherit;True;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.CommentaryNode;1671;1350.106,-413.9722;Inherit;False;528.4161;357.4084;Comment;3;1529;1525;1521;Vertex Mud Mask;0,0.002525806,1,1;0;0
Node;AmplifyShaderEditor.RangedFloatNode;274;-3899.173,-1325.896;Float;False;Property;_MossCoverageAmount;Moss Coverage Amount;17;0;Create;True;0;0;0;False;0;False;0.3058824;-1;-1;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1509;-4740.364,2262.75;Inherit;False;GColors;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;904;-2768.444,1085.628;Inherit;True;Dis;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.SaturateNode;804;-5240.628,508.8851;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1012;-5258.39,701.6851;Inherit;False;Constant;_Float1;Float 1;41;0;Create;True;0;0;0;False;0;False;5;0;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1415;-4558.375,815.8967;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.CommentaryNode;1686;-7658.163,1975.262;Inherit;False;1556.436;537.1753;Comment;12;1698;1697;1696;1695;1694;1693;1692;1691;1690;1689;1688;1687;R Colors;1,1,1,1;0;0
Node;AmplifyShaderEditor.VertexColorNode;1687;-7654.515,2303.416;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.WorldPosInputsNode;1137;-4471.278,350.9739;Inherit;False;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3
Node;AmplifyShaderEditor.ScreenPosInputsNode;1138;-4539.278,157.9739;Float;True;0;False;0;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SwizzleNode;1660;-7049.153,1111.089;Inherit;True;FLOAT2;2;1;2;3;1;0;FLOAT4;0,0,0,0;False;1;FLOAT2;0
Node;AmplifyShaderEditor.GetLocalVarNode;1525;1408.52,-172.5639;Inherit;False;1509;GColors;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1011;-5047.276,589.9419;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1529;1502.672,-244.1147;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleSubtractOpNode;1625;-3096.762,1473.621;Inherit;False;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.PannerNode;1569;-5841.391,1407.301;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0.1;False;1;FLOAT;1;False;1;FLOAT2;0
Node;AmplifyShaderEditor.GetLocalVarNode;918;-5587.433,1265.315;Inherit;False;904;Dis;1;0;OBJECT;;False;1;FLOAT3;0
Node;AmplifyShaderEditor.GetLocalVarNode;1688;-7608.163,2150.619;Inherit;False;1515;SplitY;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1416;-4522.952,785.9929;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.WireNode;1672;1272.975,-339.5772;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleAddOpNode;312;-3671.054,-1548.73;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.Vector2Node;1448;-4463.992,37.39151;Inherit;False;Constant;_Vector0;Vector 0;30;0;Create;True;0;0;0;False;0;False;20,25;0,0;0;3;FLOAT2;0;FLOAT;1;FLOAT;2
Node;AmplifyShaderEditor.RangedFloatNode;1329;-4461.278,518.9739;Inherit;False;Property;_SpraklesTile;Sprakles Tile;2;0;Create;True;0;0;0;False;0;False;2;2;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1450;-4205.922,191.3523;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.RangedFloatNode;278;-3623.271,-1448.671;Float;False;Property;_MossCoverageFalloff;Moss Coverage Falloff;18;0;Create;True;0;0;0;False;0;False;0.5;1.9;0.01;2;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1691;-7338.483,2238.706;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.BreakToComponentsNode;1627;-2955.36,1474.829;Inherit;True;FLOAT3;1;0;FLOAT3;0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15
Node;AmplifyShaderEditor.WireNode;1288;-4807.679,656.3825;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.LerpOp;1521;1624.921,-302.8801;Inherit;True;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1449;-4210.139,42.86935;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT4;0,0,0,0;False;1;FLOAT4;0
Node;AmplifyShaderEditor.RangedFloatNode;1843;1747.3,-545.2367;Inherit;False;Constant;_Float7;Float 7;56;0;Create;True;0;0;0;False;0;False;0.4;0.4;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1437;-3751.404,-83.56596;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1689;-7299.12,2258.303;Inherit;False;Constant;_MaskIntensityR;Mask Intensity (R);19;0;Create;True;0;0;0;False;0;False;5;5;0;5;0;1;FLOAT;0
Node;AmplifyShaderEditor.VertexColorNode;1840;1736.44,-10.58191;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;840;-6501.306,1123.746;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT2;0,0;False;1;FLOAT2;0
Node;AmplifyShaderEditor.RangedFloatNode;1355;-4213.802,315.7514;Inherit;False;Constant;_Float8;Float 8;54;0;Create;True;0;0;0;False;0;False;0.8;1.1;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1690;-7567.349,2025.262;Inherit;False;1516;SplitX;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.SaturateNode;313;-3511.052,-1549.73;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.CommentaryNode;1217;-7639.507,-949.7096;Inherit;False;1455.323;524.6392;Comment;15;1208;1105;1199;1100;1200;1210;1098;1095;1198;1209;1103;1201;1097;1106;1793;Snow Coverage ;1,1,1,1;0;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1692;-7420.107,2137.141;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1570;-5343.477,1379.618;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT2;0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1417;-3779.335,770.8284;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.RangedFloatNode;1141;-4268.278,421.9739;Float;False;Property;_SparkleScale2;Sparkle Scale2;26;0;Create;True;0;0;0;False;0;False;0.23;1;0;10;0;1;FLOAT;0
Node;AmplifyShaderEditor.TextureCoordinatesNode;1143;-4206.278,498.9739;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.PowerNode;315;-3333.098,-1546.713;Inherit;True;False;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1465;-4784.162,865.9536;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1162;-3747.335,722.8284;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1676;-2742.451,1546.08;Inherit;False;Y;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1694;-7037.93,2100.925;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1693;-7236.7,2031.122;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1847;2139.206,-0.5548267;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1126;-2536.97,337.9277;Inherit;False;605.1422;316.769;Comment;2;507;226;Roughness;1,0,0,1;0;0
Node;AmplifyShaderEditor.RangedFloatNode;1105;-7565.173,-704.3146;Float;False;Property;_SNOWCoverageAmount;SNOW Coverage Amount;20;0;Create;True;0;0;0;False;0;False;0;-0.5;-1;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1140;-4122.679,633.1738;Float;False;Property;_SparkleScale;Sparkle Scale;25;0;Create;True;0;0;0;False;0;False;20;20;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.PannerNode;844;-5841.052,1123.799;Inherit;False;3;0;FLOAT2;0,0;False;2;FLOAT2;0,0.1;False;1;FLOAT;1;False;1;FLOAT2;0
Node;AmplifyShaderEditor.LerpOp;1356;-4024.223,151.5144;Inherit;False;3;0;FLOAT4;0,0,0,0;False;1;FLOAT4;0,0,0,0;False;2;FLOAT;0;False;1;FLOAT4;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1842;1984.267,-532.066;Inherit;True;2;2;0;FLOAT;0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.SamplerNode;1614;-5021.201,1352.917;Inherit;True;Property;_TextureSample7;Texture Sample 7;0;0;Create;True;0;0;0;False;0;False;-1;None;None;True;0;False;white;Auto;False;Instance;-1;Auto;Texture2D;8;0;SAMPLER2D;0,0;False;1;FLOAT2;0,0;False;2;FLOAT;1;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.WireNode;1436;-2497.882,-45.03952;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.ColorNode;1839;1934.735,-184.6141;Inherit;False;Property;_MudWetColor;Mud Wet Color;44;0;Create;True;0;0;0;False;0;False;0.4039216,0.2509804,0.04313726,0;0.6,0.298039,0,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SimpleAddOpNode;917;-5354.489,1132.79;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.RangedFloatNode;1680;-4957.97,1763.687;Inherit;False;Property;_RainOnTop;RainOnTop;32;0;Create;True;0;0;0;False;0;False;0.8;0;0;0.3;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1209;-7330.131,-758.6986;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1677;-4864.154,1682.79;Inherit;False;1676;Y;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1669;-4724.129,905.3901;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1145;-3849.08,171.3046;Inherit;False;2;2;0;FLOAT4;0,0,0,0;False;1;FLOAT;0;False;1;FLOAT4;0
Node;AmplifyShaderEditor.LerpOp;1845;2263.823,-212.3487;Inherit;True;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1144;-3887.779,431.4739;Inherit;False;2;2;0;FLOAT2;0,0;False;1;FLOAT;0;False;1;FLOAT2;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1628;-2740.281,1467.927;Inherit;False;X;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1435;-2416.095,-4.241779;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1678;-4737.561,1611.084;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.BreakToComponentsNode;316;-3081.527,-1546.886;Inherit;True;FLOAT3;1;0;FLOAT3;0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1695;-6867.156,2026.848;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1629;-2741.938,1630.463;Inherit;False;Z;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1830;-3140.696,-1311.95;Inherit;False;Constant;_Float6;Float 6;56;0;Create;True;0;0;0;False;0;False;1.5;0;0;2;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1846;2468.675,43.35691;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1025;-4840.597,529.6325;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1159;-3740.279,261.9739;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.RangedFloatNode;226;-2506.98,405.0511;Inherit;False;Property;_Roughness;Roughness;3;1;[Header];Create;True;1;DETAILS;0;0;False;0;False;0;0.549;0;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;507;-2136.705,400.9899;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1793;-7541.216,-912.9005;Inherit;True;303;PNorm;1;0;OBJECT;;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1210;-7304.92,-806.3485;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.LerpOp;1837;2647.575,-310.2577;Inherit;True;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.LerpOp;1696;-6631.813,2262.388;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;987;-2533.865,763.9033;Inherit;False;4413.796;919.9456;Comment;29;1015;938;940;961;777;1127;1010;1008;921;1056;1055;1023;1069;1418;1665;1667;1668;1716;1717;1718;1719;1759;1868;1869;1870;1871;1872;1873;1874;Rain Ripples Roughness/BaseColor Opactiy;1,1,1,1;0;0
Node;AmplifyShaderEditor.WireNode;1068;-4776.809,555.04;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1679;-4596.646,1685.47;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1419;-2590.173,868.5681;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1829;-2861.752,-1330.639;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1647;-4660.19,1206.193;Inherit;True;1628;X;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1721;-4667.467,1637.121;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SamplerNode;1616;-5032.426,1101.532;Inherit;True;Property;_TriplanarAlbedo;Triplanar Albedo;0;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;0,0;False;1;FLOAT2;0,0;False;2;FLOAT;1;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.CommentaryNode;1741;-1889.694,306.6636;Inherit;False;1008.289;405.3704;Comment;11;1859;1861;1850;1748;1738;1742;1749;1739;1754;1753;1750;Moss Roughness;1,1,1,1;0;0
Node;AmplifyShaderEditor.SamplerNode;1146;-3676.279,405.9739;Inherit;True;Property;_TextureSample0;Texture Sample 0;27;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.GetLocalVarNode;1649;-4650.746,1443.36;Inherit;True;1629;Z;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.SamplerNode;1147;-3676.279,133.9739;Inherit;True;Property;_TextureSample6;Texture Sample 6;26;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.LerpOp;1646;-4399.727,1108.219;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.LerpOp;1648;-4397.567,1356.845;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SaturateNode;1831;-2636.223,-1327.945;Inherit;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1148;-3315.619,353.8928;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1849;-1570.893,-855.3011;Inherit;False;mg;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SaturateNode;1697;-6478.092,2254.979;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1095;-7167.976,-894.1916;Inherit;False;2;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.LerpOp;1675;-4367.061,1582.72;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1022;-4750.111,825.5423;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1149;-3340.279,264.9739;Float;False;Property;_SparkleCutoff;Sparkle Cutoff;27;0;Create;True;0;0;0;False;0;False;0.0015;0.0015;0;10;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1750;-1850.061,361.9125;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1418;-2465.875,811.5652;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1404;2944.104,-316.3031;Inherit;False;BaseColorFirstPass;-1;True;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1624;-4076.224,1233.942;Inherit;True;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.StepOpNode;1150;-3053.279,310.9739;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1850;-1856.924,465.8919;Inherit;False;1849;mg;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1407;-1053.292,-1182.151;Inherit;False;1404;BaseColorFirstPass;1;0;OBJECT;;False;1;COLOR;0
Node;AmplifyShaderEditor.RangedFloatNode;921;-2336.228,1532.416;Inherit;False;Property;_RainIntensity;Rain Intensity;31;0;Create;True;0;0;0;False;0;False;0;0;0;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1859;-1872.68,561.2393;Inherit;False;Property;_MossRoughness;Moss Roughness;15;0;Create;True;0;0;0;False;0;False;0.5;0.25;0;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.SaturateNode;1097;-6979.876,-885.4916;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1067;-4651.292,876.0953;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1151;-3296.489,463.6063;Inherit;False;Property;_SparklesIntensity;Sparkles Intensity;24;1;[Header];Create;True;1;SPARKLES;0;0;False;0;False;0.34;0.83;0;2;0;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1106;-7124.878,-730.0427;Float;False;Property;_SNOWCoverageFalloff;SNOW Coverage Falloff;21;0;Create;True;0;0;0;False;0;False;0.5;0.3;0.01;2;0;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;317;-2438.083,-1515.963;Inherit;True;TopAlbedoMask_MOSS;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1489;-428.0711,-1042.425;Inherit;False;490.0242;295.4242;Comment;4;1481;1488;1703;1518;Vertex Moss Mask;0.3621671,1,0,1;0;0
Node;AmplifyShaderEditor.WireNode;1023;-1911.883,805.7011;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1753;-1814.62,346.9962;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1698;-6325.723,2253.435;Inherit;False;RColors;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1265;46.40136,-1136.716;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.GetLocalVarNode;1518;-389.8772,-835.3358;Inherit;False;1698;RColors;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1093;-1063.491,-1697.988;Inherit;False;2194.34;477.1924;Comment;7;1174;1109;1077;1175;1079;1076;1262;Snow BaseColor;1,1,1,1;0;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1152;-2891.541,314.1454;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1739;-1772.747,639.4546;Inherit;False;317;TopAlbedoMask_MOSS;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1754;-1209.62,342.9962;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1069;-1872.646,825.596;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.PowerNode;1098;-6822.658,-885.4916;Inherit;False;False;2;0;FLOAT3;0,0,0;False;1;FLOAT;0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.SaturateNode;1583;-3843.525,1235.552;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;320;-1053.637,-904.8526;Inherit;False;317;TopAlbedoMask_MOSS;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1861;-1655.567,454.8105;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1260;-767.3931,-1061.534;Inherit;False;315;304;Comment;1;321;Moss + Base;1,0.9575949,0,1;0;0
Node;AmplifyShaderEditor.CommentaryNode;277;-7639.396,-323.4503;Inherit;False;1221.454;574.5345;Comment;6;1786;1783;1785;290;511;1875;Moss Normal Masks;1,1,1,1;0;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1008;-2040.512,907.9875;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1703;-190.2783,-890.1528;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.ColorNode;1076;-938.6768,-1603.712;Inherit;False;Property;_SnowColor;Snow Color;42;0;Create;True;0;0;0;False;0;False;1,1,1,0;1,1,1,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.LerpOp;321;-722.4323,-1005.68;Inherit;True;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.WireNode;1749;-1179.97,363.458;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1742;-1401.065,615.1219;Inherit;False;1698;RColors;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.LerpOp;1010;-1799.836,820.5109;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1488;-423.0711,-931.7405;Inherit;False;1404;BaseColorFirstPass;1;0;OBJECT;;False;1;COLOR;0
Node;AmplifyShaderEditor.WireNode;1427;70.91093,-1097.565;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.RangedFloatNode;1079;-777.9423,-1412.755;Inherit;False;Constant;_Float0;Float 0;41;0;Create;True;0;0;0;False;0;False;0.8;0;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.TexturePropertyNode;1875;-7526.528,-262.1793;Inherit;True;Property;_MossSnowNormal;Moss/Snow Normal;46;0;Create;True;0;0;0;False;0;False;None;21ef4b7566a1bb041abeb820414cbb29;True;bump;Auto;Texture2D;-1;0;2;SAMPLER2D;0;SAMPLERSTATE;1
Node;AmplifyShaderEditor.WireNode;1762;-1920.994,149.2179;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1153;-2757.386,306.881;Inherit;False;Sparkles;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.BreakToComponentsNode;1100;-6643.31,-886.4916;Inherit;False;FLOAT3;1;0;FLOAT3;0,0,0;False;16;FLOAT;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4;FLOAT;5;FLOAT;6;FLOAT;7;FLOAT;8;FLOAT;9;FLOAT;10;FLOAT;11;FLOAT;12;FLOAT;13;FLOAT;14;FLOAT;15
Node;AmplifyShaderEditor.LerpOp;1738;-1481.24,393.0957;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;983;-3709.19,1232.62;Inherit;True;SteaksRouighness;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;940;-2443.069,1013.772;Inherit;False;Constant;_Float4;Float 4;41;0;Create;True;0;0;0;False;0;False;0.4;0.4;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1770;-809.0339,389.3327;Inherit;False;627.5803;304;Comment;3;1766;1740;1767;Snow Roughness;1,1,1,1;0;0
Node;AmplifyShaderEditor.GetLocalVarNode;1175;-361.8152,-1453.356;Inherit;False;1153;Sparkles;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1769;-848.1024,13.34542;Inherit;False;1116.256;315.4829;Comment;2;1761;1765;;0,0.9019608,1,1;0;0
Node;AmplifyShaderEditor.LerpOp;1481;-159.0469,-1002.425;Inherit;True;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.RangedFloatNode;1271;-6312.247,143.2457;Inherit;False;Property;_SnowTile;Snow Tile;1;0;Create;True;0;0;0;False;0;False;0;10;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;511;-7500.868,-45.76141;Inherit;False;279;TopTiling_Moss;1;0;OBJECT;;False;1;FLOAT2;0
Node;AmplifyShaderEditor.WireNode;1426;76.91093,-1040.565;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.CommentaryNode;1366;253.0266,-1066.83;Inherit;False;936.4961;309.781;Comment;2;1264;1259;;0,0.9013226,1,1;0;0
Node;AmplifyShaderEditor.LerpOp;1748;-1138.88,400.2509;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;777;-1489.779,821.3741;Inherit;True;Ripples;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1763;-1884.868,114.2379;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1077;-612.6538,-1584.343;Inherit;True;2;2;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.WireNode;1896;-6228.208,-229.7025;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.GetLocalVarNode;1665;-2516.366,1101.349;Inherit;False;983;SteaksRouighness;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1103;-6470.835,-876.4955;Inherit;True;TopAlbedoMask_SNOW;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1262;451.0561,-1641.642;Inherit;False;315;304;Comment;1;1083;Snow + Base;1,0.9000796,0,1;0;0
Node;AmplifyShaderEditor.RangedFloatNode;1740;-759.0339,479.5561;Inherit;False;Property;_SnowRoughness;Snow Roughness;22;0;Create;True;0;0;0;False;0;False;0;0.407;0;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleAddOpNode;938;-2282.663,1063.207;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.StaticSwitch;1761;-798.1024,63.34542;Inherit;True;Property;_MossStaticSwitch;Moss Static Switch;14;0;Create;True;0;0;0;False;1;Header (MOSS);False;1;0;0;True;;KeywordEnum;2;OffMoss;OnMoss;Reference;1264;True;True;All;9;1;FLOAT;0;False;0;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1786;-7158,29.5152;Inherit;False;508;BaseNormal;1;0;OBJECT;;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1895;-6180.108,-250.318;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.TextureCoordinatesNode;1270;-6154.234,124.4768;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.StaticSwitch;1264;303.0267,-1016.83;Inherit;True;Property;_MossStaticSwitch;Moss Static Switch;14;0;Create;True;0;0;0;False;1;Header (MOSS);False;0;1;1;True;;Toggle;2;OffMoss;OnMoss;Create;True;True;All;9;1;COLOR;0,0,0,0;False;0;COLOR;0,0,0,0;False;2;COLOR;0,0,0,0;False;3;COLOR;0,0,0,0;False;4;COLOR;0,0,0,0;False;5;COLOR;0,0,0,0;False;6;COLOR;0,0,0,0;False;7;COLOR;0,0,0,0;False;8;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.GetLocalVarNode;1766;-722.4262,563.7458;Inherit;False;1103;TopAlbedoMask_SNOW;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.SamplerNode;290;-7253.536,-168.5804;Inherit;True;Property;_MossNormal;Moss Normal;51;0;Create;True;0;0;0;False;0;False;-1;None;None;True;0;True;bump;Auto;True;Object;-1;Auto;Texture2D;8;0;SAMPLER2D;0,0;False;1;FLOAT2;0,0;False;2;FLOAT;1;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;6;FLOAT;0;False;7;SAMPLERSTATE;;False;5;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.GetLocalVarNode;961;-1943.118,1258.694;Inherit;False;777;Ripples;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1174;-170.8207,-1583.562;Inherit;True;2;2;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.GetLocalVarNode;1109;103.1551,-1460.128;Inherit;False;1103;TopAlbedoMask_SNOW;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1719;-1454.211,1298.616;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1272;-5935.748,120.6958;Inherit;False;TopTiling_Snow;-1;True;1;0;FLOAT2;0,0;False;1;FLOAT2;0
Node;AmplifyShaderEditor.CommentaryNode;1026;-2520.867,1856.578;Inherit;False;2464.531;445.0956;Emission;14;1035;1033;1034;1039;1032;1031;1037;1028;1027;1030;1038;1029;1358;1368;Rim Light ;1,1,1,1;0;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1015;-1716.4,1074.579;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.BlendNormalsNode;1785;-6894.208,-160.4115;Inherit;False;0;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1668;-1585.93,1287.606;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1897;-6145.744,-855.0394;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.LerpOp;1767;-446.4537,439.3327;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1196;-6102.889,-969.1109;Inherit;False;1509.203;607.3871;Comment;11;1794;1187;1220;1237;1791;1797;1796;1183;1221;1182;1876;Snow Normal Masks;1,1,1,1;0;0
Node;AmplifyShaderEditor.LerpOp;1083;510.3051,-1599.316;Inherit;True;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1718;-1387.784,1078.117;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1182;-6031.054,-838.5544;Inherit;False;1272;TopTiling_Snow;1;0;OBJECT;;False;1;FLOAT2;0
Node;AmplifyShaderEditor.CommentaryNode;1127;-809.0116,898.8235;Inherit;False;2487.721;644.3846;Final Base;15;991;976;986;1053;985;997;984;975;996;1710;1715;1709;1708;1666;1720;Final BaseColor;1,0.7458302,0,1;0;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1783;-6651.216,-164.1273;Inherit;True;MossNorm;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1876;-6096.606,-889.2313;Inherit;False;1;0;SAMPLER2D;;False;1;SAMPLER2D;0
Node;AmplifyShaderEditor.ViewDirInputsCoordNode;1029;-2494.017,1914.979;Float;False;World;True;0;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3
Node;AmplifyShaderEditor.WireNode;1667;-892.7027,1263.46;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.StaticSwitch;1765;-140.4743,65.65838;Inherit;True;Property;_MossStaticSwitch;Moss Static Switch;19;0;Create;True;0;0;0;False;1;Header (MOSS);False;1;0;0;True;;KeywordEnum;2;OffMoss;OnMoss;Reference;1259;True;True;All;9;1;FLOAT;0;False;0;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1306;-6130.849,-1687.709;Inherit;False;2146.927;624.9152;Comment;14;1304;1798;1364;1254;1284;1790;1413;1789;1781;1788;1802;1784;1296;1782;Final Normals;1,0.7714074,0,1;0;0
Node;AmplifyShaderEditor.StaticSwitch;1259;784.5226,-1016.049;Inherit;True;Property;_SnowSparklesRimColorStaticSwitch;Snow Sparkles RimColor Static Switch;19;0;Create;True;0;0;0;False;1;Header (SNOW);False;0;0;0;True;;Toggle;2;OffSnow;OnSnow;Create;True;True;All;9;1;COLOR;0,0,0,0;False;0;COLOR;0,0,0,0;False;2;COLOR;0,0,0,0;False;3;COLOR;0,0,0,0;False;4;COLOR;0,0,0,0;False;5;COLOR;0,0,0,0;False;6;COLOR;0,0,0,0;False;7;COLOR;0,0,0,0;False;8;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.CommentaryNode;1699;355.4424,307.226;Inherit;False;858.504;362.0395;Comment;6;1684;1682;1722;1685;1683;1760;Vertex Roughness (Alpha Minus);1,1,1,1;0;0
Node;AmplifyShaderEditor.WireNode;1038;-2301.037,2040.18;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1666;-772.4169,1153.56;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1237;-5681.383,-721.4698;Inherit;False;508;BaseNormal;1;0;OBJECT;;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1768;262.3865,350.0362;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1796;-6026.278,-719.2287;Inherit;True;1103;TopAlbedoMask_SNOW;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.VertexColorNode;1683;397.3677,454.5193;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.RangedFloatNode;975;-787.7115,1411.555;Inherit;False;Property;_RainBaseColor;Rain BaseColor;33;0;Create;True;1;;0;0;False;0;False;0.1;0.02;0;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1868;-1100.99,1470.164;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1782;-6114.993,-1230.624;Inherit;False;317;TopAlbedoMask_MOSS;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.SamplerNode;1183;-5788.382,-925.0258;Inherit;True;Property;_SnowNormal;Snow Normal;53;0;Create;True;0;0;0;False;0;False;-1;None;None;True;0;True;bump;Auto;True;Object;-1;Auto;Texture2D;8;0;SAMPLER2D;0,0;False;1;FLOAT2;0,0;False;2;FLOAT;1;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;6;FLOAT;0;False;7;SAMPLERSTATE;;False;5;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.WireNode;1759;-1016.6,816.879;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;322;1281.201,-1013.33;Inherit;False;BASE_M1;-1;True;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.RangedFloatNode;996;-789.7115,1218.128;Inherit;False;Property;_RipplesBaseColor;Ripples BaseColor;37;1;[Header];Create;True;1;RIPPLES;0;0;False;0;False;0.1;0.1;0;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;984;-726.7355,1319.037;Inherit;False;983;SteaksRouighness;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1296;-6084.759,-1491.047;Inherit;False;508;BaseNormal;1;0;OBJECT;;False;1;FLOAT3;0
Node;AmplifyShaderEditor.GetLocalVarNode;1784;-6061.112,-1385.136;Inherit;False;1783;MossNorm;1;0;OBJECT;;False;1;FLOAT3;0
Node;AmplifyShaderEditor.RangedFloatNode;1221;-5963.311,-519.1756;Inherit;False;Property;_MoreSnow;More Snow;23;0;Create;True;0;0;0;False;0;False;0.1583755;0;0;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1722;830.8544,486.9474;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;997;-493.2645,1110.637;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1717;-194.6938,1598.768;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1685;565.1008,421.8201;Inherit;False;Property;_VertexWetness;Vertex Wetness;4;0;Create;True;0;0;0;False;0;False;0.7;0.7;0;0.7;0;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1220;-5680.536,-625.1903;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1869;-905.3005,879.5692;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1802;-5870.694,-1289.642;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1771;303.8998,372.201;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1797;-5410.165,-679.0611;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;985;-502.2604,1318.056;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1037;-2064.037,2043.181;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.LerpOp;1781;-5807.317,-1411.756;Inherit;False;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WorldNormalVector;1027;-2260.739,1896.683;Inherit;False;False;1;0;FLOAT3;0,0,1;False;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3
Node;AmplifyShaderEditor.GetLocalVarNode;1053;-234.6197,948.8232;Inherit;True;322;BASE_M1;1;0;OBJECT;;False;1;COLOR;0
Node;AmplifyShaderEditor.WireNode;1758;-934.084,711.1518;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1030;-2357.493,2197.652;Float;False;Property;_RimPower;Rim Power;29;0;Create;True;0;0;0;False;0;False;0.5;0.5;0;20;0;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1028;-2255.353,2110.517;Inherit;False;Constant;_RimScale;Rim Scale;35;0;Create;True;0;0;0;False;0;False;2.24;0;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1788;-5795.711,-1225.869;Inherit;False;1698;RColors;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.BlendNormalsNode;1791;-5412.057,-916.9839;Inherit;True;0;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1056;74.88446,864.3231;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleAddOpNode;986;-271.9072,1147.786;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1871;-817.1516,810.8134;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1757;1159.91,699.1998;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1413;-5300.854,-1435.702;Inherit;False;1114.637;315.4422;Comment;2;1300;1298;;0,0.9019608,1,1;0;0
Node;AmplifyShaderEditor.FresnelNode;1031;-1978.161,1959.014;Inherit;True;Standard;WorldNormal;ViewDir;False;False;5;0;FLOAT3;0,0,1;False;4;FLOAT3;0,0,0;False;1;FLOAT;0;False;2;FLOAT;1;False;3;FLOAT;5;False;1;FLOAT;0
Node;AmplifyShaderEditor.LerpOp;1187;-5116.21,-673.6976;Inherit;True;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.WireNode;1716;-79.70567,1567.723;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1790;-5389.324,-1442.674;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.LerpOp;1789;-5564.782,-1351.058;Inherit;True;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.LerpOp;1682;913.6569,337.0782;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.OneMinusNode;1684;705.7889,571.8188;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1044;-3729.981,-107.2215;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1760;1126.318,591.515;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.ColorNode;1032;-1618.739,1904.203;Float;False;Property;_RimColor3;Rim Color;28;1;[Header];Create;False;1;RIM COLOR;0;0;False;0;False;0.5,0.5,0.5,1;0.3752211,0.3893803,0.3999998,1;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.WireNode;1039;-1670.109,2059.759;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1794;-4853.611,-681.3707;Inherit;False;SnowNorm;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.VertexColorNode;1708;233.3594,1343.259;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SaturateNode;1755;1241.975,334.9702;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1873;119.9483,841.4277;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.WireNode;1442;-2372.764,-79.369;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1756;1262.399,647.2362;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1872;1587.537,833.732;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.StaticSwitch;1298;-5277.361,-1387.289;Inherit;True;Property;_Keyword1;Keyword 1;14;0;Create;True;0;0;0;False;0;False;0;0;0;True;;Toggle;2;Key0;Key1;Reference;1264;True;True;All;9;1;FLOAT3;0,0,0;False;0;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;4;FLOAT3;0,0,0;False;5;FLOAT3;0,0,0;False;6;FLOAT3;0,0,0;False;7;FLOAT3;0,0,0;False;8;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.CommentaryNode;1063;-2253.519,-254.9012;Inherit;False;842.9325;304;Comment;4;670;673;1862;1863;AO;0,0,1,1;0;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1715;2.697866,1151.072;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;670;-2203.519,-74.81479;Inherit;False;Property;_AO;AO;9;0;Create;True;0;0;0;False;0;False;1;1;0;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.OneMinusNode;1709;431.3638,1436.726;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.LerpOp;951;1419.913,471.3404;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1870;1658.053,801.9983;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1874;839.4515,849.9934;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.GetLocalVarNode;1284;-4961.919,-1598.079;Inherit;False;1794;SnowNorm;1;0;OBJECT;;False;1;FLOAT3;0
Node;AmplifyShaderEditor.GetLocalVarNode;1033;-1527.983,2169.439;Inherit;False;1103;TopAlbedoMask_SNOW;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1254;-4987.507,-1525.736;Inherit;False;1103;TopAlbedoMask_SNOW;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;526;-2349.995,-152.124;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1798;-5042.769,-1600.468;Inherit;False;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1034;-1391.538,2032.052;Inherit;False;2;2;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleAddOpNode;976;299.1252,1095.574;Inherit;True;2;2;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.LerpOp;1304;-4755.006,-1652.505;Inherit;True;3;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT;0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.CommentaryNode;1368;-1014.761,1939.973;Inherit;False;455;309;Comment;1;1036;;0,0.9019608,1,1;0;0
Node;AmplifyShaderEditor.CommentaryNode;1367;2053.475,284.7229;Inherit;False;398.9316;299.6933;Comment;1;941;;0,0.9019608,1,1;0;0
Node;AmplifyShaderEditor.WireNode;1055;927.6633,861.6461;Inherit;False;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.OneMinusNode;673;-1887.584,-67.90089;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1720;1002.846,930.6024;Inherit;False;348.7443;296.8535;Comment;1;994;;0,0.9019608,1,1;0;0
Node;AmplifyShaderEditor.LerpOp;1710;644.0018,961.4438;Inherit;True;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.WireNode;1440;-2290.733,-169.944;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.LerpOp;1035;-1199.688,2012.555;Inherit;False;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.LerpOp;1867;1755.19,439.6024;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1863;-1869.867,-175.8971;Inherit;False;Constant;_Float9;Float 9;56;0;Create;True;0;0;0;False;0;False;1;0;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.StaticSwitch;994;1047.488,974.6384;Inherit;True;Property;_Keyword0;Keyword 0;30;0;Create;True;0;0;0;False;0;False;0;0;0;True;;Toggle;2;Key0;Key1;Reference;941;True;True;All;9;1;COLOR;0,0,0,0;False;0;COLOR;0,0,0,0;False;2;COLOR;0,0,0,0;False;3;COLOR;0,0,0,0;False;4;COLOR;0,0,0,0;False;5;COLOR;0,0,0,0;False;6;COLOR;0,0,0,0;False;7;COLOR;0,0,0,0;False;8;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.StaticSwitch;1300;-4559.41,-1386.4;Inherit;True;Property;_Keyword1;Keyword 1;19;0;Create;True;0;0;0;False;0;False;0;0;0;True;;Toggle;2;Key0;Key1;Reference;1259;True;True;All;9;1;FLOAT3;0,0,0;False;0;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT3;0,0,0;False;4;FLOAT3;0,0,0;False;5;FLOAT3;0,0,0;False;6;FLOAT3;0,0,0;False;7;FLOAT3;0,0,0;False;8;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.StaticSwitch;1036;-962.7612,1989.973;Inherit;True;Property;_SnowStaticSwitch;Snow Static Switch;19;0;Create;True;0;0;0;False;0;False;1;0;0;True;;Toggle;2;Key0;Key1;Reference;1259;True;True;All;9;1;COLOR;0,0,0,0;False;0;COLOR;0,0,0,0;False;2;COLOR;0,0,0,0;False;3;COLOR;0,0,0,0;False;4;COLOR;0,0,0,0;False;5;COLOR;0,0,0,0;False;6;COLOR;0,0,0,0;False;7;COLOR;0,0,0,0;False;8;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.StaticSwitch;941;2108.792,336.0527;Inherit;True;Property;_RainRipplesStaticSwitch;Rain Ripples Static Switch;30;0;Create;True;0;0;0;False;1;Header (RAIN);False;0;0;0;True;;Toggle;2;OffRain;OnRain;Create;True;True;All;9;1;FLOAT;0;False;0;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT;0;False;7;FLOAT;0;False;8;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1358;-529.1685,1937.268;Inherit;False;218;170;Comment;1;1357;Final Emission;1,0.7165726,0,1;0;0
Node;AmplifyShaderEditor.LerpOp;1862;-1663.867,-208.8971;Inherit;True;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.CommentaryNode;1361;-1340.608,-257.0298;Inherit;False;274;166;Comment;1;1360;Final AO;1,0.6993778,0,1;0;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;991;1389.736,975.1666;Inherit;True;Albedo;-1;True;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1357;-505.1677,1987.27;Inherit;False;Emission;-1;True;1;0;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;988;2550.197,337.7561;Inherit;False;RainRipplesRoughnessBaseColorOpactiy;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1360;-1290.608,-207.0298;Inherit;False;FinalAO;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1364;-4169.8,-1379.805;Inherit;False;FinalNormal;-1;True;1;0;FLOAT3;0,0,0;False;1;FLOAT3;0
Node;AmplifyShaderEditor.CommentaryNode;1490;-4473.956,1989.976;Inherit;False;1633.073;546.6544;Comment;12;1505;1504;1503;1502;1500;1501;1520;1497;1499;1514;1493;1480;B Colors;1,1,1,1;0;0
Node;AmplifyShaderEditor.GetLocalVarNode;1365;2215.498,1227.039;Inherit;False;1364;FinalNormal;1;0;OBJECT;;False;1;FLOAT3;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1208;-6656.596,-654.2067;Inherit;True;TOPMASK_Snow;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;992;2219.686,1134.911;Inherit;False;991;Albedo;1;0;OBJECT;;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1499;-4238.691,2130.782;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.StepOpNode;1452;-3155.562,109.4203;Inherit;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SaturateNode;1200;-7057.258,-560.1588;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.VertexColorNode;1480;-4444.455,2285.429;Inherit;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.GetLocalVarNode;1493;-4447.132,2130.675;Inherit;False;1515;SplitY;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.WireNode;1520;-4226.638,2250.307;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1453;-3344.562,70.42029;Inherit;False;Constant;_Float2;Float 2;52;0;Create;True;0;0;0;False;0;False;0.0001;0;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1500;-4102.915,2043.593;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.PowerNode;1201;-6841.125,-557.6287;Inherit;False;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1199;-7264.065,-673.7298;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RegisterLocalVarNode;1505;-3108.314,2287.386;Inherit;False;BColors;-1;True;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1497;-4443.66,2034.729;Inherit;False;1516;SplitX;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1501;-3849.729,2167.899;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;989;2064.192,1395.378;Inherit;False;988;RainRipplesRoughnessBaseColorOpactiy;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1502;-3681.17,2046.807;Inherit;True;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1359;2234.108,1311.39;Inherit;False;1357;Emission;1;0;OBJECT;;False;1;COLOR;0
Node;AmplifyShaderEditor.SaturateNode;1504;-3257.003,2321.451;Inherit;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;1514;-4159.349,2261.96;Inherit;False;Property;_MaskIntensityG;Mask Intensity (G);16;0;Create;True;0;0;0;False;0;False;0;5;0;5;0;1;FLOAT;0
Node;AmplifyShaderEditor.GetLocalVarNode;1362;2236.416,1464.293;Inherit;False;1360;FinalAO;1;0;OBJECT;;False;1;FLOAT;0
Node;AmplifyShaderEditor.LerpOp;1503;-3425.696,2311.356;Inherit;False;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1451;-3341.77,147.201;Inherit;False;2;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.WorldNormalVector;1198;-7530.574,-612.2527;Inherit;False;False;1;0;FLOAT3;0,0,0;False;4;FLOAT3;0;FLOAT;1;FLOAT;2;FLOAT;3
Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1899;2475.754,1236.028;Float;False;False;-1;2;UnityEditor.ShaderGraphLitGUI;0;1;New Amplify Shader;94348b07e5e8bab40bd6c8a1e3df54cd;True;ExtraPrePass;0;0;ExtraPrePass;5;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;True;0;False;;False;False;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;4;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;UniversalMaterialType=Lit;True;3;True;12;all;0;False;True;1;1;False;;0;False;;0;1;False;;0;False;;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;True;True;True;True;True;0;False;;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;0;False;False;0;;0;0;Standard;0;False;0
Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1900;2475.754,1236.028;Float;False;True;-1;2;UnityEditor.ShaderGraphLitGUI;0;12;CRS/Rock&Stones (Shader_Feature);94348b07e5e8bab40bd6c8a1e3df54cd;True;Forward;0;1;Forward;19;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;True;0;False;;False;False;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;4;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;UniversalMaterialType=Lit;True;3;True;12;all;0;False;True;1;1;False;;0;False;;1;1;False;;0;False;;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;True;True;True;True;0;False;;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;1;LightMode=UniversalForward;False;False;0;;0;0;Standard;41;Workflow;1;0;Surface;0;0; Refraction Model;0;0; Blend;0;0;Two Sided;1;0;Fragment Normal Space,InvertActionOnDeselection;0;0;Forward Only;0;0;Transmission;0;0; Transmission Shadow;0.5,False,;0;Translucency;0;0; Translucency Strength;1,False,;0; Normal Distortion;0.5,False,;0; Scattering;2,False,;0; Direct;0.9,False,;0; Ambient;0.1,False,;0; Shadow;0.5,False,;0;Cast Shadows;1;0; Use Shadow Threshold;0;0;Receive Shadows;1;0;GPU Instancing;1;0;LOD CrossFade;1;0;Built-in Fog;1;0;_FinalColorxAlpha;0;0;Meta Pass;1;0;Override Baked GI;0;0;Extra Pre Pass;0;0;DOTS Instancing;0;0;Tessellation;0;0; Phong;0;0; Strength;0.5,False,;0; Type;0;0; Tess;16,False,;0; Min;10,False,;0; Max;25,False,;0; Edge Length;16,False,;0; Max Displacement;25,False,;0;Write Depth;0;0; Early Z;0;0;Vertex Position,InvertActionOnDeselection;1;0;Debug Display;0;0;Clear Coat;0;0;0;10;False;True;True;True;True;True;True;True;True;True;False;;False;0
Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1901;2475.754,1236.028;Float;False;False;-1;2;UnityEditor.ShaderGraphLitGUI;0;1;New Amplify Shader;94348b07e5e8bab40bd6c8a1e3df54cd;True;ShadowCaster;0;2;ShadowCaster;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;True;0;False;;False;False;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;4;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;UniversalMaterialType=Lit;True;3;True;12;all;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;False;False;True;False;False;False;False;0;False;;False;False;False;False;False;False;False;False;False;True;1;False;;True;3;False;;False;True;1;LightMode=ShadowCaster;False;False;0;;0;0;Standard;0;False;0
Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1902;2475.754,1236.028;Float;False;False;-1;2;UnityEditor.ShaderGraphLitGUI;0;1;New Amplify Shader;94348b07e5e8bab40bd6c8a1e3df54cd;True;DepthOnly;0;3;DepthOnly;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;True;0;False;;False;False;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;4;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;UniversalMaterialType=Lit;True;3;True;12;all;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;False;False;True;False;False;False;False;0;False;;False;False;False;False;False;False;False;False;False;True;1;False;;False;False;True;1;LightMode=DepthOnly;False;False;0;;0;0;Standard;0;False;0
Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1903;2475.754,1236.028;Float;False;False;-1;2;UnityEditor.ShaderGraphLitGUI;0;1;New Amplify Shader;94348b07e5e8bab40bd6c8a1e3df54cd;True;Meta;0;4;Meta;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;True;0;False;;False;False;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;4;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;UniversalMaterialType=Lit;True;3;True;12;all;0;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;2;False;;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;1;LightMode=Meta;False;False;0;;0;0;Standard;0;False;0
Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1904;2475.754,1236.028;Float;False;False;-1;2;UnityEditor.ShaderGraphLitGUI;0;1;New Amplify Shader;94348b07e5e8bab40bd6c8a1e3df54cd;True;Universal2D;0;5;Universal2D;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;True;0;False;;False;False;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;4;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;UniversalMaterialType=Lit;True;3;True;12;all;0;False;True;1;1;False;;0;False;;1;1;False;;0;False;;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;True;True;True;True;0;False;;False;False;False;False;False;False;False;False;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;1;LightMode=Universal2D;False;False;0;;0;0;Standard;0;False;0
Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1905;2475.754,1236.028;Float;False;False;-1;2;UnityEditor.ShaderGraphLitGUI;0;1;New Amplify Shader;94348b07e5e8bab40bd6c8a1e3df54cd;True;DepthNormals;0;6;DepthNormals;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;True;0;False;;False;False;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;4;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;UniversalMaterialType=Lit;True;3;True;12;all;0;False;True;1;1;False;;0;False;;0;1;False;;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;True;1;False;;True;3;False;;False;True;1;LightMode=DepthNormals;False;False;0;;0;0;Standard;0;False;0
Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1906;2475.754,1236.028;Float;False;False;-1;2;UnityEditor.ShaderGraphLitGUI;0;1;New Amplify Shader;94348b07e5e8bab40bd6c8a1e3df54cd;True;GBuffer;0;7;GBuffer;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;True;0;False;;False;False;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;4;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;UniversalMaterialType=Lit;True;3;True;12;all;0;False;True;1;1;False;;0;False;;1;1;False;;0;False;;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;True;True;True;True;0;False;;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;1;LightMode=UniversalGBuffer;False;False;0;;0;0;Standard;0;False;0
Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1907;2475.754,1236.028;Float;False;False;-1;2;UnityEditor.ShaderGraphLitGUI;0;1;New Amplify Shader;94348b07e5e8bab40bd6c8a1e3df54cd;True;SceneSelectionPass;0;8;SceneSelectionPass;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;True;0;False;;False;False;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;4;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;UniversalMaterialType=Lit;True;3;True;12;all;0;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;2;False;;False;False;False;False;False;False;False;False;False;False;False;False;False;False;True;1;LightMode=SceneSelectionPass;False;False;0;;0;0;Standard;0;False;0
Node;AmplifyShaderEditor.TemplateMultiPassMasterNode;1908;2475.754,1236.028;Float;False;False;-1;2;UnityEditor.ShaderGraphLitGUI;0;1;New Amplify Shader;94348b07e5e8bab40bd6c8a1e3df54cd;True;ScenePickingPass;0;9;ScenePickingPass;0;False;False;False;False;False;False;False;False;False;False;False;False;True;0;False;;False;True;0;False;;False;False;False;False;False;False;False;False;False;True;False;0;False;;255;False;;255;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;0;False;;False;True;1;False;;True;3;False;;True;True;0;False;;0;False;;True;4;RenderPipeline=UniversalPipeline;RenderType=Opaque=RenderType;Queue=Geometry=Queue=0;UniversalMaterialType=Lit;True;3;True;12;all;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;False;0;;0;0;Standard;0;False;0
WireConnection;1893;0;684;0
WireConnection;1894;0;1893;0
WireConnection;1892;0;1894;0
WireConnection;1891;0;1892;0
WireConnection;1884;0;1891;0
WireConnection;1885;0;1884;0
WireConnection;1883;0;1885;0
WireConnection;1446;0;210;2
WireConnection;1882;0;1883;0
WireConnection;1879;0;1882;0
WireConnection;497;0;210;3
WireConnection;1445;0;1446;0
WireConnection;1517;0;218;0
WireConnection;1880;0;1879;0
WireConnection;1113;0;1445;0
WireConnection;276;0;273;0
WireConnection;765;0;764;0
WireConnection;1515;0;1517;1
WireConnection;1444;0;497;0
WireConnection;1888;0;243;0
WireConnection;1886;0;1888;0
WireConnection;279;0;276;0
WireConnection;1516;0;1517;0
WireConnection;1169;0;684;0
WireConnection;246;0;243;0
WireConnection;246;1;1113;0
WireConnection;246;2;248;0
WireConnection;1447;0;1444;0
WireConnection;1898;0;1880;0
WireConnection;1394;0;1387;2
WireConnection;960;0;684;0
WireConnection;960;1;765;0
WireConnection;1491;0;1507;0
WireConnection;1491;1;1524;2
WireConnection;1723;0;246;0
WireConnection;766;0;960;2
WireConnection;767;0;795;0
WireConnection;494;0;497;0
WireConnection;494;1;485;0
WireConnection;494;2;489;0
WireConnection;1388;0;1394;0
WireConnection;1388;1;1393;0
WireConnection;1494;0;1524;2
WireConnection;541;0;542;0
WireConnection;541;1;1447;0
WireConnection;1168;0;1169;0
WireConnection;1725;0;1886;0
WireConnection;1725;1;1727;0
WireConnection;1881;0;1898;0
WireConnection;508;0;218;0
WireConnection;1673;0;1168;0
WireConnection;1513;0;1494;0
WireConnection;1513;1;1498;0
WireConnection;768;0;767;0
WireConnection;768;1;766;0
WireConnection;1274;0;494;0
WireConnection;1495;0;1508;0
WireConnection;1495;1;1491;0
WireConnection;247;0;1725;0
WireConnection;247;1;1723;0
WireConnection;1389;0;1388;0
WireConnection;1860;0;1881;0
WireConnection;1860;1;318;0
WireConnection;1462;0;960;2
WireConnection;1439;0;541;0
WireConnection;1414;0;1439;0
WireConnection;1674;0;1673;0
WireConnection;675;0;674;0
WireConnection;675;1;1860;3
WireConnection;786;0;684;0
WireConnection;786;1;768;0
WireConnection;1000;0;1462;0
WireConnection;1512;0;1495;0
WireConnection;1512;1;1513;0
WireConnection;1408;0;1389;0
WireConnection;1408;1;1409;0
WireConnection;1121;0;247;0
WireConnection;1121;1;1274;0
WireConnection;1526;0;1395;0
WireConnection;302;0;328;0
WireConnection;1273;0;1121;0
WireConnection;1273;1;675;0
WireConnection;1273;2;1414;0
WireConnection;1160;0;1674;0
WireConnection;1410;0;1408;0
WireConnection;1410;1;1411;0
WireConnection;772;0;786;1
WireConnection;772;1;1000;0
WireConnection;842;0;843;0
WireConnection;1511;0;1512;0
WireConnection;1511;1;1524;2
WireConnection;1511;2;1524;2
WireConnection;1396;0;1526;0
WireConnection;1396;1;1408;0
WireConnection;1402;0;1273;0
WireConnection;303;0;302;0
WireConnection;1161;0;1160;0
WireConnection;911;0;919;0
WireConnection;911;1;912;0
WireConnection;781;0;772;0
WireConnection;781;1;782;0
WireConnection;1528;0;1395;0
WireConnection;1659;0;842;0
WireConnection;1510;0;1511;0
WireConnection;1412;0;1410;0
WireConnection;836;0;834;0
WireConnection;836;1;835;0
WireConnection;1576;0;827;0
WireConnection;1576;1;1659;0
WireConnection;1527;0;1528;0
WireConnection;1593;0;1590;0
WireConnection;1400;0;1402;0
WireConnection;1400;1;1396;0
WireConnection;1400;2;1412;0
WireConnection;1509;0;1510;0
WireConnection;904;0;911;0
WireConnection;804;0;781;0
WireConnection;1415;0;1161;0
WireConnection;1660;0;842;0
WireConnection;1011;0;804;0
WireConnection;1011;1;1012;0
WireConnection;1529;0;1527;0
WireConnection;1625;0;1593;0
WireConnection;1625;1;1626;0
WireConnection;1569;0;1576;0
WireConnection;1569;1;836;0
WireConnection;1416;0;1415;0
WireConnection;1672;0;1400;0
WireConnection;312;0;309;0
WireConnection;312;1;274;0
WireConnection;1450;0;1448;0
WireConnection;1450;1;1137;0
WireConnection;1691;0;1687;1
WireConnection;1627;0;1625;0
WireConnection;1288;0;1011;0
WireConnection;1521;0;1672;0
WireConnection;1521;1;1529;0
WireConnection;1521;2;1525;0
WireConnection;1449;0;1448;0
WireConnection;1449;1;1138;0
WireConnection;1437;0;210;1
WireConnection;840;0;1660;0
WireConnection;840;1;827;0
WireConnection;313;0;312;0
WireConnection;1692;0;1688;0
WireConnection;1692;1;1687;1
WireConnection;1570;0;918;0
WireConnection;1570;1;1569;0
WireConnection;1417;0;1416;0
WireConnection;1143;0;1329;0
WireConnection;315;0;313;0
WireConnection;315;1;278;0
WireConnection;1465;0;1288;0
WireConnection;1162;0;1417;0
WireConnection;1676;0;1627;1
WireConnection;1694;0;1691;0
WireConnection;1694;1;1689;0
WireConnection;1693;0;1690;0
WireConnection;1693;1;1692;0
WireConnection;1847;0;1840;2
WireConnection;844;0;840;0
WireConnection;844;1;836;0
WireConnection;1356;0;1449;0
WireConnection;1356;1;1450;0
WireConnection;1356;2;1355;0
WireConnection;1842;0;1843;0
WireConnection;1842;1;1521;0
WireConnection;1614;0;1673;0
WireConnection;1614;1;1570;0
WireConnection;1436;0;1437;0
WireConnection;917;0;844;0
WireConnection;917;1;918;0
WireConnection;1209;0;1105;0
WireConnection;1669;0;1465;0
WireConnection;1145;0;1356;0
WireConnection;1145;1;1141;0
WireConnection;1845;0;1842;0
WireConnection;1845;1;1839;0
WireConnection;1845;2;1847;0
WireConnection;1144;0;1143;0
WireConnection;1144;1;1140;0
WireConnection;1628;0;1627;0
WireConnection;1435;0;1436;0
WireConnection;1678;0;1614;1
WireConnection;316;0;315;0
WireConnection;1695;0;1693;0
WireConnection;1695;1;1694;0
WireConnection;1629;0;1627;2
WireConnection;1846;0;1840;3
WireConnection;1025;0;804;0
WireConnection;1159;0;1162;0
WireConnection;507;0;1435;0
WireConnection;507;1;226;0
WireConnection;1210;0;1209;0
WireConnection;1837;0;1521;0
WireConnection;1837;1;1845;0
WireConnection;1837;2;1846;0
WireConnection;1696;0;1695;0
WireConnection;1696;1;1687;1
WireConnection;1696;2;1687;1
WireConnection;1068;0;1025;0
WireConnection;1679;0;1677;0
WireConnection;1679;1;1680;0
WireConnection;1419;0;1669;0
WireConnection;1829;0;316;1
WireConnection;1829;1;1830;0
WireConnection;1721;0;1678;0
WireConnection;1616;0;1673;0
WireConnection;1616;1;917;0
WireConnection;1146;0;1162;0
WireConnection;1146;1;1144;0
WireConnection;1147;0;1159;0
WireConnection;1147;1;1145;0
WireConnection;1646;1;1616;1
WireConnection;1646;2;1647;0
WireConnection;1648;1;1614;1
WireConnection;1648;2;1649;0
WireConnection;1831;0;1829;0
WireConnection;1148;0;1147;4
WireConnection;1148;1;1146;4
WireConnection;1849;0;1860;3
WireConnection;1697;0;1696;0
WireConnection;1095;0;1793;0
WireConnection;1095;1;1210;0
WireConnection;1675;1;1721;0
WireConnection;1675;2;1679;0
WireConnection;1022;0;1068;0
WireConnection;1750;0;507;0
WireConnection;1418;0;1419;0
WireConnection;1404;0;1837;0
WireConnection;1624;0;1646;0
WireConnection;1624;1;1648;0
WireConnection;1624;2;1675;0
WireConnection;1150;0;1149;0
WireConnection;1150;1;1148;0
WireConnection;1097;0;1095;0
WireConnection;1067;0;1022;0
WireConnection;317;0;1831;0
WireConnection;1023;0;1418;0
WireConnection;1753;0;1750;0
WireConnection;1698;0;1697;0
WireConnection;1265;0;1407;0
WireConnection;1152;0;1150;0
WireConnection;1152;1;1151;0
WireConnection;1754;0;1753;0
WireConnection;1069;0;1023;0
WireConnection;1098;0;1097;0
WireConnection;1098;1;1106;0
WireConnection;1583;0;1624;0
WireConnection;1861;0;1850;0
WireConnection;1861;1;1859;0
WireConnection;1008;0;1067;0
WireConnection;1008;1;921;0
WireConnection;1703;0;1518;0
WireConnection;321;0;1407;0
WireConnection;321;1;675;0
WireConnection;321;2;320;0
WireConnection;1749;0;1754;0
WireConnection;1010;0;1069;0
WireConnection;1010;1;1008;0
WireConnection;1010;2;921;0
WireConnection;1427;0;1265;0
WireConnection;1762;0;507;0
WireConnection;1153;0;1152;0
WireConnection;1100;0;1098;0
WireConnection;1738;0;507;0
WireConnection;1738;1;1861;0
WireConnection;1738;2;1739;0
WireConnection;983;0;1583;0
WireConnection;1481;0;321;0
WireConnection;1481;1;1488;0
WireConnection;1481;2;1703;0
WireConnection;1426;0;1427;0
WireConnection;1748;0;1738;0
WireConnection;1748;1;1749;0
WireConnection;1748;2;1742;0
WireConnection;777;0;1010;0
WireConnection;1763;0;1762;0
WireConnection;1077;0;1076;0
WireConnection;1077;1;1079;0
WireConnection;1896;0;1875;0
WireConnection;1103;0;1100;1
WireConnection;938;0;940;0
WireConnection;938;1;1665;0
WireConnection;1761;1;1763;0
WireConnection;1761;0;1748;0
WireConnection;1895;0;1896;0
WireConnection;1270;0;1271;0
WireConnection;1264;1;1426;0
WireConnection;1264;0;1481;0
WireConnection;290;0;1875;0
WireConnection;290;1;511;0
WireConnection;1174;0;1077;0
WireConnection;1174;1;1175;0
WireConnection;1719;0;921;0
WireConnection;1272;0;1270;0
WireConnection;1015;0;938;0
WireConnection;1015;1;961;0
WireConnection;1785;0;290;0
WireConnection;1785;1;1786;0
WireConnection;1668;0;961;0
WireConnection;1897;0;1895;0
WireConnection;1767;0;1761;0
WireConnection;1767;1;1740;0
WireConnection;1767;2;1766;0
WireConnection;1083;0;1264;0
WireConnection;1083;1;1174;0
WireConnection;1083;2;1109;0
WireConnection;1718;0;1015;0
WireConnection;1718;1;1719;0
WireConnection;1783;0;1785;0
WireConnection;1876;0;1897;0
WireConnection;1667;0;1668;0
WireConnection;1765;1;1761;0
WireConnection;1765;0;1767;0
WireConnection;1259;1;1264;0
WireConnection;1259;0;1083;0
WireConnection;1038;0;1029;0
WireConnection;1666;0;1667;0
WireConnection;1768;0;1765;0
WireConnection;1868;0;921;0
WireConnection;1183;0;1876;0
WireConnection;1183;1;1182;0
WireConnection;1759;0;1718;0
WireConnection;322;0;1259;0
WireConnection;1722;0;1683;3
WireConnection;997;0;1666;0
WireConnection;997;1;996;0
WireConnection;1717;0;921;0
WireConnection;1220;0;1796;0
WireConnection;1220;1;1221;0
WireConnection;1869;0;1868;0
WireConnection;1802;0;1296;0
WireConnection;1771;0;1768;0
WireConnection;1797;0;1183;0
WireConnection;985;0;984;0
WireConnection;985;1;975;0
WireConnection;1037;0;1038;0
WireConnection;1781;0;1296;0
WireConnection;1781;1;1784;0
WireConnection;1781;2;1782;0
WireConnection;1758;0;1759;0
WireConnection;1791;0;1183;0
WireConnection;1791;1;1237;0
WireConnection;1056;0;1053;0
WireConnection;986;0;997;0
WireConnection;986;1;985;0
WireConnection;1871;0;1869;0
WireConnection;1757;0;1758;0
WireConnection;1031;0;1027;0
WireConnection;1031;4;1037;0
WireConnection;1031;2;1028;0
WireConnection;1031;3;1030;0
WireConnection;1187;0;1791;0
WireConnection;1187;1;1797;0
WireConnection;1187;2;1220;0
WireConnection;1716;0;1717;0
WireConnection;1790;0;1296;0
WireConnection;1789;0;1781;0
WireConnection;1789;1;1802;0
WireConnection;1789;2;1788;0
WireConnection;1682;0;1771;0
WireConnection;1682;1;1685;0
WireConnection;1682;2;1722;0
WireConnection;1684;0;1683;4
WireConnection;1044;0;210;3
WireConnection;1760;0;1684;0
WireConnection;1039;0;1031;0
WireConnection;1794;0;1187;0
WireConnection;1755;0;1682;0
WireConnection;1873;0;1056;0
WireConnection;1442;0;1044;0
WireConnection;1756;0;1757;0
WireConnection;1872;0;1871;0
WireConnection;1298;1;1790;0
WireConnection;1298;0;1789;0
WireConnection;1715;0;986;0
WireConnection;1715;1;1716;0
WireConnection;1709;0;1708;4
WireConnection;951;0;1756;0
WireConnection;951;1;1755;0
WireConnection;951;2;1760;0
WireConnection;1870;0;1872;0
WireConnection;1874;0;1873;0
WireConnection;526;0;1442;0
WireConnection;1798;0;1298;0
WireConnection;1034;0;1032;0
WireConnection;1034;1;1039;0
WireConnection;976;0;1053;0
WireConnection;976;1;1715;0
WireConnection;1304;0;1798;0
WireConnection;1304;1;1284;0
WireConnection;1304;2;1254;0
WireConnection;1055;0;1874;0
WireConnection;673;0;670;0
WireConnection;1710;0;976;0
WireConnection;1710;1;1053;0
WireConnection;1710;2;1709;0
WireConnection;1440;0;526;0
WireConnection;1035;1;1034;0
WireConnection;1035;2;1033;0
WireConnection;1867;0;1755;0
WireConnection;1867;1;951;0
WireConnection;1867;2;1870;0
WireConnection;994;1;1055;0
WireConnection;994;0;1710;0
WireConnection;1300;1;1298;0
WireConnection;1300;0;1304;0
WireConnection;1036;0;1035;0
WireConnection;941;1;1755;0
WireConnection;941;0;1867;0
WireConnection;1862;0;1440;0
WireConnection;1862;1;1863;0
WireConnection;1862;2;673;0
WireConnection;991;0;994;0
WireConnection;1357;0;1036;0
WireConnection;988;0;941;0
WireConnection;1360;0;1862;0
WireConnection;1364;0;1300;0
WireConnection;1208;0;1201;0
WireConnection;1499;0;1493;0
WireConnection;1499;1;1480;3
WireConnection;1452;0;1453;0
WireConnection;1452;1;1451;0
WireConnection;1200;0;1199;0
WireConnection;1520;0;1480;3
WireConnection;1500;0;1497;0
WireConnection;1500;1;1499;0
WireConnection;1201;0;1200;0
WireConnection;1201;1;1106;0
WireConnection;1199;0;1198;2
WireConnection;1199;1;1105;0
WireConnection;1505;0;1504;0
WireConnection;1501;0;1520;0
WireConnection;1501;1;1514;0
WireConnection;1502;0;1500;0
WireConnection;1502;1;1501;0
WireConnection;1504;0;1503;0
WireConnection;1503;0;1502;0
WireConnection;1503;1;1480;3
WireConnection;1503;2;1480;3
WireConnection;1451;0;1147;4
WireConnection;1451;1;1146;4
WireConnection;1900;0;992;0
WireConnection;1900;1;1365;0
WireConnection;1900;2;1359;0
WireConnection;1900;4;989;0
WireConnection;1900;5;1362;0
ASEEND*/
//CHKSM=80C12396F9D544357A603B0D7339DEBD9472C086