// CRC32: E2FD879B |    Unity headers extracted from DecalRoad.shader
//    Shader "Amplitude/Environment/Terrain/DecalRoad" {
//      Properties {
//       _Shininess ("Shininess", Range(0.01,1)) = 0.078125
//       _AltitudeGammaCorrectionFactor ("Altitude Gamma Correction", Float) = 0.25
//       _MainTex ("Base (RGB) TransGloss (A)", 2D) = "white" { }
//       _SpecularTex ("GlossColor", 2D) = "black" { }
//       _NormalTex ("Normal", 2D) = "bump" { }
//       _IllumTex ("Illum", 2D) = "black" { }
//       _NoiseTex ("NoiseTexture", 2D) = "white" { }
//       _HexaGridTexture ("Hexa Grid Tex", 2D) = "black" { }
//       _Intensity ("Intensity", Float) = 0.5
//       _ViewSensitivity ("3D, Battle, 2D, Empire", Vector) = (1,0,0,0)
//       _WinterSensitivity ("Summer, Winter, WinterIntensity, Fow intensity", Vector) = (1,1,1,1)
//       _Cutoff ("Alpha cutoff", Range(0,1)) = 0.5
//       _VisibilityStatus ("Visible at date1, date1, visible at date0, date0", Vector) = (1,0,1,-1)
//       _TransitionHexaPerTexture ("Hexa per Tex Transition", Float) = 2
//      }
//      Fallback Off
//      SubShader 1/1 {
//        Tags { "QUEUE"="Geometry-5" "RenderType"="Opaque" }
//        Pass 4/5 {
//          Name "PREPASS"
//          Tags { "LIGHTMODE"="PrePassFinal" "QUEUE"="Geometry-5" "RenderType"="Opaque" }
//          ZWrite Off
//          GpuProgramID 232130
//          Program "vp" {
//            SubProgram "d3d9 " {
//              GpuProgramIndex 34
//            }
//          }
//        }
//      }
//    }
//
// Unity 5.3 headers extracted from DecalRoad.shader.decompressed:
//   API d3d9
//   Shader model vs_3_0
//   undeciphered1: 31 2 -1
//   Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_OFF" "INGAME_RENDERER" }
//   undeciphered3: 13 3 0 0 2 1 3 4 1
//   Vector 9 [_FilteredFirstHexaTexture_TexelSize]
//   Vector 11 [_MainTex_ST]
//   Vector 7 [_ProjectionParams]
//   Vector 8 [_ScreenParams]
//   Vector 10 [_WorldSize]
//   Matrix 4 [_Object2World] 3
//   Matrix 0 [glstate_matrix_mvp]
//   SetTexture 0 [_FilteredFirstHexaTexture] 2D 0
//
// Headers extracted with DarkStarSword's extract_unity53_shaders.py
// https://raw.githubusercontent.com/DarkStarSword/3d-fixes/master/extract_unity53_shaders.py

//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384
//   using 3Dmigoto command line v1.2.38 on Sun Oct 16 02:25:15 2016
//
//
// Parameters:
//
//   sampler2D _FilteredFirstHexaTexture;
//   float4 _FilteredFirstHexaTexture_TexelSize;
//   float4 _MainTex_ST;
//   row_major float4x4 _Object2World;
//   float4 _ProjectionParams;
//   float4 _ScreenParams;
//   float4 _WorldSize;
//   row_major float4x4 glstate_matrix_mvp;
//
//
// Registers:
//
//   Name                                Reg   Size
//   ----------------------------------- ----- ----
//   glstate_matrix_mvp                  c0       4
//   _Object2World                       c4       3
//   _ProjectionParams                   c7       1
//   _ScreenParams                       c8       1
//   _FilteredFirstHexaTexture_TexelSize c9       1
//   _WorldSize                          c10      1
//   _MainTex_ST                         c11      1
//   _FilteredFirstHexaTexture           s0       1
//

    vs_3_0
    def c12, 1, 0, 0.5, -0.0500000007
    dcl_position v0
    dcl_texcoord v1
    dcl_color v2
    dcl_2d s0
    dcl_position o0
    dcl_texcoord o1.xy
    dcl_texcoord1 o2.xyz
    dcl_texcoord2 o3
    dcl_texcoord3 o4
    dcl_texcoord4 o5

def c220, 0, 1, 0.0625, 0.5
dcl_2d s3

    mad o1.xy, v1, c11, c11.zwzw
    dp4 r0.x, c4, v0
    dp4 r0.y, c6, v0
    rcp r1.x, c10.x
    rcp r1.y, c10.y
    mul r0.xy, r0, r1
    max r0.y, r0.y, c12.y
    mov r1.x, c12.x
    add r1.x, r1.x, -c9.y
    min r0.z, r0.y, r1.x
    mov r0.w, c12.y
    texldl r0, r0.xzww, s0
    add r0.x, -r0.x, c12.z
    add_sat r0.x, r0.x, r0.x
    lrp r1.y, r0.x, c12.w, v0.y
    mov r1.xzw, v0
    dp4 o2.x, c4, r1
    dp4 o2.y, c5, r1
    dp4 o2.z, c6, r1
    dp4 r0.x, c0, r1
    dp4 r0.w, c3, r1

mov o0, r0 // Relocated from line 122 with shadertool.py

// Automatic vertex shader halo fix inserted with DarkStarSword's shadertool.py:
// shadertool.py -i --fix-unity-reflection --auto-fix-vertex-halo --add-fog-on-sm3-update --stereo-sampler-vs s3 --only-autofixed --ignore-parse-errors --ignore-register-errors --ignore-other-errors dumps\allshaders\vertexshader\E2FD879B.txt
texldl r31, c220.z, s3
add r31.w, r0.w, -r31.y
mad r0.x, r31.w, r31.x, r0.x

    mul r2.xz, r0.xyww, c12.z
    dp4 r0.y, c1, r1
    dp4 r0.z, c2, r1
    mul r1.x, r0.y, c7.x

//     mov o0, r0 // Relocated to line 118 with shadertool.py
mov o0.yz, r0 // Inserted by shadertool.py

    mov o4.zw, r0
    mul r2.w, r1.x, c12.z
    mad o4.xy, r2.z, c8.zwzw, r2.xwzw
    mov o3, v2
    mov o5, c12.y

// approximately 32 instruction slots used (2 texture, 30 arithmetic)
