Re: [2/5] WineD3D: Use 0/0/0 as normal if no normal is supplied
21 Aug
2007
21 Aug
'07
1:57 p.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.
21 Aug
21 Aug
5: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.
6691
Age (days ago)
6691
Last active (days ago)
1 comments
2 participants
participants (2)
-
H. Verbeet -
Stefan Dösinger