Hi Enrico,
On Tue, 2004-10-19 at 03:48, Enrico Borrione wrote:
> Hi all,
> while giving a look to the latest OSG-cvs (actually the latest *two*
> cvses :) ), i noticed some new files all derived from
> OSGShaderParameterBase.cpp. Since I am working with GLShadingLanguage,
> i was quite interested, so now these are my questions:
> 1) do these classes work with GLSL or with the former assmbly shaders?
these are specific for GLSL.
> 2) how do i use them? Are there any example files on this topic, or even
> simply some documentation?
You can look at testSHLSharedParameters.cpp. The core idea is to
decouple shaders and their parameters, to allows you to use the same
shader with different parameters for different models, as switching
parameters is cheaper than switching shaders.
Hope it helps
Dirk
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users