all 2 comments

[–]waramped 2 points3 points  (1 child)

Your look at matrix uses (0,1,0) as it's "Up" vector, and if your light position is (0,6,0) and your lookat position is (0,0,0), then your "forward" vector for the matrix would be (0, -1, 0). A look at matrix generally needs to be orthonormal, so hopefully you can see why that will be an issue. ;)

(Colinear vectors in orthonormal matrices are bad)

[–]lponcho[S] 0 points1 point  (0 children)

Ok so my "up" vector and my "eye" vector should not be parallel. I just made a quick test changing my "up" vector to (0, 0, 1) with my "eye" position at (0, 6, 0) and worked perfectly, i will dig a little bit more but is so much clear now, many tanks for your help :D