Hi Wojtek,

Ahh, good catch with the improper derivation!  :)  Thank you. I'm attaching the 
corrected st.h file.

I just tried to get the osgShadow example working (-4 --lispsm), and it didn't 
work with any of the workarounds that I'd used in my code (not using variables 
to index light sources, don't use derived light values such as 
gl_FrontLightModelProduct, skip empty program add, etc).

Now the standard LispSM does its lighting in the vertex shader, and all of my 
Programs do their lighting in the fragment programs...  so there may be 
additional tricks for vert shaders that I'm not yet aware of?

I haven't tried any of the other techniques yet, but perhaps I'll see if those 
can be patched up.  But... even if we could patch them, the fixes are ugly 
enough that I don't think they'd belong in the osg source.  Perhaps I should 
post some of these issues on the ATI forums.

Thank you!
Baker

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30533#30533




Attachments: 
http://forum.openscenegraph.org//files/st_191.h


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to