Re: [2/5] WineD3D: Use 0/0/0 as normal if no normal is supplied
Aug. 21, 2007
10:57 a.m.
I'm not sure about this one. Unless explicitly checked for, (0, 0, 0) will cause a division by zero when trying to normalize it, and I don't know for sure if GL has well defined behaviour for it.
August 2007
2:33 p.m.
New subject: [2/5] WineD3D: Use 0/0/0 as normal if no normal is supplied
Am Dienstag, 21. August 2007 12:57 schrieb H. Verbeet:
I'm not sure about this one. Unless explicitly checked for, (0, 0, 0) will cause a division by zero when trying to normalize it, and I don't know for sure if GL has well defined behaviour for it. You're right, this patch is asking for problems with normalization. Perhaps we should disable normalization if no normals are provided, but I will double check the lighting equations first for divisions by zero, but afair there's only a cross product and a multiplication there.
6792
Age (days ago)
6792
Last active (days ago)
1 comments
2 participants
participants (2)
-
H. Verbeet -
Stefan Dösinger