// Summary: added wind sway
// Generated by Microsoft (R) HLSL Shader Compiler 9.26.952.2844
//
// Parameters:
//
//   float4 colorize;
//   float4 gDayNightEffects;
//   row_major float4x4 gWorld;
//   row_major float4x4 gWorldViewProj;
//   float4 globalScalars;
//   float4 globalScalars2;
//
//
// Registers:
//
//   Name             Reg   Size
//   ---------------- ----- ----
//   gWorld           c0       4
//   gWorldViewProj   c8       4
//   globalScalars    c39      1
//   globalScalars2   c40      1
//   gDayNightEffects c45      1
//   colorize         c51      1
//

    vs_3_0
    def c230, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 3.9698785494e-42 // 2833
    def c4, 9.99999975e-006, -1, 1, 0
    def c5, 0.00499999989, 0.00999999978, 0, 1
    def c6, 9.99999975e-006, 0.5, 0.0318309888, 0
    def c7, 6.28318548, -3.14159274, 0, 0
    dcl_position v0
    dcl_color v1
    dcl_texcoord v2
    dcl_normal v3
    dcl_tangent v4
    dcl_position o0
    dcl_texcoord9 o10
    dcl_texcoord o1.xy
    dcl_texcoord1 o2
    dcl_texcoord4 o3.xyz
    dcl_texcoord5 o4.xyz
    dcl_color o5
    dcl_texcoord6 o6
    mul r0.xyz, c1, v0.y
    mad r0.xyz, v0.x, c0, r0
    mad r0.xyz, v0.z, c2, r0
    add o6.xyz, r0, c3
    mul r0.xyz, c1, v3.y
    mad r0.xyz, v3.x, c0, r0
    mad r0.xyz, v3.z, c2, r0
    add r0.xyz, r0, c4.x
    nrm r1.xyz, r0
    mul r0.xyz, c1, v4.y
    mad r0.xyz, v4.x, c0, r0
    mad r0.xyz, v4.z, c2, r0
    add r0.xyz, r0, c4.x
    nrm r2.xyz, r0
    mul r0.xyz, r1.yzxw, r2.zxyw
    mad r0.xyz, r2.yzxw, r1.zxyw, -r0
    mov o2.xyz, r1
    mov o3.xyz, r2
    mul o4.xyz, r0, v4.w
    mul r0.xy, c45, v1
    add r0.x, r0.y, r0.x
    mov r0.yz, c4
    mad r0.x, r0.x, c39.z, r0.y
    mad o5.xy, c40.z, r0.x, r0.z
    mul r0.xyz, c5.zwzw, v0.zxyw
    mad r0.xyz, v0.yzxw, c5.wzzw, -r0
    add r0.xyz, r0, c6.x
    nrm r1.xyz, r0
    dp3 r0.x, v0, v0
    rsq r0.x, r0.x
    rcp r0.x, r0.x
    mad r0.y, r0.x, c5.x, c5.y
    mul r0.x, r0.x, c233.x
    // mul r0.x, r0.x, c51.w
    mad r0.x, r0.x, c6.z, c6.y
    frc r0.x, r0.x
    mad r0.x, r0.x, c7.x, c7.y
    sincos r2.xy, r0.x
    mul r0.xzw, r1.xyyz, r0.y
    mul r1.xyz, r0.wxzw, v0.yzxw
    mad r1.xyz, r0.zwxw, v0.zxyw, -r1
    mad r0.xzw, r0, r2.y, v0.xyyz
    add r1.xyz, r1, c6.x
    nrm r3.xyz, r1
    mul r1.xyz, r0.y, r3
    mul r1.xyz, r1, c6.y
    mad r3.xyz, r1, r2.x, r0.xzww
    mul r0, c9, r3.y
    mad r0, r3.x, c8, r0
    mad r0, r3.z, c10, r0
    add r0, r0, c11
    mov o0, r0
    mov o10.zw, r0
    mov o2.w, r0.w
    mov o1.xy, v2
    mov o5.zw, v1
    mov o6.w, c4.z
    mov r20.x, c8.w
    add r20.x, r20.x, c9.w
    add r20.x, r20.x, c10.w
    add o10.y, r20.x, c11.w
    
// approximately 37 instruction slots used
