//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.2.67 on Mon Jan 01 13:11:46 2018
//
//
// Buffer Definitions: 
//
// cbuffer $Globals
// {
//
//   float3 g_vMoonLightDir;            // Offset:    0 Size:    12 [unused]
//   float4 g_vMoonColor;               // Offset:   16 Size:    16
//   float4 g_vGlowColor;               // Offset:   32 Size:    16 [unused]
//   float4x4 g_mMoonMatrix;            // Offset:   48 Size:    64 [unused]
//   float4x4 g_mGlowMatrix;            // Offset:  112 Size:    64 [unused]
//   float4x4 g_mViewProj;              // Offset:  176 Size:    64 [unused]
//   float4x4 g_mView;                  // Offset:  240 Size:    64 [unused]
//   float4x4 g_mProj;                  // Offset:  304 Size:    64 [unused]
//   float4 g_vOrigin;                  // Offset:  368 Size:    16 [unused]
//   float4 g_vSize;                    // Offset:  384 Size:    16 [unused]
//   float4 g_vAppear;                  // Offset:  400 Size:    16 [unused]
//   float4 g_avRND[4];                 // Offset:  416 Size:    64 [unused]
//   float4 g_avMASK[4];                // Offset:  480 Size:    64 [unused]
//      = 0x3f800000 0x00000000 0x00000000 0x00000000 
//        0x00000000 0x3f800000 0x00000000 0x00000000 
//        0x00000000 0x00000000 0x3f800000 0x00000000 
//        0x00000000 0x00000000 0x00000000 0x3f800000 
//   float4 g_vRotation;                // Offset:  544 Size:    16 [unused]
//   float4 g_vScreenPos;               // Offset:  560 Size:    16 [unused]
//   float4 g_vTCoords;                 // Offset:  576 Size:    16 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// MoonNormalsSampler                sampler      NA          NA    0        1
// MoonTextureSampler                sampler      NA          NA    1        1
// MoonTextureSampler                texture  float4          2d    0        1
// MoonNormalsSampler                texture  float4          2d    1        1
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float       
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xyz         2     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer cb0[2], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xy
dcl_output o0.xyzw
dcl_temps 3
sample r0.xyzw, v2.xyxx, t0.xyzw, s1
lt r1.x, r0.w, l(0.00784313772)
if_nz r1.x
  discard_nz l(-1)
endif 
sample r1.xyzw, v2.xyxx, t1.xyzw, s0
mad r1.xyz, r1.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r2.xyz, v1.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
dp3 r1.x, r1.xyzx, r2.xyzx
max r1.x, r1.x, l(0.000000)
sqrt r1.x, r1.x
min r1.x, r1.x, l(1.000000)
mul r0.xyz, r0.xyzx, r1.xxxx
mul r0.xyz, r0.wwww, r0.xyzx
mul r0.xyz, r0.xyzx, v1.wwww
mul o0.xyz, r0.xyzx, cb0[1].xyzx
mov o0.w, r0.w
ret 
// Approximately 18 instruction slots used
