//--FOV-- CRC32: D106F90B |    Unity headers extracted from FidsInstancing3.shader
//    Shader "Instancing3/Amplitude/Fids" {
//      Properties {
//       _MainTex ("Texture", 2D) = "white" { }
//       _ResourceTex ("Resource Tex", 2D) = "black" { }
//       _ViewSensitivity ("3D, Battle, 2D, Empire", Vector) = (1,0,0,0)
//       _WinterSensitivity ("Summer, Winter, WinterIntensity, Fow intensity", Vector) = (1,1,1,1)
//       _ResourceColor ("Resource Color", Color) = (1,1,1,1)
//       _StartUV ("Start UV) ", Vector) = (0,0,0,0)
//       _MinBBox ("_MinBox) ", Vector) = (0,0,0,1)
//       _MaxBBox ("_MaxBox) ", Vector) = (0,0,0,1)
//       _Offset ("_Offset) ", Vector) = (0,0,0,0)
//       _ControlTex ("ControlTex", 2D) = "white" { }
//      }
//      Fallback Off
//      SubShader 1/1 {
//        Tags { "QUEUE"="Transparent+10" "RenderType"="Transparent" }
//        Pass 1/1 {
//          Tags { "QUEUE"="Transparent+10" "RenderType"="Transparent" }
//          ZTest Always
//          ZWrite Off
//          Cull Off
//          Blend SrcAlpha OneMinusSrcAlpha
//          ColorMask RGB
//          GpuProgramID 6319
//          Program "vp" {
//            SubProgram "d3d9 " {
//              GpuProgramIndex 0
//            }
//          }
//        }
//      }
//    }
//
// Unity 5.3 headers extracted from FidsInstancing3.shader.decompressed:
//   API d3d9
//   Shader model vs_3_0
//   undeciphered1: 117 12 -1
//   Keywords { "DEFAULT_RENDERER" }
//   undeciphered3: 29 4 0 0 2 1 3 4 4 5 1
//   Vector 11 [_ControlTex_TexelSize]
//   Vector 7 [_FirstHexaTextureLookup_TexelSize]
//   Vector 14 [_MaxBBox]
//   Vector 13 [_MinBBox]
//   Vector 15 [_Offset]
//   Vector 9 [_RegionHighLightMap_TexelSize]
//   Vector 8 [_SecondHexaTextureLookup_TexelSize]
//   Vector 12 [_StartUV]
//   Vector 10 [_WorldSize]
//   Matrix 4 [_Object2World] 3
//   Matrix 0 [glstate_matrix_mvp]
//   SetTexture 0 [_FirstHexaTextureLookup] 2D 0
//   SetTexture 1 [_SecondHexaTextureLookup] 2D 1
//   SetTexture 2 [_RegionHighLightMap] 2D 2
//   SetTexture 3 [_ControlTex] 2D 3
//
// 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:24 2016
//
//
// Parameters:
//
//   sampler2D _ControlTex;
//   float4 _ControlTex_TexelSize;
//   sampler2D _FirstHexaTextureLookup;
//   float4 _FirstHexaTextureLookup_TexelSize;
//   float4 _MaxBBox;
//   float4 _MinBBox;
//   row_major float4x4 _Object2World;
//   float4 _Offset;
//   sampler2D _RegionHighLightMap;
//   float4 _RegionHighLightMap_TexelSize;
//   sampler2D _SecondHexaTextureLookup;
//   float4 _SecondHexaTextureLookup_TexelSize;
//   float4 _StartUV;
//   float4 _WorldSize;
//   row_major float4x4 glstate_matrix_mvp;
//
//
// Registers:
//
//   Name                               Reg   Size
//   ---------------------------------- ----- ----
//   glstate_matrix_mvp                 c0       4
//   _Object2World                      c4       3
//   _FirstHexaTextureLookup_TexelSize  c7       1
//   _SecondHexaTextureLookup_TexelSize c8       1
//   _RegionHighLightMap_TexelSize      c9       1
//   _WorldSize                         c10      1
//   _ControlTex_TexelSize              c11      1
//   _StartUV                           c12      1
//   _MinBBox                           c13      1
//   _MaxBBox                           c14      1
//   _Offset                            c15      1
//   _FirstHexaTextureLookup            s0       1
//   _SecondHexaTextureLookup           s1       1
//   _RegionHighLightMap                s2       1
//   _ControlTex                        s3       1
//

    vs_3_0
    def c16, 1, 0, 2, 256
    def c17, 0.00389105058, -0.666666687, -0.5, -1
    def c18, 255, 765, 0, 0.5
    def c19, 0.660000026, 0, 0, 0
    dcl_position v0
    dcl_color v1
    dcl_texcoord v2
    dcl_texcoord1 v3
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2
    dcl_2d s3
    dcl_position o0
    dcl_texcoord o1.xy
    dcl_texcoord1 o2.xy
    dcl_texcoord2 o3.xy
    dcl_texcoord3 o4.x
    mul r0.x, c11.x, v1.x
    mul r0.x, r0.x, c18.y
    mov r0.yw, c18.xzzw
    add r0.xy, r0, c12
    mad r1.xy, c11, r0.w, r0
    mov r0.xyz, c16
    mad r2.xy, c11.x, r0, r1
    mov r2.zw, c18.z
    texldl r2, r2, s3
    mad r2.xy, r2.ywzw, c16.w, r2.xzzw
    mul r2.zw, r2.xyxy, c17.x
    mul r3.xy, r2.w, c16
    mad r4.xy, c11.x, r0.zyzw, r1
    mov r4.zw, c18.z
    texldl r4, r4, s3
    mad r4.xy, r4.ywzw, c16.w, r4.xzzw
    mul r3.z, r4.x, c17.x
    mul r0.z, r4.y, c14.w
    mul r4.y, r0.z, c17.x
    mul r5.xyz, r0.xyxw, c13.w
    mad r0.xyz, c14.w, r0.xyxw, -r5
    mad r0.xyz, r3, r0, r5
    mul r0.xyz, r4.y, r0
    mov r4.xz, c18.z
    mul r3.xyz, r4, v0.y
    mad r3.xyz, v0.x, r0, r3
    mul r4.x, -r0.z, v0.z
    mul r4.z, r0.x, v0.z
    mov r4.y, c18.z
    add r0.xyz, r3, r4
    mov r1.zw, c18.z
    texldl r1, r1, s3
    mad r1.xy, r1.ywzw, c16.w, r1.xzzw
    mul r2.xy, r1, c17.x
    mov r1.xyz, c13
    add r1.xyz, -r1, c14
    mad r1.xyz, r2, r1, c13
    mul r1.w, c18.x, v1.x
    sge r1.w, r1.w, c15.w
    mad r1.xyz, c15, r1.w, r1
    add r1.xyz, r0, r1
    mov r1.w, v0.w
    dp4 o0.x, c0, r1
    dp4 o0.y, c1, r1
    dp4 o0.z, c2, r1
    dp4 o0.w, c3, r1
    dp4 r0.x, c4, r1
    dp4 r0.y, c6, r1
    rcp r1.x, c10.x
    rcp r1.y, c10.y
    mul r0.xy, r0, r1
    rcp r1.z, c8.x
    rcp r1.y, c8.y
    mad r1.yz, r1, r0.xyxw, c17
    mad r1.x, r1.y, -c18.w, r1.z
    frc r1.zw, r1.xyxy
    add r1.xy, -r1.zwzw, r1
    mad r2.xy, r1.wzzw, c18.w, r1.zwzw
    sge r3.y, r1.w, r1.z
    sge r1.zw, c16.x, r2.xyxy
    sge r2.xy, r2, c18.w
    mul r1.zw, r1, r2.xyxy
    mul r0.z, r2.y, r2.x
    add r1.z, r1.w, r1.z
    min r1.z, r1.z, c16.x
    add r3.x, -r3.y, c16.x
    lrp r2.xy, r1.z, r3, r0.z
    add r1.xy, r1, r2
    add r1.xy, r1, c18.w
    mul r1.xy, r1, c8
    mul r0.z, r0.w, c8.y
    max r0.z, r0.z, r1.y
    mov r2.zw, c17
    mad r1.y, c8.y, r2.z, -r2.w
    min r1.z, r0.z, r1.y
    mov r1.w, c18.z
    texldl r1, r1.xzww, s1
    rcp r3.z, c7.x
    rcp r3.y, c7.y
    mad r3.yz, r3, r0.xyxw, c17
    mov o3.xy, r0
    mad r3.x, r3.y, -c18.w, r3.z
    frc r0.xy, r3
    add r1.xy, -r0, r3
    mad r2.xy, r0.yxzw, c18.w, r0
    sge r0.y, r0.y, r0.x
    sge r3.xy, c16.x, r2
    sge r2.xy, r2, c18.w
    mul r3.xy, r3, r2
    mul r0.z, r2.y, r2.x
    add r1.w, r3.y, r3.x
    min r1.w, r1.w, c16.x
    add r0.x, -r0.y, c16.x
    lrp r2.xy, r1.w, r0, r0.z
    add r0.xy, r1, r2
    add r0.xy, r0, c18.w
    mul r3.xy, r0, c7
    mul r0.x, r0.w, c7.y
    max r0.x, r0.x, r3.y
    mad r0.y, c7.y, r2.z, -r2.w
    min r3.z, r0.y, r0.x
    mov r3.w, c18.z
    texldl r2, r3.xzww, s0
    mul r0.x, r2.w, c9.x
    mul r0.x, r0.x, c18.x
    frc r0.z, r0.x
    add r0.z, -r0.z, r0.x
    mul r0.y, r0.z, c9.y
    mad r0.xy, c9, r0.w, r0
    mov r0.zw, c18.z
    texldl r0, r0, s2
    mul r0.x, r0.z, c19.x
    max o4.x, r0.x, r1.z
    mov o1.xy, v2
    mov o2.xy, v3

// approximately 121 instruction slots used (12 texture, 109 arithmetic)
