//
// 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
//   float4x4 g_mView;                  // Offset:  240 Size:    64 [unused]
//   float4x4 g_mProj;                  // Offset:  304 Size:    64 [unused]
//   float4 g_vOrigin;                  // Offset:  368 Size:    16
//   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
mul r0.x, v0.y, cb0[34].x
mad r0.x, v0.x, cb0[34].y, -r0.x
dp2 r0.y, v0.xyxx, cb0[34].xyxx
mov r0.z, v0.z
mul r0.xyz, r0.xyzx, cb0[25].wwww
mul r0.xyz, r0.xyzx, cb0[24].xxxx
mov r0.w, l(1.000000)
dp4 r1.x, r0.xyzw, cb0[7].xyzw
dp4 r1.y, r0.xyzw, cb0[8].xyzw
dp4 r1.z, r0.xyzw, cb0[9].xyzw
dp4 r0.w, r0.xyzw, cb0[10].xyzw
add r1.xyz, r1.xyzx, cb0[23].xyzx
mov r2.x, -cb0[7].z
mov r2.y, -cb0[8].z
mov r2.z, -cb0[9].z
mad r0.xyz, r2.xyzx, cb0[25].wwww, r1.xyzx
// replacing matrix usage :dp4 r1.x, r0.xyzw, cb0[11].xyzw
dp4 r3.x, r0.xyzw, cb0[11].xyzw
mul r1.x, r3.x, r5.x
// replacing matrix usage :dp4 r1.y, r0.xyzw, cb0[12].xyzw
dp4 r3.y, r0.xyzw, cb0[12].xyzw
mul r1.y, r3.y, r5.y
dp4 r1.w, r0.xyzw, cb0[14].xyzw
dp4 o0.z, r0.xyzw, cb0[13].xyzw
mov o0.xyw, r1.xyxw
div r0.xy, r1.xyxx, r1.wwww
mov o1.xyzw, l(0,0,0,0)
mad o2.x, r0.x, l(0.500000), l(0.500000)
mad o2.y, -r0.y, l(0.500000), l(0.500000)
mov o2.z, l(0)
ret 
// Approximately 27 instruction slots used
