// hlsltool.py -I ../112 --auto-fix-vertex-halo --fix-unity-reflection --only-autofixed --no-validate --ignore-other-errors 694078a384d7293d-vs_replace.txt
// 3DMigoto: 694078a384d7293d | Matched 2 variants of 2 shaders: Hidden/Relief Pack/ReliefTerrain-FarOnly, Relief Pack/ReliefTerrain-FirstPass
//
// 1:    Unity headers extracted from ReliefTerrain-FarOnly.shader
// 2:    Unity headers extracted from ReliefTerrain-FirstPass.shader
// 1:    Shader "Hidden/Relief Pack/ReliefTerrain-FarOnly" {
// 2:    Shader "Relief Pack/ReliefTerrain-FirstPass" {
//         Properties {
//          _Control ("Control (RGBA)", 2D) = "red" { }
//          _Splat3 ("Layer 3 (A)", 2D) = "white" { }
//          _Splat2 ("Layer 2 (B)", 2D) = "white" { }
//          _Splat1 ("Layer 1 (G)", 2D) = "white" { }
//          _Splat0 ("Layer 0 (R)", 2D) = "white" { }
//          _MainTex ("BaseMap (RGB)", 2D) = "white" { }
//          _Color ("Main Color", Color) = (1,1,1,1)
//         [HideInInspector]  _Control1 ("Control1 (RGBA)", 2D) = "red" { }
//         [HideInInspector]  _Control2 ("Control2 (RGBA)", 2D) = "red" { }
//         [HideInInspector]  _Control3 ("Control3 (RGBA)", 2D) = "red" { }
//         [HideInInspector]  _SplatAtlasA ("atlas", 2D) = "black" { }
//         [HideInInspector]  _SplatAtlasB ("atlas", 2D) = "black" { }
//         [HideInInspector]  _SplatAtlasC ("atlas", 2D) = "black" { }
//         [HideInInspector]  _SplatA0 ("Detailmap 0 (RGB+A spec)", 2D) = "black" { }
//         [HideInInspector]  _SplatA1 ("Detailmap 1 (RGB+A spec)", 2D) = "black" { }
//         [HideInInspector]  _SplatA2 ("Detailmap 2 (RGB+A spec)", 2D) = "black" { }
//         [HideInInspector]  _SplatA3 ("Detailmap 3 (RGB+A spec)", 2D) = "black" { }
//         [HideInInspector]  _SplatB0 ("Detailmap 4 (RGB+A spec)", 2D) = "black" { }
//         [HideInInspector]  _SplatB1 ("Detailmap 5 (RGB+A spec)", 2D) = "black" { }
//         [HideInInspector]  _SplatB2 ("Detailmap 6 (RGB+A spec)", 2D) = "black" { }
//         [HideInInspector]  _SplatB3 ("Detailmap 7 (RGB+A spec)", 2D) = "black" { }
//         [HideInInspector]  _SplatC0 ("Detailmap 8 (RGB+A spec)", 2D) = "black" { }
//         [HideInInspector]  _SplatC1 ("Detailmap 9 (RGB+A spec)", 2D) = "black" { }
//         [HideInInspector]  _SplatC2 ("Detailmap 10 (RGB+A spec)", 2D) = "black" { }
//         [HideInInspector]  _SplatC3 ("Detailmap 11 (RGB+A spec)", 2D) = "black" { }
//         [HideInInspector]  _BumpMap01 ("Bumpmap combined 0+1 (RG+BA)", 2D) = "grey" { }
//         [HideInInspector]  _BumpMap23 ("Bumpmap combined 2+3 (RG+BA)", 2D) = "grey" { }
//         [HideInInspector]  _BumpMap45 ("Bumpmap combined 4+5 (RG+BA)", 2D) = "grey" { }
//         [HideInInspector]  _BumpMap67 ("Bumpmap combined 6+7 (RG+BA)", 2D) = "grey" { }
//         [HideInInspector]  _BumpMap89 ("Bumpmap combined 8+9 (RG+BA)", 2D) = "grey" { }
//         [HideInInspector]  _BumpMapAB ("Bumpmap combined 10+11 (RG+BA)", 2D) = "grey" { }
//         [HideInInspector]  _TERRAIN_HeightMap ("Heightmap combined (RGBA - layers 0-3)", 2D) = "white" { }
//         [HideInInspector]  _TERRAIN_HeightMap2 ("Heightmap combined (RGBA - layers 4-7)", 2D) = "white" { }
//         [HideInInspector]  _TERRAIN_HeightMap3 ("Heightmap combined (RGBA - layers 8-11)", 2D) = "white" { }
//         [HideInInspector]  _ColorMapGlobal ("Global colormap (RGBA)", 2D) = "white" { }
//         [HideInInspector]  _NormalMapGlobal ("Global normalmap (RGBA)", 2D) = "white" { }
//         [HideInInspector]  _TreesMapGlobal ("Global pixel treesmap (RGBA)", 2D) = "white" { }
//         [HideInInspector]  _AmbientEmissiveMapGlobal ("Global  ambient emissive map (RGBA)", 2D) = "white" { }
//         [HideInInspector]  _BumpMapGlobal ("Perlin normal combined w. water & reflection map (RG+B+A)", 2D) = "black" { }
//         [HideInInspector]  _VerticalTexture ("Vertical texture", 2D) = "grey" { }
//         [HideInInspector]  TERRAIN_RippleMap ("Water ripplemap", 2D) = "black" { }
//         [HideInInspector]  terrainTileSize ("terrainTileSize", Vector) = (600,200,600,1)
//         [HideInInspector]  _BumpMapGlobalScale ("", Float) = 1
//         [HideInInspector]  _GlobalColorMapBlendValues ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorMapSaturation ("", Float) = 1
//         [HideInInspector]  _GlobalColorMapSaturationFar ("", Float) = 1
//         [HideInInspector]  _GlobalColorMapBrightness ("", Float) = 1
//         [HideInInspector]  _GlobalColorMapBrightnessFar ("", Float) = 1
//         [HideInInspector]  _GlobalColorMapNearMIP ("", Float) = 1
//         [HideInInspector]  _GlobalColorMapDistortByPerlin ("", Float) = 1
//         [HideInInspector]  EmissionRefractFiltering ("", Float) = 1
//         [HideInInspector]  EmissionRefractAnimSpeed ("", Float) = 1
//         [HideInInspector]  _TERRAIN_ReliefTransform ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _TERRAIN_ReliefTransformTriplanarZ ("", Float) = 1
//         [HideInInspector]  _TERRAIN_DIST_STEPS ("", Float) = 1
//         [HideInInspector]  _TERRAIN_WAVELENGTH ("", Float) = 1
//         [HideInInspector]  _blend_multiplier ("", Float) = 1
//         [HideInInspector]  _TERRAIN_ExtrudeHeight ("", Float) = 1
//         [HideInInspector]  _TERRAIN_LightmapShading ("", Float) = 1
//         [HideInInspector]  _TERRAIN_SHADOW_STEPS ("", Float) = 1
//         [HideInInspector]  _TERRAIN_WAVELENGTH_SHADOWS ("", Float) = 1
//         [HideInInspector]  _TERRAIN_SelfShadowStrength ("", Float) = 1
//         [HideInInspector]  _TERRAIN_ShadowSmoothing ("", Float) = 1
//         [HideInInspector]  rtp_mipoffset_color ("", Float) = 1
//         [HideInInspector]  rtp_mipoffset_bump ("", Float) = 1
//         [HideInInspector]  rtp_mipoffset_height ("", Float) = 1
//         [HideInInspector]  rtp_mipoffset_superdetail ("", Float) = 1
//         [HideInInspector]  rtp_mipoffset_flow ("", Float) = 1
//         [HideInInspector]  rtp_mipoffset_ripple ("", Float) = 1
//         [HideInInspector]  rtp_mipoffset_globalnorm ("", Float) = 1
//         [HideInInspector]  rtp_mipoffset_caustics ("", Float) = 1
//         [HideInInspector]  TERRAIN_CausticsAnimSpeed ("", Float) = 1
//         [HideInInspector]  TERRAIN_CausticsColor ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_CausticsTilingScale ("", Float) = 1
//         [HideInInspector]  TERRAIN_RippleScale ("", Float) = 1
//         [HideInInspector]  TERRAIN_FlowScale ("", Float) = 1
//         [HideInInspector]  TERRAIN_FlowSpeed ("", Float) = 1
//         [HideInInspector]  TERRAIN_FlowCycleScale ("", Float) = 1
//         [HideInInspector]  TERRAIN_FlowMipOffset ("", Float) = 1
//         [HideInInspector]  TERRAIN_DropletsSpeed ("", Float) = 1
//         [HideInInspector]  TERRAIN_WetDarkening ("", Float) = 1
//         [HideInInspector]  TERRAIN_WetDropletsStrength ("", Float) = 1
//         [HideInInspector]  TERRAIN_WetHeight_Treshold ("", Float) = 1
//         [HideInInspector]  TERRAIN_WetHeight_Transition ("", Float) = 1
//         [HideInInspector]  TERRAIN_mipoffset_flowSpeed ("", Float) = 1
//         [HideInInspector]  _TERRAIN_distance_start ("", Float) = 1
//         [HideInInspector]  _TERRAIN_distance_transition ("", Float) = 1
//         [HideInInspector]  _TERRAIN_distance_start_bumpglobal ("", Float) = 1
//         [HideInInspector]  _TERRAIN_distance_transition_bumpglobal ("", Float) = 1
//         [HideInInspector]  rtp_perlin_start_val ("", Float) = 1
//         [HideInInspector]  _FarNormalDamp ("", Float) = 1
//         [HideInInspector]  _RTP_MIP_BIAS ("", Float) = 1
//         [HideInInspector]  _SuperDetailTiling ("", Float) = 1
//         [HideInInspector]  _VerticalTextureTiling ("", Float) = 1
//         [HideInInspector]  _VerticalTextureGlobalBumpInfluence ("", Float) = 1
//         [HideInInspector]  RTP_AOamp ("", Float) = 1
//         [HideInInspector]  RTP_AOsharpness ("", Float) = 1
//         [HideInInspector]  _MixScale0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixBlend0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorPerLayer0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerBrightness0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerSaturation0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerBrightness2Spec0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerAlbedo2SpecColor0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixSaturation0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixBrightness0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixReplace0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmission0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionRefractStrength0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionRefractHBedge0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionColorR0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionColorG0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionColorB0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionColorA0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorBottom0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorTop0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorColormapLoSat0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorColormapHiSat0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorLayerLoSat0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorLayerHiSat0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorLoBlend0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorHiBlend0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _FarSpecCorrection0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MIPmult0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_LayerWetStrength0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterLevel0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterLevelSlopeDamp0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterEdge0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_Refraction0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WetRefraction0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_Flow0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WetFlow0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WetGloss0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterMetallic0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterGloss0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterGlossDamper0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterEmission0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterColorR0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterColorG0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterColorB0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterColorA0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _BumpMapGlobalStrength0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  PER_LAYER_HEIGHT_MODIFIER0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultA0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultB0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthNormal0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultASelfMaskNear0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultASelfMaskFar0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultBSelfMaskNear0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultBSelfMaskFar0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _VerticalTexture0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_metallic0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_glossMin0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_glossMax0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_DiffFresnel0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_AO_0123 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixScale4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixBlend4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorPerLayer4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerBrightness4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerSaturation4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerBrightness2Spec4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerAlbedo2SpecColor4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixSaturation4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixBrightness4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixReplace4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmission4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionRefractStrength4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionRefractHBedge4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionColorR4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionColorG4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionColorB4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionColorA4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorBottom4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorTop4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorColormapLoSat4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorColormapHiSat4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorLayerLoSat4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorLayerHiSat4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorLoBlend4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorHiBlend4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _FarSpecCorrection4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MIPmult4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_LayerWetStrength4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterLevel4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterLevelSlopeDamp4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterEdge4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_Refraction4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WetRefraction4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_Flow4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WetFlow4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WetGloss4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterMetallic4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterGloss4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterGlossDamper4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterEmission4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterColorR4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterColorG4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterColorB4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterColorA4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _BumpMapGlobalStrength4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  PER_LAYER_HEIGHT_MODIFIER4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultA4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultB4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthNormal4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultASelfMaskNear4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultASelfMaskFar4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultBSelfMaskNear4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultBSelfMaskFar4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _VerticalTexture4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_metallic4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_glossMin4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_glossMax4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_DiffFresnel4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_AO_4567 ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixScale89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixBlend89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorPerLayer89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerBrightness89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerSaturation89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerBrightness2Spec89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerAlbedo2SpecColor89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixSaturation89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixBrightness89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MixReplace89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmission89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionRefractStrength89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionRefractHBedge89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionColorR89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionColorG89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionColorB89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _LayerEmissionColorA89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorBottom89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorTop89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorColormapLoSat89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorColormapHiSat89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorLayerLoSat89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorLayerHiSat89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorLoBlend89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlobalColorHiBlend89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _FarSpecCorrection89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _MIPmult89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_LayerWetStrength89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterLevel89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterLevelSlopeDamp89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterEdge89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_Refraction89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WetRefraction89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_Flow89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WetFlow89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WetGloss89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterMetallic89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterGloss89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterGlossDamper89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterEmission89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterColorR89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterColorG89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterColorB89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  TERRAIN_WaterColorA89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _BumpMapGlobalStrength89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  PER_LAYER_HEIGHT_MODIFIER89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultA89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultB89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthNormal89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultASelfMaskNear89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultASelfMaskFar89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultBSelfMaskNear89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _SuperDetailStrengthMultBSelfMaskFar89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _VerticalTexture89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_metallic89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_glossMin89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_glossMax89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_DiffFresnel89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  RTP_AO_89AB ("", Vector) = (1,1,1,1)
//         [HideInInspector]  _GlitterColor ("", Color) = (1,1,1,1)
//         [HideInInspector]  _GlitterStrength0123 ("", Vector) = (0,0,0,0)
//         [HideInInspector]  _GlitterStrength4567 ("", Vector) = (0,0,0,0)
//         [HideInInspector]  _GlitterStrength89AB ("", Vector) = (0,0,0,0)
//         [HideInInspector]  _GlitterTiling ("", Float) = 1
//         [HideInInspector]  _GlitterDensity ("", Float) = 0.5
//         [HideInInspector]  _GlitterFilter ("", Float) = 0
//         [HideInInspector]  _GlitterColorization ("", Float) = 0.5
//         [HideInInspector]  _SparkleMap ("", 2D) = "black" { }
//         [HideInInspector]  _occlusionStrength ("", Range(0,1)) = 1
//         [HideInInspector]  _Phong ("_Phong", Float) = 0.5
//         [HideInInspector]  _TessSubdivisions ("", Float) = 1
//         [HideInInspector]  _TessSubdivisionsFar ("", Float) = 1
//         [HideInInspector]  _TessYOffset ("", Float) = 0
//         }
// 2:      Dependency "AddPassShader" = "Hidden/Relief Pack/ReliefTerrain-AddPass"
// 2:      Dependency "BaseMapShader" = "Hidden/Relief Pack/ReliefTerrain-FarOnly"
// 2:      Fallback "Diffuse"
//         SubShader 1/1 {
//           LOD 700
// 1:        Tags { "QUEUE"="Geometry-100" "RenderType"="Opaque" "SplatCount"="12" }
// 2:        Tags { "QUEUE"="Geometry-100" "RenderType"="Opaque" "SplatCount"="4" }
//           Pass 4/4 {
//             Name "CASTER"
// 1:          Tags { "LIGHTMODE"="SHADOWCASTER" "QUEUE"="Geometry-100" "SHADOWSUPPORT"="true" "RenderType"="Opaque" "SplatCount"="12" }
// 2:          Tags { "LIGHTMODE"="SHADOWCASTER" "QUEUE"="Geometry-100" "SHADOWSUPPORT"="true" "RenderType"="Opaque" "SplatCount"="4" }
//             Cull Off
//             Offset 1, 1
// 2:          GpuProgramID 281896
// 1:          GpuProgramID 314491
//             Program "vp" {
//               SubProgram "d3d11_9x " {
//                 GpuProgramIndex 202
//               }
//             }
//           }
//         }
//       }
//
// 1: Unity 5.3 headers extracted from ReliefTerrain-FarOnly.shader.decompressed:
// 2: Unity 5.3 headers extracted from ReliefTerrain-FirstPass.shader.decompressed:
//      API d3d11_9x
//      Shader model vs_4_0_level_9_1
//      undeciphered1: 201509030 9 0 0
//      Keywords { "SHADOWS_DEPTH" }
//      undeciphered2: 1 0 2 0 0
//      undeciphered3: 9 2 0 0 3 4
//      ConstBuffer "UnityShadows" 416
//      Vector 80 [unity_LightShadowBias]
//      ConstBuffer "UnityPerDraw" 352
//      Matrix 0 [glstate_matrix_mvp]
//      BindCB "UnityShadows" 0
//      BindCB "UnityPerDraw" 1
//
// Headers extracted with DarkStarSword's extract_unity53_shaders.py
// https://raw.githubusercontent.com/DarkStarSword/3d-fixes/master/extract_unity53_shaders.py

