ssloy/tinyrenderer

Lighting code in lesson 2 is not working properly

yousefbinali opened this issue · 0 comments

image

Hi, as you can see the lighting looks wrong and I can't figure what is the problem. I copied the same code.

EDIT:
Never mind it seems I edited the cross product method by mistake and got the wrong calculations.