ok, a couple datapoints: the .osg format parser:
1) is case-sensitive
2) silently ignores anything is doesn't recognize.
Your example shows "File" when the actual keyword is "file".
Excerpt from the glsl_simple.osg example:
Shader {
DataVariance DYNAMIC
type VERTEX
file shaders/shader.vert
}
-- mew
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:osg-users-
> [EMAIL PROTECTED] On Behalf Of Mike Weiblen
> Sent: Thursday, April 10, 2008 10:08 AM
> To: OpenSceneGraph Users
> Subject: Re: [osg-users] using Shader file call - what Shader version
>
> Hi
>
> "no luck" meaning what exactly? file not found, shader code not
> loading
> correctly, .osg file parse error, etc?
>
> if the former, do you have the OSG file path set so the file can be
> found?
>
> -- mew
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:osg-users-
> > [EMAIL PROTECTED] On Behalf Of Dunhour, Mike (CIV)
> > Sent: Wednesday, April 09, 2008 8:55 PM
> > To: OpenSceneGraph Users
> > Subject: [osg-users] using Shader file call - what Shader version
> >
> ...
> > Still no luck getting a Shader to be called from a .osg file, but
was
> > told that calling up a Shader file with
> >
> > Shader {
> >
> > File "do.frag"
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org