// bloom
// CRC32: 71C2C0E5 |    Unity headers extracted from Additive without SoftFactor.shader
//    Shader "Amplitude/Particles/Additive Without Soft Factor" {
//      Properties {
//       _TintColor ("Tint Color", Color) = (0.5,0.5,0.5,0.5)
//       _MainTex ("Particle Texture", 2D) = "white" { }
//       _ViewSensitivity ("3D, Battle, 2D, Empire", Vector) = (1,0,0,0)
//       _WinterSensitivity ("Summer, Winter, WinterIntensity, Fow intensity", Vector) = (1,1,1,1)
//      [HideInInspector]  _WeatherTypeIndex ("_WeatherTypeIndex", Float) = -1
//      }
//      SubShader 1/3 {
//        Tags { "QUEUE"="Transparent" "IGNOREPROJECTOR"="true" "RenderType"="Transparent" }
//        Pass 1/1 {
//          Tags { "QUEUE"="Transparent" "IGNOREPROJECTOR"="true" "RenderType"="Transparent" }
//          ZWrite Off
//          Cull Off
//          Blend SrcAlpha One
//          ColorMask RGB
//          GpuProgramID 38239
//          Program "vp" {
//            SubProgram "d3d9 " {
//              GpuProgramIndex 1
//            }
//          }
//        }
//      }
//    }
//
// Unity 5.3 headers extracted from Additive without SoftFactor.shader.decompressed:
//   API d3d9
//   Shader model vs_3_0
//   undeciphered1: 18 -1 -1
//   Keywords { "SOFTPARTICLES_ON" "DEFAULT_RENDERER" "CAMOUFLAGE_OFF" "WEATHER_OFF" }
//   undeciphered3: 13 3 0 0 2 1 3 4 1
//   Vector 13 [_MainTex_ST]
//   Vector 10 [_ProjectionParams]
//   Vector 11 [_ScreenParams]
//   Vector 12 [_WorldSize]
//   Matrix 7 [_Object2World] 3
//   Matrix 4 [glstate_matrix_modelview0] 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:20 2016
//
//
// Parameters:
//
//   float4 _MainTex_ST;
//   row_major float4x4 _Object2World;
//   float4 _ProjectionParams;
//   float4 _ScreenParams;
//   float4 _WorldSize;
//   row_major float4x4 glstate_matrix_modelview0;
//   row_major float4x4 glstate_matrix_mvp;
//
//
// Registers:
//
//   Name                      Reg   Size
//   ------------------------- ----- ----
//   glstate_matrix_mvp        c0       4
//   glstate_matrix_modelview0 c4       3
//   _Object2World             c7       3
//   _ProjectionParams         c10      1
//   _ScreenParams             c11      1
//   _WorldSize                c12      1
//   _MainTex_ST               c13      1
//

    vs_3_0
    def c14, 0.5, 0, 0, 0
    dcl_position v0
    dcl_color v1
    dcl_texcoord v2
    dcl_position o0
    dcl_color o1
    dcl_texcoord o2.xy
    dcl_texcoord1 o3.xy
    dcl_texcoord2 o4

def c100, 0, 0, 0, 0
def c220, 1.7, 1, 0.0625, 9
def c245, 0, 0, 0, 0
def c247, 12.36, 12.37, 7.2, 0
dcl_2d s3

    dp4 r10.z, c2, v0
mov o0.z, r10.z
    dp4 r0.y, c1, v0
    mul r0.z, r0.y, c10.x
    dp4 r0.x, c0, v0
    dp4 r0.w, c3, v0
mov r10.xyw, r0.xyw
mov r15, c250
mov r14.x, c239.x
texldl r24, c220.z, s3
if_eq r14.x, c220.w
if_eq r15.z, c220.y
if_gt r24.y, c247.x
if_lt r24.y, c247.y
if_lt r10.z, c247.z
add r24.y, r10.w, -r24.y
mad r10.x, r24.x, -r24.y, r10.x
mad r10.x, r24.x, c220.x, r10.x	
endif
endif
endif
endif
endif

mov o0.xyw, r10

texldl r31, c220.z, s3
add r31.w, r0.w, -r31.y
mad r0.x, r31.w, r31.x, r0.x

    mul r1.xzw, r0.xywz, c14.x
    mov o4.w, r0.w
    mad o4.xy, r1.z, c11.zwzw, r1.xwzw
    dp4 r0.x, c6, v0
    mov o4.z, -r0.x
    mad o2.xy, v2, c13, c13.zwzw
    dp4 r0.x, c7, v0
    dp4 r0.y, c9, v0
    rcp r1.x, c12.x
    rcp r1.y, c12.y
    mul o3.xy, r0, r1
    mov o1, v1

// approximately 18 instruction slots used
