//--FOV-- CRC32: E2D4E2EC |    Unity headers extracted from PackIce.shader
//    Shader "Custom/PackIce" {
//      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" { }
//       _NoiseTexNM ("NoiseTexture NM", 2D) = "white" { }
//       _AtlasMaterialIndex ("Atlas Material Index", Float) = 0
//       _FrozenParams ("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 3/5 {
//          Name "PREPASS"
//          Tags { "LIGHTMODE"="PrePassBase" "QUEUE"="Geometry-10" "RenderType"="Opaque" }
//          GpuProgramID 180815
//          Program "vp" {
//            SubProgram "d3d9 " {
//              GpuProgramIndex 14
//            }
//          }
//        }
//      }
//    }
//
// Unity 5.3 headers extracted from PackIce.shader.decompressed:
//   API d3d9
//   Shader model vs_3_0
//   undeciphered1: 63 4 -1
//   undeciphered3: 13 3 0 0 2 1 3 4 1
//   Float 10 [_AtlasMaterialIndex]
//   Vector 11 [_FilteredFirstHexaTexture_TexelSize]
//   Vector 14 [_RegionColorAndNeutralMap_TexelSize]
//   Float 13 [_Winter]
//   Vector 12 [_WorldSize]
//   Vector 9 [unity_WorldTransformParams]
//   Matrix 4 [_Object2World] 3
//   Matrix 7 [_World2Object] 2
//   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:25:39 2016
//
//
// Parameters:
//
//   float _AtlasMaterialIndex;
//   sampler2D _FilteredFirstHexaTexture;
//   float4 _FilteredFirstHexaTexture_TexelSize;
//   row_major float4x4 _Object2World;
//   sampler2D _RegionColorAndNeutralMap;
//   float4 _RegionColorAndNeutralMap_TexelSize;
//   float _Winter;
//   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       2
//   unity_WorldTransformParams          c9       1
//   _AtlasMaterialIndex                 c10      1
//   _FilteredFirstHexaTexture_TexelSize c11      1
//   _WorldSize                          c12      1
//   _Winter                             c13      1
//   _RegionColorAndNeutralMap_TexelSize c14      1
//   _FilteredFirstHexaTexture           s0       1
//   _RegionColorAndNeutralMap           s1       1
//
//
// Default values:
//
//   _Winter
//     c13  = { 0, 0, 0, 0 };
//

    vs_3_0
    def c15, 0.00999999978, 0, 0.5, 0.00392156886
    def c16, 256, 1, -0.0500000007, 0
    dcl_position v0
    dcl_texcoord v1
    dcl_color v2
    dcl_2d s0
    dcl_2d s1
    dcl_position o0
    dcl_texcoord o1.xyz
    dcl_texcoord1 o2.xyz
    dcl_texcoord2 o3.xyz
    dcl_color o4
    dcl_texcoord3 o5
    dcl_texcoord4 o6
    mov r0.xz, c15
    slt r0.x, c13.x, r0.x
    mad r1, r0.x, -v0, v0
    add r2, r1, c15.yxyy
    add r0.x, r1.y, c15.x
    dp4 o5.y, c5, r2
    add r0.y, r0.z, c10.x
    frc r0.w, r0.y
    add r0.y, -r0.w, r0.y
    mul o4.x, r0.y, c15.w
    mul r0.y, c16.x, v2.w
    mul r1.x, r0.y, c14.x
    frc r0.y, r1.x
    add r0.y, -r0.y, r1.x
    mul r1.y, r0.y, c14.y
    mad r1.xy, c14, r0.z, r1
    mov r1.zw, c15.y
    texldl o6, r1, s1
    rcp r1.x, c12.x
    rcp r1.y, c12.y
    dp4 r3.x, c4, r2
    dp4 r3.z, c6, r2
    mul r1.xy, r1, r3.xzzw
    mov o5.xz, r3
    max r0.y, r1.y, c15.y
    mov r1.y, c16.y
    add r0.z, r1.y, -c11.y
    min r1.z, r0.z, r0.y
    mov r1.w, c15.y
    texldl r1, r1.xzww, s0
    add r0.y, -r1.x, c15.z
    add_sat r0.y, r0.y, r0.y
    lrp r2.y, r0.y, c16.z, r0.x
    dp4 o0.x, c0, r2
    dp4 o0.y, c1, r2
    dp4 o0.z, c2, r2
    dp4 o0.w, c3, r2
    mov r0.z, c4.x
    mov r0.x, c5.x
    mov r0.y, c6.x
    dp3 r0.w, r0, r0
    rsq r0.w, r0.w
    mul r0.xyz, r0.w, r0
    mov o1.x, r0.z
    dp3 r0.w, c8, c8
    rsq r0.w, r0.w
    mul r1.xyz, r0.w, c8.zxyw
    mul r2.xyz, r0, r1
    mad r2.xyz, r1.zxyw, r0.yzxw, -r2
    mul r2.xyz, r2, -c9.w
    mov o1.y, r2.x
    mov o1.z, r1.y
    mov o2.x, r0.x
    mov o3.x, r0.y
    mov o2.y, r2.y
    mov o3.y, r2.z
    mov o2.z, r1.z
    mov o3.z, r1.x
    mov o4.yzw, v2
    mov o5.w, v1.x

// approximately 62 instruction slots used (4 texture, 58 arithmetic)
