// CRC32: C3598146 | Matched 2 variants of 1 shaders: Custom/SimpleTransition
//
//       Unity headers extracted from SimpleTransition.shader
//       Shader "Custom/SimpleTransition" {
//         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
//          _TerraformParams ("Params : Transition size, IceTreshold, StartTransition, Tiling", Vector) = (0.269,0.224,0.15,6)
//          _TerraformIndex ("Terraform_index", Float) = 0
//         }
//         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 206637
//             Program "vp" {
//               SubProgram "d3d9 " {
// 1:              GpuProgramIndex 16
// 2:              GpuProgramIndex 17
//               }
//             }
//           }
//         }
//       }
//
//    Unity 5.3 headers extracted from SimpleTransition.shader.decompressed:
//      API d3d9
//      Shader model vs_3_0
//      undeciphered1: 201509030 39 4 -1
// 1:   Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_OFF" }
// 2:   Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "UNITY_HDR_ON" }
//      undeciphered3: 13 3 0 0 2 1 3 4 1
//      Vector 9 [_FilteredFirstHexaTexture_TexelSize]
//      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 Mon Aug 13 12:42:38 2018
//
//
// Parameters:
//
//   sampler2D _FilteredFirstHexaTexture;
//   float4 _FilteredFirstHexaTexture_TexelSize;
//   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
//   _FilteredFirstHexaTexture           s0       1
//   _RegionColorAndNeutralMap           s1       1
//

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

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

    dp4 o2.y, c5, v0
    mul r0.x, c12.x, v1.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, c12
    mad r0.xy, c11, r1.y, r0
    mov r0.zw, c12.z
    texldl o3, r0, s1
    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 o2.xz, r2
    max r0.y, r1.y, c12.z
    min r1.z, r0.x, r0.y
    mov r1.w, c12.z
    texldl r0, r1.xzww, s0
    add r0.x, -r0.x, c12.y
    add_sat r0.x, r0.x, r0.x
    lrp r1.y, r0.x, c13.x, v0.y
    mov r1.xzw, v0
    dp4 r0.x, c0, r1
    dp4 r0.w, c3, r1

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

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

    mov o4.zw, r0
    mul r2.w, r1.x, c12.y
    mad o4.xy, r2.z, c8.zwzw, r2.xwzw
    mov o1, v1
    mov o2.w, v2.x
    mov o5, c12.z

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