|
From: James W. <ja...@fr...> - 2007-04-12 23:52:45
|
I've checked in my changes for per-pixel lighting. There is a new source file, so projects and makefiles must be updated. I updated the Xcode and CodeWarrior XML projects. The difference between per-pixel lighting and per-vertex lighting is particularly noticeable when you use spotlights or nearby point lights. I posted a sample under "Screenshots" in the Quesa area at SourceForge. You get per-pixel lighting by selecting the OpenGL renderer and setting a property on the renderer object. Geom Test now has a toggle for this. If the OpenGL implementation (i.e., video card or software renderer) does not support OpenGL Shading Language, then the OpenGL renderer silently reverts to per-vertex lighting. Per-pixel lighting does not yet support fog. -- James W. Walker, Innoventive Software LLC <http://www.frameforge3d.com/> |