// CRC32: 57FE86C4 |    Unity headers extracted from EdgesOfTheWorld.shader
//    Shader "Amplitude/EdgesOfTheWorld" {
//      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 208964
//          Program "vp" {
//            SubProgram "d3d9 " {
//              GpuProgramIndex 32
//            }
//          }
//        }
//      }
//    }
//
// Unity 5.3 headers extracted from EdgesOfTheWorld.shader.decompressed:
//   API d3d9
//   Shader model vs_3_0
//   undeciphered1: 25 -1 -1
//   Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_OFF" "DEFAULT_RENDERER" }
//   undeciphered3: 9 2 0 0 3 4 1
//   Float 11 [_2DEmpireView]
//   Float 10 [_2DView]
//   Vector 12 [_MainTex_ST]
//   Vector 7 [_ProjectionParams]
//   Vector 8 [_ScreenParams]
//   Vector 9 [_WorldSize]
//   Matrix 4 [_Object2World] 3
//   Matrix 0 [glstate_matrix_mvp]
//
// 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:22 2016
//
//
// Parameters:
//
//   float _2DEmpireView;
//   float _2DView;
//   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
//   _WorldSize         c9       1
//   _2DView            c10      1
//   _2DEmpireView      c11      1
//   _MainTex_ST        c12      1
//
//
// Default values:
//
//   _2DView
//     c10  = { 0, 0, 0, 0 };
//
//   _2DEmpireView
//     c11  = { 0, 0, 0, 0 };
//

    vs_3_0
    def c13, 0.546999991, 0.275999993, 0.5, 0
    dcl_position v0
    dcl_texcoord v1
    dcl_position o0
    dcl_texcoord o1.xy
    dcl_texcoord1 o2.xy
    dcl_texcoord2 o3
    dcl_texcoord3 o4

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

    rcp r0.x, c9.x
    rcp r0.y, c9.y
    mov r1.xy, c13
    mul r0.z, r1.x, c10.x
    mad r0.z, r0.z, -v0.y, v0.y
    min r0.z, r0.z, v0.y
    mul r0.w, r1.y, c11.x
    mad r0.w, r0.w, -r0.z, r0.z
    min r1.y, r0.w, r0.z
    mov r1.xzw, v0
    dp4 r2.x, c4, r1
    dp4 r2.y, c6, r1
    mul o2.xy, r0, r2
    mad o1.xy, v1, c12, c12.zwzw
    dp4 r0.x, c0, r1
    dp4 r0.w, c3, r1

mov o0, r0 // Relocated from line 118 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\57FE86C4.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, c13.z
    dp4 r0.y, c1, r1
    dp4 r0.z, c2, r1
    mul r1.x, r0.y, c7.x

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

    mov o3.zw, r0
    mul r2.w, r1.x, c13.z
    mad o3.xy, r2.z, c8.zwzw, r2.xwzw
    mov o4, c13.w

// approximately 25 instruction slots used
