[osg-users] Embedded shader code examples in .osg mesh file?

Robert Osfield robert.osfield at gmail.com
Wed Jul 25 00:51:22 PDT 2007


Hi Mike,

The glsl_confetti.osg, glsl_mandelbrot.osg and glsl_julia.osg examples
all provide examples of embedding GLSL code into a .osg file.

On 7/25/07, Dunhour, Mike (CIV) <msdunhou at nps.edu> wrote:
>
> Hello
>
>   Looking for example on how to embed shader code into an .osg mesh file
> replacing material settings.
>
>    Looks something like
>
> Program {
>   UniqueID Program_1
>   DataVariance STATIC
>   num_shaders 1
>   Shader {
>     DataVariance DYNAMIC
>     type FRAGMENT
>     code {
>     "void main (void)"
> ........
>
>
> Unsure where to place and what else is needed
>
> Thank you
>
> Mr. D
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



More information about the osg-users mailing list