//
// 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 [unused]
//   float4 g_vGlowColor;               // Offset:   32 Size:    16 [unused]
//   float4x4 g_mMoonMatrix;            // Offset:   48 Size:    64 [unused]
//   float4x4 g_mGlowMatrix;            // Offset:  112 Size:    64
//   float4x4 g_mViewProj;              // Offset:  176 Size:    64 [unused]
//   float4x4 g_mView;                  // Offset:  240 Size:    64
//   float4x4 g_mProj;                  // Offset:  304 Size:    64
//   float4 g_vOrigin;                  // Offset:  368 Size:    16 [unused]
//   float4 g_vSize;                    // Offset:  384 Size:    16
//   float4 g_vAppear;                  // Offset:  400 Size:    16
//   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
//   float4 g_vScreenPos;               // Offset:  560 Size:    16 [unused]
//   float4 g_vTCoords;                 // Offset:  576 Size:    16 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyz         0     NONE   float   xyz 
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// COLOR                    0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xyz         2     NONE   float   xyz 
//
vs_4_0
dcl_constantbuffer cb0[35], immediateIndexed
dcl_input v0.xyz
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyz
// dcl_temps updated : previous = dcl_temps 3
dcl_temps 6
// added 3dmigoto declaration
dcl_resource_texture1d (float,float,float,float) t120
ld_indexable(texture1d)(float,float,float,float) r4.xyzw, l(0, 0, 0, 0), t120.xyzw
mov r5.x, r4.w
mov r5.y, r4.w
mov r5.zw, l(1.0, 1.0)
// end of 3dmigoto declaration
mov r0.y, -cb0[7].z
mov r0.w, -cb0[9].z
mul r1.x, v0.y, cb0[34].x
mad r1.x, v0.x, cb0[34].y, -r1.x
dp2 r1.y, v0.xyxx, cb0[34].xyxx
mov r1.z, v0.z
mul r1.xyz, r1.xyzx, cb0[25].wwww
mul r1.xyz, r1.xyzx, cb0[24].xxxx
mov r1.w, l(1.000000)
dp4 r2.x, r1.xyzw, cb0[7].xyzw
dp4 r2.y, r1.xyzw, cb0[8].xyzw
dp4 r2.z, r1.xyzw, cb0[9].xyzw
mov r0.xz, -cb0[8].zzzz
mad r0.yzw, r0.yyzw, cb0[25].wwww, r2.xxyz
max r0.x, r0.x, l(0.000000)
mad r0.x, cb0[25].y, l(2.000000), r0.x
add r0.x, r0.x, l(-1.000000)
mov_sat o1.xyzw, r0.xxxx
// replacing matrix usage :dp3 r1.x, r0.yzwy, cb0[15].xyzx
dp3 r3.x, r0.yzwy, cb0[15].xyzx
mul r1.x, r3.x, r5.x
// replacing matrix usage :dp3 r1.y, r0.yzwy, cb0[16].xyzx
dp3 r3.y, r0.yzwy, cb0[16].xyzx
mul r1.y, r3.y, r5.y
dp3 r1.z, r0.yzwy, cb0[17].xyzx
mov r1.w, l(1.000000)
dp4 o0.x, r1.xyzw, cb0[19].xyzw
dp4 o0.y, r1.xyzw, cb0[20].xyzw
dp4 o0.z, r1.xyzw, cb0[21].xyzw
dp4 o0.w, r1.xyzw, cb0[22].xyzw
mov_sat o2.x, v0.x
add_sat o2.y, -v0.y, l(1.000000)
mov o2.z, l(0)
ret 
// Approximately 30 instruction slots used
