//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//
// Buffer Definitions:
//
// cbuffer cb0
// {
//
// float4 cb0; // Offset: 0 Size: 16
//
// }
//
//
// Resource Bindings:
//
// Name Type Format Dim HLSL Bind Count
// ------------------------------ ---------- ------- ----------- -------------- ------
// s0_s sampler NA NA s0 1
// t0 texture float4 2d t0 1
// IniParams texture float4 1d t120 1
// cb0 cbuffer NA NA cb0 1
//
//
//
// Input signature:
//
// Name Index Mask Register SysValue Format Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD 0 xyzw 0 NONE float xyzw
// TEXCOORD 1 xyzw 1 NONE float xyzw
// TEXCOORD 2 xyzw 2 NONE float xyzw
// TEXCOORD 3 xy 3 NONE float xy
//
//
// 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 CB0[1], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture1d (float,float,float,float) t120
dcl_input_ps linear v0.xyzw
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xyzw
dcl_input_ps linear v3.xy
dcl_output o0.xyzw
dcl_temps 4
movc r0.x, cb0[0].x, l(-1.000000), l(0)
ine r0.y, cb0[0].y, l(0)
and r0.x, r0.x, r0.y
ne r0.x, r0.x, l(0.000000)
sample_indexable(texture2d)(float,float,float,float) r0.y, v3.xyxx, t0.xwyz, s0
mul r1.w, r0.y, v2.w
mov r1.xyz, v2.xyzx
mad r1.xyzw, r1.xyzw, v1.xyzw, v0.xyzw
mul r0.yzw, r1.wwww, r1.xxyz
ne r2.xy, cb0[0].xyxx, l(0.000000, 0.000000, 0.000000, 0.000000)
movc r3.xyz, r2.yyyy, r0.yzwy, r1.xyzx
mov r3.w, r1.w
add r1.xyzw, r1.xyzw, l(-1.000000, -1.000000, -1.000000, -1.000000)
mad r1.xyzw, r3.wwww, r1.xyzw, l(1.000000, 1.000000, 1.000000, 1.000000)
movc r2.xyzw, r2.xxxx, r1.xyzw, r3.xyzw
mul r1.xyz, r1.wwww, r1.xyzx
movc r0.xyzw, r0.xxxx, r1.xyzw, r2.xyzw
mul r1.xy, r0.zyzz, l(15.000000, 10.000000, 0.000000, 0.000000)
lt r1.x, r1.x, r0.x
lt r1.y, r0.x, r1.y
lt r1.z, r0.y, r0.x
and r1.x, r1.z, r1.x
and r1.x, r1.x, l(1)
and r1.x, r1.x, r1.y
dp3 r2.x, r0.xyzx, l(0.950000, 0.000000, 0.000000, 0.000000)
dp3 r2.y, r0.xyzx, l(0.950000, 0.000000, 0.000000, 0.000000)
dp3 r2.z, r0.xyzx, l(0.700000, 0.000000, 0.000000, 0.000000)
movc r1.xyz, r1.xxxx, r2.xyzx, r0.xyzx
ld_indexable(texture1d)(float,float,float,float) r1.w, l(100, 0, 0, 0), t120.yzwx
eq r1.w, r1.w, l(1.000000)
movc o0.xyz, r1.wwww, r1.xyzx, r0.xyzx
mov o0.w, r0.w
ret
// Approximately 33 instruction slots used