//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384
//
//   using 3Dmigoto v1.2.27 on Mon Feb 08 21:22:24 2016
//
//
// Buffer Definitions: 
//
// cbuffer cbPerScene
// {
//
//   row_major float4x4 g_mViewProj;    // Offset:    0 Size:    64 [unused]
//   row_major float4x4 g_mInvViewProj; // Offset:   64 Size:    64 [unused]
//   float3 g_vEye;                     // Offset:  128 Size:    12 [unused]
//   float g_FiberAlpha;                // Offset:  140 Size:     4 [unused]
//   float2 g_WinSize;                  // Offset:  144 Size:     8
//   float g_FiberRadius;               // Offset:  152 Size:     4 [unused]
//   float g_fvFov;                     // Offset:  156 Size:     4 [unused]
//   float2 g_zMinMax;                  // Offset:  160 Size:     8 [unused]
//   float g_zWriteValue;               // Offset:  168 Size:     4 [unused]
//   float g_NoiseScale;                // Offset:  172 Size:     4 [unused]
//   float4 g_ScreenExtents;            // Offset:  176 Size:    16 [unused]
//   float3 g_dirtColor;                // Offset:  192 Size:    12 [unused]
//   float g_dirtLevel;                 // Offset:  204 Size:     4 [unused]
//   uint g_baseGroupId;                // Offset:  208 Size:     4 [unused]
//   uint g_dirtGroupId;                // Offset:  212 Size:     4 [unused]
//   float g_widthCurveOverride;        // Offset:  216 Size:     4 [unused]
//   float g_alphaCurveOverride;        // Offset:  220 Size:     4 [unused]
//   float3 g_SlaveOffsetsReferencePosition;// Offset:  224 Size:    12 [unused]
//   float g_SlaveOffsetsScale;         // Offset:  236 Size:     4 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// cbPerScene                        cbuffer      NA          NA    8        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xy  
// TANGENT                  0   xyzw        1     NONE   float       
// TEXCOORD                 0   xyzw        2     NONE   float   xyzw
// TEXCOORD                 1   xyz         3     NONE   float     z 
// COLOR                    0   xyzw        4     NONE   float       
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb8[10], immediateIndexed
dcl_input_ps_siv linear noperspective v0.xy, position
dcl_input_ps linear v2.xyzw
dcl_input_ps linear v3.z
dcl_output o0.xyzw
dcl_temps 2
add r0.xyzw, v0.xyxy, v0.xyxy
div r0.xyzw, r0.xyzw, cb8[9].xyxy
mad r0.xyzw, r0.xyzw, l(1.000000, -1.000000, 1.000000, -1.000000), l(-1.000000, 1.000000, -1.000000, 1.000000)
mul r1.xyzw, v2.xyzw, cb8[9].xyxy
mad r0.xyzw, -r0.xyzw, cb8[9].xyxy, r1.xyzw
mad r1.xy, v2.xyxx, cb8[9].xyxx, -r1.zwzz
dp2 r1.x, r1.xyxx, r1.xyxx
sqrt r1.x, r1.x
dp2 r0.x, r0.xyxx, r0.xyxx
dp2 r0.y, r0.zwzz, r0.zwzz
sqrt r0.xy, r0.xyxx
ge r0.z, r0.x, r1.x
min r0.x, r0.y, r0.x
ge r0.y, r0.y, r1.x
min r0.x, r0.x, l(1.000000)
and r1.xy, r0.zyzz, l(0x3f800000, 0x3f800000, 0, 0)
dp2 r0.y, r1.xyxx, r1.xyxx
ne r0.y, r0.y, l(0.000000)
movc r0.y, r0.y, l(-1.000000), l(1.000000)
mad r0.x, r0.y, r0.x, l(1.000000)
mul r0.x, r0.x, v3.z
mad r0.x, r0.x, l(0.500000), l(-0.980000)
lt r0.x, r0.x, l(0.000000)
discard_nz r0.x
mov o0.xyzw, l(0,0,0,0)
ret 
// Approximately 26 instruction slots used
