// CRC32: 8A8AFC1C |    Unity headers extracted from TripleTransition.shader
//    Shader "Custom/TripleTransition" {
//      Properties {
//       _MainTex ("Texture", 2D) = "white" { }
//       _NoiseTex ("NoiseTexture", 2D) = "white" { }
//       _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
//       _TransitionHexaPerTexture ("Hexa per Tex Transition", Float) = 2
//      }
//      Fallback Off
//      SubShader 1/1 {
//        Tags { "QUEUE"="Geometry-10" "RenderType"="Opaque" }
//        Pass 4/5 {
//          Name "PREPASS"
//          Tags { "LIGHTMODE"="PrePassFinal" "QUEUE"="Geometry-10" "RenderType"="Opaque" }
//          ZWrite Off
//          GpuProgramID 196620
//          Program "vp" {
//            SubProgram "d3d9 " {
//              GpuProgramIndex 16
//            }
//          }
//        }
//      }
//    }
//
// Unity 5.3 headers extracted from TripleTransition.shader.decompressed:
//   API d3d9
//   Shader model vs_3_0
//   undeciphered1: 39 4 -1
//   Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_OFF" }
//   undeciphered3: 13 3 0 0 2 1 3 4 1
//   Vector 9 [_FilteredFirstHexaTexture_TexelSize]
//   Vector 12 [_MainTex_ST]
//   Vector 7 [_ProjectionParams]
//   Vector 11 [_RegionColorAndNeutralMap_TexelSize]
//   Vector 8 [_ScreenParams]
//   Vector 10 [_WorldSize]
//   Matrix 4 [_Object2World] 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 Sun Oct 16 02:26:02 2016
//
//
// Parameters:
//
//   sampler2D _FilteredFirstHexaTexture;
//   float4 _FilteredFirstHexaTexture_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
//   _FilteredFirstHexaTexture_TexelSize c9       1
//   _WorldSize                          c10      1
//   _RegionColorAndNeutralMap_TexelSize c11      1
//   _MainTex_ST                         c12      1
//   _FilteredFirstHexaTexture           s0       1
//   _RegionColorAndNeutralMap           s1       1
//

    vs_3_0
    def c13, 256, 0.5, 0, 1
    def c14, -0.0500000007, 0, 0, 0
    dcl_position v0
    dcl_texcoord v1
    dcl_color v2
    dcl_2d s0
    dcl_2d s1
    dcl_position o0
    dcl_texcoord o1.xy
    dcl_color o2
    dcl_texcoord1 o3.xyz
    dcl_texcoord2 o4
    dcl_texcoord3 o5
    dcl_texcoord4 o6

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

    dp4 o3.y, c5, v0
    mul r0.x, c13.x, v2.w
    mul r0.x, r0.x, c11.x
    frc r0.z, r0.x
    add r0.z, -r0.z, r0.x
    mul r0.y, r0.z, c11.y
    mov r1.yw, c13
    mad r0.xy, c11, r1.y, r0
    mov r0.zw, c13.z
    texldl o4, r0, s1
    mad o1.xy, v1, c12, c12.zwzw
    add r0.x, r1.w, -c9.y
    rcp r1.x, c10.x
    rcp r1.y, c10.y
    dp4 r2.x, c4, v0
    dp4 r2.z, c6, v0
    mul r1.xy, r1, r2.xzzw
    mov o3.xz, r2
    max r0.y, r1.y, c13.z
    min r1.z, r0.x, r0.y
    mov r1.w, c13.z
    texldl r0, r1.xzww, s0
    add r0.x, -r0.x, c13.y
    add_sat r0.x, r0.x, r0.x
    lrp r1.y, r0.x, c14.x, v0.y
    mov r1.xzw, v0
    dp4 r0.x, c0, r1
    dp4 r0.w, c3, r1

mov o0, r0 // Relocated from line 134 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\8A8AFC1C.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.y
    dp4 r0.y, c1, r1
    dp4 r0.z, c2, r1
    mul r1.x, r0.y, c7.x

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

    mov o5.zw, r0
    mul r2.w, r1.x, c13.y
    mad o5.xy, r2.z, c8.zwzw, r2.xwzw
    mov o2, v2
    mov o6, c13.z

// approximately 40 instruction slots used (4 texture, 36 arithmetic)
