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

Mike Weiblen mweiblen at zebraimaging.com
Wed Jul 25 09:49:01 PDT 2007


Hi,

There are several examples of embedded shader code in the OSG data
archive, eg: glsl_simple.osg

-- mew


Mike Weiblen -- Zebra Imaging -- Austin Texas USA --
http://www.zebraimaging.com/

> -----Original Message-----
> From: osg-users-bounces at lists.openscenegraph.org [mailto:osg-users-
> bounces at lists.openscenegraph.org] On Behalf Of Dunhour, Mike (CIV)
> Sent: Tuesday, July 24, 2007 8:25 PM
> To: osg-users at lists.openscenegraph.org
> Subject: [osg-users] Embedded shader code examples in .osg mesh file?
> 
> 
> 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.or
g


More information about the osg-users mailing list