// CRC32: 8E9773D1 |    Unity headers extracted from Common.shader
//    Shader "Amplitude/Common" {
//      Properties {
//       _Shininess ("Shininess", Float) = 0.078125
//       _Intensity ("Intensity", Float) = 1
//       _AltitudeGammaCorrectionFactor ("Altitude Gamma Correction", Float) = 0.25
//       _MainTex ("Texture", 2D) = "white" { }
//       _BumpMap ("Bumpmap (RGB)", 2D) = "bump" { }
//       _SpecMap ("Spec map (RGB)", 2D) = "white" { }
//       _IlluminMap ("IlluminMap (RGB)", 2D) = "black" { }
//       _ViewSensitivity ("3D, Battle, 2D, Empire", Vector) = (1,0,0,0)
//       _WinterSensitivity ("Summer, Winter, WinterIntensity, FowIntensity", Vector) = (1,1,1,1)
//      }
//      Fallback Off
//      SubShader 1/1 {
//        Tags { "QUEUE"="Geometry" "RenderType"="Opaque" }
//        Pass 4/5 {
//          Name "PREPASS"
//          Tags { "LIGHTMODE"="PrePassFinal" "QUEUE"="Geometry" "RenderType"="Opaque" }
//          ZWrite Off
//          GpuProgramID 225870
//          Program "vp" {
//            SubProgram "d3d9 " {
//              GpuProgramIndex 32
//            }
//          }
//        }
//      }
//    }
//
// Unity 5.3 headers extracted from Common.shader.decompressed:
//   API d3d9
//   Shader model vs_3_0
//   undeciphered1: 56 4 -1
//   Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_OFF" "DEFAULT_RENDERER" }
//   undeciphered3: 9 2 0 0 3 4 1
//   Vector 11 [_FirstHexaTextureLookup_TexelSize]
//   Vector 12 [_MainTex_ST]
//   Vector 7 [_ProjectionParams]
//   Vector 10 [_RegionColorAndNeutralMap_TexelSize]
//   Vector 8 [_ScreenParams]
//   Vector 9 [_WorldSize]
//   Matrix 4 [_Object2World] 3
//   Matrix 0 [glstate_matrix_mvp]
//   SetTexture 0 [_RegionColorAndNeutralMap] 2D 0
//   SetTexture 1 [_FirstHexaTextureLookup] 2D 1
//
// 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:24:38 2016
//
//
// Parameters:
//
//   sampler2D _FirstHexaTextureLookup;
//   float4 _FirstHexaTextureLookup_TexelSize;
//   float4 _MainTex_ST;
//   row_major float4x4 _Object2World;
//   float4 _ProjectionParams;
//   sampler2D _RegionColorAndNeutralMap;
//   float4 _RegionColorAndNeutralMap_TexelSize;
//   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
//   _WorldSize                          c9       1
//   _RegionColorAndNeutralMap_TexelSize c10      1
//   _FirstHexaTextureLookup_TexelSize   c11      1
//   _MainTex_ST                         c12      1
//   _RegionColorAndNeutralMap           s0       1
//   _FirstHexaTextureLookup             s1       1
//

    vs_3_0
    def c13, -0.666666687, -0.5, 0.5, 1
    def c14, 0, 255, 0, 0
    dcl_position v0
    dcl_texcoord v1
    dcl_2d s0
    dcl_2d s1
    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

    dp4 o2.z, c5, v0
    dp4 r0.x, c4, v0
    dp4 r0.y, c6, v0
    rcp r1.x, c9.x
    rcp r1.y, c9.y
    mul r0.xy, r0, r1
    rcp r1.z, c11.x
    rcp r1.y, c11.y
    mad r1.yz, r1, r0.xyxw, c13.xxyw
    mov o2.xy, r0
    mad r1.x, r1.y, -c13.z, r1.z
    frc r0.xy, r1
    add r0.zw, -r0.xyxy, r1.xyxy
    mad r1.xy, r0.yxzw, c13.z, r0
    sge r0.y, r0.y, r0.x
    sge r1.zw, c13.w, r1.xyxy
    sge r1.xy, r1, c13.z
    mul r1.zw, r1, r1.xyxy
    mul r1.x, r1.y, r1.x
    add r1.y, r1.w, r1.z
    min r1.y, r1.y, c13.w
    add r0.x, -r0.y, c13.w
    lrp r2.xy, r1.y, r0, r1.x
    add r0.xy, r0.zwzw, r2
    add r0.xy, r0, c13.z
    mul r0.xy, r0, c11
    mov r1.zw, c13
    mul r1.x, r1.z, c11.y
    max r0.y, r0.y, r1.x
    mad r1.x, c11.y, -r1.z, r1.w
    min r0.z, r0.y, r1.x
    mov r0.w, c14.x
    texldl r0, r0.xzww, s1
    mul r0.x, r0.w, c10.x
    mul r0.x, r0.x, c14.y
    frc r0.z, r0.x
    add r0.z, -r0.z, r0.x
    mul r0.y, r0.z, c10.y
    mad r0.xy, c10, r1.z, r0
    mov r0.zw, c14.x
    texldl o3, r0, s0
    mad o1.xy, v1, c12, c12.zwzw
    dp4 r0.y, c1, v0
    mul r1.x, r0.y, c7.x
    mul r1.w, r1.x, c13.z
    dp4 r0.x, c0, v0
    dp4 r0.w, c3, v0

mov o0, r0 // Relocated from line 149 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\8E9773D1.txt
texldl r31, c220.z, s3
add r31.w, r0.w, -r31.y
mad r0.x, r31.w, r31.x, r0.x

    mul r1.xz, r0.xyww, c13.z
    mad o4.xy, r1.z, c8.zwzw, r1.xwzw
    dp4 r0.z, c2, v0

//     mov o0, r0 // Relocated to line 146 with shadertool.py
mov o0.z, r0 // Inserted by shadertool.py

    mov o4.zw, r0
    mov o5, c14.x

// approximately 55 instruction slots used (4 texture, 51 arithmetic)
