// CRC32: 563D8A2B |    Unity headers extracted from NoTransition.shader
//    Shader "Custom/NoTransition" {
//      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
//       _NoiseTex ("NoiseTexture", 2D) = "white" { }
//       _TerraformIndex ("Terraform_index", Float) = 0
//       _TerraformParams ("Params : Transition size, IceTreshold, StartTransition, Tiling", Vector) = (0.269,0.224,0.15,6)
//      }
//      Fallback Off
//      SubShader 1/1 {
//        Tags { "QUEUE"="Geometry-10" "RenderType"="Opaque" }
//        Pass 1/5 {
//          Name "FORWARD"
//          Tags { "LIGHTMODE"="ForwardBase" "QUEUE"="Geometry-10" "SHADOWSUPPORT"="true" "RenderType"="Opaque" }
//          GpuProgramID 17444
//          Program "vp" {
//            SubProgram "d3d9 " {
//              GpuProgramIndex 1
//            }
//          }
//        }
//      }
//    }
//
// Unity 5.3 headers extracted from NoTransition.shader.decompressed:
//   API d3d9
//   Shader model vs_3_0
//   undeciphered1: 201509030 83 4 -1
//   Keywords { "DIRECTIONAL" "SHADOWS_SCREEN" "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" }
//   undeciphered3: 15 4 0 0 2 1 1 2 3 4 1
//   Float 15 [_2DView]
//   Vector 13 [_FilteredFirstHexaTexture_TexelSize]
//   Vector 10 [_ProjectionParams]
//   Vector 16 [_RegionColorAndNeutralMap_TexelSize]
//   Vector 11 [_ScreenParams]
//   Vector 14 [_WorldSize]
//   Vector 12 [unity_WorldTransformParams]
//   Matrix 4 [_Object2World] 3
//   Matrix 7 [_World2Object] 3
//   Matrix 0 [glstate_matrix_mvp]
//   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 Mon Aug 13 12:41:30 2018
//
//
// Parameters:
//
//   float _2DView;
//   sampler2D _FilteredFirstHexaTexture;
//   float4 _FilteredFirstHexaTexture_TexelSize;
//   row_major float4x4 _Object2World;
//   float4 _ProjectionParams;
//   sampler2D _RegionColorAndNeutralMap;
//   float4 _RegionColorAndNeutralMap_TexelSize;
//   float4 _ScreenParams;
//   row_major float4x4 _World2Object;
//   float4 _WorldSize;
//   row_major float4x4 glstate_matrix_mvp;
//   float4 unity_WorldTransformParams;
//
//
// Registers:
//
//   Name                                Reg   Size
//   ----------------------------------- ----- ----
//   glstate_matrix_mvp                  c0       4
//   _Object2World                       c4       3
//   _World2Object                       c7       3
//   _ProjectionParams                   c10      1
//   _ScreenParams                       c11      1
//   unity_WorldTransformParams          c12      1
//   _FilteredFirstHexaTexture_TexelSize c13      1
//   _WorldSize                          c14      1
//   _2DView                             c15      1
//   _RegionColorAndNeutralMap_TexelSize c16      1
//   _FilteredFirstHexaTexture           s0       1
//   _RegionColorAndNeutralMap           s1       1
//
//
// Default values:
//
//   _2DView
//     c15  = { 0, 0, 0, 0 };
//

    vs_3_0
    def c17, 256, 0.5, 0, 1
    def c18, 0.5, 0.200000003, 10, -0.0500000007
    def c19, 1.5999999, 0.300000012, -0.300000012, 0
    dcl_position v0
    dcl_normal v1
    dcl_texcoord v2
    dcl_color v3
    dcl_2d s0
    dcl_2d s1
    dcl_position o0
    dcl_texcoord o1
    dcl_texcoord1 o2
    dcl_texcoord2 o3
    dcl_color o4
    dcl_texcoord3 o5
    dcl_texcoord4 o6
    dcl_texcoord5 o7

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

    dp4 o5.y, c5, v0
    mul r0.x, c17.x, v3.w
    mul r0.x, r0.x, c16.x
    frc r0.z, r0.x
    add r0.z, -r0.z, r0.x
    mul r0.y, r0.z, c16.y
    mov r1.yw, c17
    mad r0.xy, c16, r1.y, r0
    mov r0.zw, c17.z
    texldl o6, r0, s1
    add r0.x, r1.w, -c13.y
    rcp r1.x, c14.x
    rcp r1.y, c14.y
    dp4 r2.x, c4, v0
    dp4 r2.z, c6, v0
    mul r1.xy, r1, r2.xzzw
    mov o5.xz, r2
    max r0.y, r1.y, c17.z
    min r1.z, r0.x, r0.y
    mov r1.w, c17.z
    texldl r0, r1.xzww, s0
    add r0.xy, -r0.x, c18
    add r0.z, r0.z, -c17.y
    add_sat r0.x, r0.x, r0.x
    mul_sat r0.y, r0.y, c18.z
    lrp r1.xyz, r0.y, c17.zzww, v1.zxyw
    lrp r2.y, r0.x, c18.w, v0.y
    mov r2.xzw, v0
    dp4 o1.w, c4, r2
    dp4 o2.w, c5, r2
    dp4 o3.w, c6, r2
    dp4 r3.x, c0, r2
    dp4 r3.w, c3, r2

