Looks like you're putting the light's POSITION into your constant buffer CPU side. This is correct for a point light. But in the case of a directional light you just need a DIRECTION!
(If you normalize the lights position as you're doing here you'll get a directional vector form the origin to the lights position as your directional light direction.)
REF_CrackerMember Since 22 Feb 2000
Offline Last Active Today, 03:38 PM