hmm, 3dgs provides matWorldViewProj; instead of MatrixWVP; and matWorldView; instead of matWorldView;
you need to set a lightdirection, too like vecSunDir; or vecLightDir[x];
your error is, that you just copied an fx-file like it was , without porting it to 3dgs style, plus your error is that you dont tell anything about what you want to achive and what errors you get in detail... thus making it hard to help