mov o0, r3 // Relocated from line 153 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 --only-autofixed --ignore-parse-errors --ignore-register-errors --ignore-other-errors dumps\allshaders\vertexshader\563D8A2B.txt
texldl r31, c220.z, s3
add r31.w, r3.w, -r31.y
mad r3.x, r31.w, r31.x, r3.x

    mul r4.xz, r3.xyww, c17.y
    dp4 r3.y, c1, r2
    dp4 r3.z, c2, r2
    mul r0.x, r3.y, c10.x

//     mov o0, r3 // Relocated to line 149 with shadertool.py
mov o0.yz, r3 // Inserted by shadertool.py

    mov o7.zw, r3
    mul r4.w, r0.x, c17.y
    mad o7.xy, r4.z, c11.zwzw, r4.xwzw
    mov r0.x, c19.x
    mul r0.x, r0.x, c15.x
    mad r0.x, r0.z, c19.y, r0.x
    add_sat r0.x, r0.x, c19.z
    dp3 r0.y, r1, r1
    rsq r0.y, r0.y
    mul r2.xyz, r0.y, r1
    mad r0.yzw, r1.xxyz, -r0.y, c17.xzzw
    mad r0.xyz, r0.x, r0.yzww, r2
    mul r1.xyz, r0, c17.zwzw
    mad r1.xyz, r0.zxyw, c17.wzzw, -r1
    nrm r2.xyz, r1
    dp3 r1.z, c4, r2
    dp3 r1.x, c5, r2
    dp3 r1.y, c6, r2
    dp3 r0.w, r1, r1
    rsq r0.w, r0.w
    mul r1.xyz, r0.w, r1
    mov o1.x, r1.z
    mul r2.xyz, r0.z, c8.zxyw
    mad r0.yzw, c7.xzxy, r0.y, r2.xxyz
    mad r0.xyz, c9.zxyw, r0.x, r0.yzww
    dp3 r0.w, r0, r0
    rsq r0.w, r0.w
    mul r0.xyz, r0.w, r0
    mul r2.xyz, r1, r0
    mad r2.xyz, r0.zxyw, r1.yzxw, -r2
    mul r2.xyz, r2, -c12.w
    mov o1.y, r2.x
    mov o1.z, r0.y
    mov o2.x, r1.x
    mov o3.x, r1.y
    mov o2.y, r2.y
    mov o3.y, r2.z
    mov o2.z, r0.z
    mov o3.z, r0.x
    mov o4, v3
    mov o5.w, v2.x

// approximately 83 instruction slots used (4 texture, 79 arithmetic)