// ---- Created with 3Dmigoto v1.2.38 on Thu Feb 09 12:28:48 2017
cbuffer cb1 : register(b1)
{
  float4 cb1[4];
}

cbuffer cb0 : register(b0)
{
  float4 cb0[6];
}




// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);


void main( 
  float4 v0 : POSITION0,
  float3 v1 : NORMAL0,
  float4 v2 : TEXCOORD0,
  out float4 o0 : SV_POSITION0,
  out float2 o1 : TEXCOORD1)
{
  float4 r0,r1;
  uint4 bitmask, uiDest;
  float4 fDest;

float4 stereo = StereoParams.Load(0);
float separation = stereo.x, convergence = stereo.y, eye = stereo.z;

  r0.xyzw = cb1[1].xyzw * v0.yyyy;
  r0.xyzw = cb1[0].xyzw * v0.xxxx + r0.xyzw;
  r0.xyzw = cb1[2].xyzw * v0.zzzz + r0.xyzw;
  r0.xyzw = cb1[3].xyzw + r0.xyzw;

o0.xyw = r0.xyw; // Relocated to here with hlsltool.py

// Automatic vertex shader halo fix inserted with DarkStarSword's hlsltool.py:
// hlsltool.py -I ../112 --auto-fix-vertex-halo --fix-unity-reflection --only-autofixed --no-validate --ignore-other-errors 694078a384d7293d-vs_replace.txt
if (r0.w != 1.0) { r0.x += separation * (r0.w - convergence); }

  r1.x = saturate(cb0[5].x / r0.w);
  r0.z = r1.x + r0.z;

  // o0.xyw = r0.xyw; // Relocated from here with hlsltool.py

  r0.x = max(0, r0.z);
  r0.x = r0.x + -r0.z;
  o0.z = cb0[5].y * r0.x + r0.z;
  o1.xy = v2.xy;
  return;
}
