OpenGL lighting fixes
Kai Habel
kai.habel at gmx.de
Wed Feb 4 11:28:55 CST 2009
Michael Goffioul schrieb:
> ...
>
>
>> 2.) The surface normals should be calculated when facelighting is set to
>> 'flat' too.
>>
>
> That's not my understanding of Matlab documentation. When facelighting
> is flat, the ligthening should be uniform across the each quad and equal
> to the lightening of the first vertex. That's why I don't update the normal on
> the usbsequent vertices.
>
>
> ...
Thanks,
for the reply and brief explanation. I did some tests myself, and can
confirm the behavior you have described above. So, I have reworked the
patch that only the calculation of diffuse reflection and surface
normals is modified.
Kai
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: changeset_gllightfix
Url: https://www-old.cae.wisc.edu/pipermail/octave-maintainers/attachments/20090204/480c92ee/attachment.ksh
More information about the Octave-maintainers
mailing list