// CRC32: 8FDB685A |    Unity headers extracted from LevelLine.shader
//    Shader "Custom/LevelLine" {
//      Properties {
//       _MainTex ("Diffuse", 2D) = "white" { }
//       _Radius ("Radius 3D / Battle / 2D / Empire", Vector) = (0.04,0.04,0.04,0)
//       _Alpha ("Alpha 3D / Battle / 2D / Empire", Vector) = (0.058,0.058,0.058,0.058)
//       _SideOffset ("Side Offset", Float) = 0
//       _YOffset ("Y Offset", Float) = 0.02
//       _CapSize ("Cap Size", Float) = 0.5
//       _Color ("Color", Color) = (1,1,1,1)
//      }
//      Fallback Off
//      SubShader 1/1 {
//        Tags { "QUEUE"="Transparent-12" }
//        GrabPass {
//          "_WaterGrabTexture"
//          Tags { "LIGHTMODE"="Always" }
//         }
//        Pass 1/1 {
//          Tags { "QUEUE"="Transparent-12" }
//          ZWrite Off
//          Cull Off
//          Blend SrcAlpha OneMinusSrcAlpha
//          ColorMask RGB
//          GpuProgramID 12968
//          Program "vp" {
//            SubProgram "d3d9 " {
//              GpuProgramIndex 0
//            }
//          }
//        }
//      }
//    }
//
// Unity 5.3 headers extracted from LevelLine.shader.decompressed:
//   API d3d9
//   Shader model vs_3_0
//   undeciphered1: 52 2 -1
//   undeciphered3: 13 3 0 0 2 1 3 4 1
//   Float 15 [_2DEmpireView]
//   Float 14 [_2DView]
//   Vector 17 [_Alpha]
//   Float 20 [_CapSize]
//   Vector 21 [_Color]
//   Vector 12 [_FilteredFirstHexaTexture_TexelSize]
//   Vector 10 [_ProjectionParams]
//   Vector 16 [_Radius]
//   Vector 11 [_ScreenParams]
//   Float 18 [_SideOffset]
//   Vector 13 [_WorldSize]
//   Float 19 [_YOffset]
//   Matrix 7 [_Object2World] 3
//   Matrix 4 [glstate_matrix_modelview0] 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:35 2016
//
//
// Parameters:
//
//   float _2DEmpireView;
//   float _2DView;
//   float4 _Alpha;
//   float _CapSize;
//   float4 _Color;
//   sampler2D _FilteredFirstHexaTexture;
//   float4 _FilteredFirstHexaTexture_TexelSize;
//   row_major float4x4 _Object2World;
//   float4 _ProjectionParams;
//   float4 _Radius;
//   float4 _ScreenParams;
//   float _SideOffset;
//   float4 _WorldSize;
//   float _YOffset;
//   row_major float4x4 glstate_matrix_modelview0;
//   row_major float4x4 glstate_matrix_mvp;
//
//
// Registers:
//
//   Name                                Reg   Size
//   ----------------------------------- ----- ----
//   glstate_matrix_mvp                  c0       4
//   glstate_matrix_modelview0           c4       3
//   _Object2World                       c7       3
//   _ProjectionParams                   c10      1
//   _ScreenParams                       c11      1
//   _FilteredFirstHexaTexture_TexelSize c12      1
//   _WorldSize                          c13      1
//   _2DView                             c14      1
//   _2DEmpireView                       c15      1
//   _Radius                             c16      1
//   _Alpha                              c17      1
//   _SideOffset                         c18      1
//   _YOffset                            c19      1
//   _CapSize                            c20      1
//   _Color                              c21      1
//   _FilteredFirstHexaTexture           s0       1
//
//
// Default values:
//
//   _2DView
//     c14  = { 0, 0, 0, 0 };
//
//   _2DEmpireView
//     c15  = { 0, 0, 0, 0 };
//

    vs_3_0
    def c22, 1, 0, 0.5, -0.0399999991
    def c23, -1, 1, 0, 0
    dcl_position v0
    dcl_color v1
    dcl_texcoord v2
    dcl_2d s0
    dcl_position o0
    dcl_texcoord o1.xy
    dcl_texcoord1 o2
    dcl_texcoord2 o3

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

    dp4 r0.x, c7, v0
    dp4 r0.y, c9, v0
    rcp r1.x, c13.x
    rcp r1.y, c13.y
    mul r0.xy, r0, r1
    max r0.y, r0.y, c22.y
    mov r1.x, c22.x
    add r1.y, r1.x, -c12.y
    min r0.z, r0.y, r1.y
    mov r0.w, c22.y
    texldl r0, r0.xzww, s0
    mov_sat r0.z, r0.x
    add r0.w, r1.x, -c15.x
    min r1.y, r0.y, r0.w
    add r0.x, -r0.x, c22.z
    add_sat r0.x, r0.x, r0.x
    lrp r2.x, r0.x, c22.w, v0.y
    add r2.y, r2.x, c19.x
    add r0.x, r0.w, -r1.y
    min r1.z, r0.x, c14.x
    add r0.x, r0.w, -r1.z
    add r1.x, -r1.y, r0.x
    mov r1.w, c15.x
    dp4 r0.x, r1, c17
    dp4 r0.y, r1, c16
    mul o2.w, r0.z, r0.x
    mul r0.x, r0.y, c20.x
    mul r0.yz, r0.y, v2.xxyw
    mul r1.xy, c23, v2.yxzw
    mul r0.xw, r0.x, -r1.xyzy
    add r1.x, -c22.z, v1.x
    mul r0.xw, r0, r1.x
    add r1.x, c18.x, v1.y
    add r1.x, r1.x, -c22.z
    mad r0.xy, r0.yzzw, r1.x, r0.xwzw
    mov r1.xyz, v0.xzww
    add r2.xz, r0.xyyw, r1.xyyw
    mov r2.w, r1.z
    dp4 o0.z, c2, r2
    dp4 r0.x, c0, r2
    dp4 r0.w, c3, r2
    dp4 r0.y, c1, r2

mov o0.xyw, r0 // Relocated from line 170 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\8FDB685A.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, c22.z

//     mov o0.xyw, r0 // Relocated to line 169 with shadertool.py
    mul r0.x, r0.y, c10.x
    mul r1.w, r0.x, c22.z
    mad o3.xy, r1.z, c11.zwzw, r1.xwzw
    mov o3.w, r0.w
    dp4 r0.x, c6, v0
    mov o3.z, -r0.x
    mov o1.xy, v1
    mov o2.xyz, c21

// approximately 53 instruction slots used (2 texture, 51 arithmetic)
