// CRC32: A1DC15C7 |    Unity headers extracted from Hole.shader
//    Shader "Custom/Hole" {
//      Properties {
//       _DiffuseAtlas ("DiffuseAtlas", 2D) = "white" { }
//       _SpecularAtlas ("SpecularAtlas", 2D) = "white" { }
//       _NormalAtlas ("NormalAtlas", 2D) = "white" { }
//       _IllumAtlas ("IllumAtlas", 2D) = "white" { }
//       _WhitePaper ("WhitePaper", 2D) = "white" { }
//       _HexaGridTexture ("Hexa Grid Tex", 2D) = "white" { }
//       _HexaPerTexture ("Hexa per Tex", Float) = 2
//      }
//      Fallback Off
//      SubShader 1/1 {
//        Tags { "QUEUE"="Geometry-10" "RenderType"="Opaque" }
//        Pass 5/5 {
//          Name "SHADOWCASTER"
//          Tags { "LIGHTMODE"="SHADOWCASTER" "QUEUE"="Geometry-10" "SHADOWSUPPORT"="true" "RenderType"="Opaque" }
//          GpuProgramID 293447
//          Program "vp" {
//            SubProgram "d3d9 " {
//              GpuProgramIndex 22
//            }
//          }
//        }
//      }
//    }
//
// Unity 5.3 headers extracted from Hole.shader.decompressed:
//   API d3d9
//   Shader model vs_3_0
//   undeciphered1: 79 4 -1
//   Keywords { "SHADOWS_DEPTH" }
//   undeciphered3: 7 3 0 0 2 1 1 2 1
//   Float 18 [_2DView]
//   Vector 16 [_FilteredFirstHexaTexture_TexelSize]
//   Vector 19 [_RegionColorAndNeutralMap_TexelSize]
//   Vector 17 [_WorldSize]
//   Vector 14 [_WorldSpaceLightPos0]
//   Vector 15 [unity_LightShadowBias]
//   Matrix 8 [_Object2World] 3
//   Matrix 11 [_World2Object] 3
//   Matrix 0 [glstate_matrix_mvp]
//   Matrix 4 [unity_MatrixVP]
//   SetTexture 0 [_FilteredFirstHexaTexture] 2D 0
//   SetTexture 1 [_RegionColorAndNeutralMap] 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:25:29 2016
//
//
// Parameters:
//
//   float _2DView;
//   sampler2D _FilteredFirstHexaTexture;
//   float4 _FilteredFirstHexaTexture_TexelSize;
//   row_major float4x4 _Object2World;
//   sampler2D _RegionColorAndNeutralMap;
//   float4 _RegionColorAndNeutralMap_TexelSize;
//   row_major float4x4 _World2Object;
//   float4 _WorldSize;
//   float4 _WorldSpaceLightPos0;
//   row_major float4x4 glstate_matrix_mvp;
//   float4 unity_LightShadowBias;
//   row_major float4x4 unity_MatrixVP;
//
//
// Registers:
//
//   Name                                Reg   Size
//   ----------------------------------- ----- ----
//   glstate_matrix_mvp                  c0       4
//   unity_MatrixVP                      c4       4
//   _Object2World                       c8       3
//   _World2Object                       c11      3
//   _WorldSpaceLightPos0                c14      1
//   unity_LightShadowBias               c15      1
//   _FilteredFirstHexaTexture_TexelSize c16      1
//   _WorldSize                          c17      1
//   _2DView                             c18      1
//   _RegionColorAndNeutralMap_TexelSize c19      1
//   _FilteredFirstHexaTexture           s0       1
//   _RegionColorAndNeutralMap           s1       1
//
//
// Default values:
//
//   _2DView
//     c18  = { 0, 0, 0, 0 };
//

    vs_3_0
    def c20, 256, 0.5, 0, 1
    def c21, 0.5, 0.200000003, 10, -0.0500000007
    def c22, 1.5999999, 0.300000012, -0.300000012, 0
    dcl_position v0
    dcl_normal v1
    dcl_color v2
    dcl_2d s0
    dcl_2d s1
    dcl_texcoord o0
    dcl_position o1
    dcl_texcoord1 o2.xyz
    dcl_texcoord2 o3

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

    dp4 o2.y, c9, v0
    mul r0.x, c20.x, v2.w
    mul r0.x, r0.x, c19.x
    frc r0.z, r0.x
    add r0.z, -r0.z, r0.x
    mul r0.y, r0.z, c19.y
    mov r1.yw, c20
    mad r0.xy, c19, r1.y, r0
    mov r0.zw, c20.z
    texldl o3, r0, s1
    abs r0.x, c15.z
    slt r0.x, -r0.x, r0.x
    add r0.y, r1.w, -c16.y
    rcp r1.x, c17.x
    rcp r1.y, c17.y
    dp4 r2.x, c8, v0
    dp4 r2.z, c10, v0
    mul r1.xy, r1, r2.xzzw
    mov o2.xz, r2
    max r0.z, r1.y, c20.z
    min r1.z, r0.y, r0.z
    mov r1.w, c20.z
    texldl r1, r1.xzww, s0
    add r0.y, r1.z, -c20.y
    add r0.zw, -r1.x, c21.xyxy
    mov r1.x, c22.x
    mul r1.x, r1.x, c18.x
    mad r0.y, r0.y, c22.y, r1.x
    add_sat r0.y, r0.y, c22.z
    mul_sat r0.w, r0.w, c21.z
    add_sat r0.z, r0.z, r0.z
    lrp r1.y, r0.z, c21.w, v0.y
    lrp r2.xyz, r0.w, c20.zwzw, v1
    dp3 r0.z, r2, r2
    rsq r0.z, r0.z
    mul r3.xyz, r0.z, r2
    mad r2.xyz, r2, -r0.z, c20.zwzw
    mad r0.yzw, r0.y, r2.xxyz, r3.xxyz
    mul r2.xyz, r0.z, c12
    mad r2.xyz, c11, r0.y, r2
    mad r0.yzw, c13.xxyz, r0.w, r2.xxyz
    nrm r2.xyz, r0.yzww
    mad r1.xzw, v0.xyzx, c20.wywz, c20.zyzw
    dp4 r3.x, c8, r1
    dp4 r3.y, c9, r1
    dp4 r3.z, c10, r1
    mad r0.yzw, r3.xxyz, -c14.w, c14.xxyz
    nrm r4.xyz, r0.yzww
    dp3 r0.y, r2, r4
    mad r0.y, r0.y, -r0.y, c20.w
    rsq r0.y, r0.y
    rcp r0.y, r0.y
    mul r0.y, r0.y, c15.z
    mad r2.xyz, r2, -r0.y, r3
    mov r2.w, c20.w
    dp4 r3.x, c4, r2
    dp4 r3.y, c5, r2
    dp4 r3.z, c6, r2
    dp4 r3.w, c7, r2
    dp4 r2.x, c0, r1
    dp4 r2.y, c1, r1
    dp4 r2.z, c2, r1
    dp4 r2.w, c3, r1
    lrp r1, r0.x, r3, r2

mov o1, r1 // Relocated from line 178 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\A1DC15C7.txt
texldl r31, c220.z, s3
add r31.w, r1.w, -r31.y
mad r1.x, r31.w, r31.x, r1.x

    rcp r0.x, r1.w
    mul_sat r0.x, r0.x, c15.x
    add r0.x, r0.x, r1.z
    max r0.y, r0.x, c20.z
    lrp r1.z, c15.y, r0.y, r0.x
    mov o0, r1

//     mov o1, r1 // Relocated to line 172 with shadertool.py
mov o1.z, r1 // Inserted by shadertool.py


// approximately 77 instruction slots used (4 texture, 73 arithmetic)
