// CRC32: 39366E2C |    Unity headers extracted from CommonWinterShifter.shader
//    Shader "Amplitude/Characters/CommonWinterShifter" {
//      Properties {
//       _Shininess ("Shininess", Float) = 0.5
//       _Intensity ("Intensity", Float) = 0.5
//       _AmbientFactor ("Ambient Factor", Range(0,1)) = 0.1
//       _AmbientColor ("Ambient Color", Color) = (0.8,0.1,0.1,1)
//       _HighLightColor ("HighLight Color", Color) = (1,1,1,1)
//       _MainTex ("Diffuse Texture", 2D) = "white" { }
//       _MainTexWinter ("Diffuse Winter Texture", 2D) = "white" { }
//       _BumpMap ("Normal Map", 2D) = "white" { }
//       _SpecMap ("GlossColor Map", 2D) = "white" { }
//       _IlluminMap ("Illumination Map", 2D) = "black" { }
//       _FactionMaskMap ("FactionMask Map", 2D) = "black" { }
//       _BaseFactionColor ("Base Faction Color", Color) = (0.8,0.1,0.1,1)
//       _FactionColor ("Faction Color", Color) = (0.8,0.1,0.1,1)
//       _ViewSensitivity ("3D, Battle, 2D, Empire", Vector) = (1,1,1,0)
//       _VisibilityStatus ("Visible at date1, date1, visible at date0, date0", Vector) = (1,0,1,-1)
//      [HideInInspector]  _ShiftingFormStatus ("Shift status at date1, date1, Shift status at date0, date0", Vector) = (1,0,1,-1)
//      }
//      Fallback Off
//      SubShader 1/1 {
//        Tags { "QUEUE"="Geometry" "RenderType"="Opaque" }
//        Pass 4/5 {
//          Name "PREPASS"
//          Tags { "LIGHTMODE"="PrePassFinal" "QUEUE"="Geometry" "RenderType"="Opaque" }
//          ZWrite Off
//          GpuProgramID 214672
//          Program "vp" {
//            SubProgram "d3d9 " {
//              GpuProgramIndex 68
//            }
//          }
//        }
//      }
//    }
//
// Unity 5.3 headers extracted from CommonWinterShifter.shader.decompressed:
//   API d3d9
//   Shader model vs_3_0
//   undeciphered1: 80 -1 -1
//   Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "HDR_LIGHT_PREPASS_OFF" "INGAME_RENDERER" "CAMOUFLAGE_OFF" }
//   undeciphered3: 9 2 0 0 3 4 1
//   Vector 9 [_BaseFactionColor]
//   Vector 10 [_FactionColor]
//   Vector 15 [_MainTex_ST]
//   Vector 7 [_ProjectionParams]
//   Vector 8 [_ScreenParams]
//   Vector 13 [_ShiftingFormStatus]
//   Vector 12 [_UnityEngineTime]
//   Vector 11 [_VisibilityStatus]
//   Vector 14 [_WorldSize]
//   Matrix 4 [_Object2World] 3
//   Matrix 0 [glstate_matrix_mvp]
//
// 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:24:51 2016
//
//
// Parameters:
//
//   float4 _BaseFactionColor;
//   float4 _FactionColor;
//   float4 _MainTex_ST;
//   row_major float4x4 _Object2World;
//   float4 _ProjectionParams;
//   float4 _ScreenParams;
//   float4 _ShiftingFormStatus;
//   float4 _UnityEngineTime;
//   float4 _VisibilityStatus;
//   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
//   _BaseFactionColor   c9       1
//   _FactionColor       c10      1
//   _VisibilityStatus   c11      1
//   _UnityEngineTime    c12      1
//   _ShiftingFormStatus c13      1
//   _WorldSize          c14      1
//   _MainTex_ST         c15      1
//

    vs_3_0
    def c16, 0.100000001, 1, 0, -0.333333343
    def c17, 6, 1.00000001e-010, 0.5, 1
    def c18, 0.00100000005, 0, 0, 0
    def c19, 1, 0, -1, 0.666666687
    dcl_position v0
    dcl_texcoord v1
    dcl_position o0
    dcl_texcoord o1.xy
    dcl_texcoord1 o2
    dcl_texcoord2 o3.xyz
    dcl_texcoord3 o4
    dcl_texcoord4 o5

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

    rcp r0.x, c14.x
    rcp r0.y, c14.y
    mul r1, c16.xxxy, v0
    dp4 r2.x, c4, r1
    dp4 r2.y, c6, r1
    mul o2.xy, r0, r2
    sge r0.x, c9.y, c9.z
    mov r1, c19
    mad r2, c9.zyzz, r1.xxyy, r1.yyzw
    mov r0.yzw, c16
    mad r3, c9.yzyy, r0.yyzz, r0.zzzw
    lrp r4, r0.x, r3.xywz, r2.xywz
    sge r0.x, c9.x, r4.x
    mov r2.z, r4.w
    mov r4.w, c9.x
    mov r2.xyw, r4.wyzx
    lrp r3, r0.x, r2, r4
    min r0.x, r3.y, r3.w
    add r0.x, -r0.x, r3.x
    mad r2.x, r0.x, c17.x, c17.y
    rcp r2.x, r2.x
    add r2.y, -r3.y, r3.w
    mad r2.x, r2.y, r2.x, r3.z
    sge r2.y, c10.y, c10.z
    mad r1, c10.zyzz, r1.xxyy, r1.yyzw
    mad r4, c10.yzyy, r0.yyzz, r0.zzzw
    lrp r5, r2.y, r4.xywz, r1.xywz
    sge r0.y, c10.x, r5.x
    mov r1.z, r5.w
    mov r5.w, c10.x
    mov r1.xyw, r5.wyzx
    lrp r4, r0.y, r1, r5
    min r0.y, r4.y, r4.w
    add r0.y, -r0.y, r4.x
    mad r0.z, r0.y, c17.x, c17.y
    rcp r0.z, r0.z
    add r0.w, -r4.y, r4.w
    mad r0.z, r0.w, r0.z, r4.z
    add o3.x, -r2_abs.x, r0_abs.z
    add r0.z, r4.x, c17.y
    rcp r0.z, r0.z
    mul r0.y, r0.z, r0.y
    add r0.z, r3.x, c17.y
    rcp r0.w, r3.x
    mad r0.w, r4.x, r0.w, -c16.y
    mad o3.z, r0.w, c17.z, c17.w
    rcp r0.z, r0.z
    mul r0.x, r0.z, r0.x
    rcp r0.x, r0.x
    mul o3.y, r0.x, r0.y
    mov r0.w, c13.w
    add r0.x, -r0.w, c12.x
    add r0.yz, -c13.xwzw, c13.xyxw
    max r0.y, r0.y, c18.x
    rcp r0.y, r0.y
    mul_sat r0.x, r0.y, r0.x
    mad_sat o2.z, r0.x, r0.z, c13.z
    mov r0.w, c11.w
    add r0.x, -r0.w, c12.x
    add r0.yz, -c11.xwzw, c11.xyxw
    max r0.y, r0.y, c18.x
    rcp r0.y, r0.y
    mul_sat r0.x, r0.y, r0.x
    mad o2.w, r0.x, r0.z, c11.z
    mad o1.xy, v1, c15, c15.zwzw
    dp4 r0.y, c1, v0
    mul r1.x, r0.y, c7.x
    mul r1.w, r1.x, c17.z
    dp4 r0.x, c0, v0
    dp4 r0.w, c3, v0

mov o0, r0 // Relocated from line 182 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\39366E2C.txt
texldl r31, c220.z, s3
add r31.w, r0.w, -r31.y
mad r0.x, r31.w, r31.x, r0.x

    mul r1.xz, r0.xyww, c17.z
    mad o4.xy, r1.z, c8.zwzw, r1.xwzw
    dp4 r0.z, c2, v0

//     mov o0, r0 // Relocated to line 179 with shadertool.py
mov o0.z, r0 // Inserted by shadertool.py

    mov o4.zw, r0
    mov o5, c16.z

// approximately 76 instruction slots used
