3) LightDirection isn't set, you'll have to define it. Most likely what you want to do is use the global sunlight, so put this at the top of the code: Code:
extern float4 vecSunDir
"And change LightDirection to vecSunDir in your code." ----> how do i do that?