[osg-users] handling of #pragma line in Shader::_computeShaderDefines()
Robert Osfield
robert.osfield at gmail.com
Fri Feb 26 02:29:27 PST 2016
Hi Andreas,
Thanks for the extra info. Which version of the OSG are you using? Do you
know if the osgEarth code is attempting to utilize the OSG's #pragmatic
shader composition?
Robert.
On 26 February 2016 at 07:41, Andreas Roth <osgforum at tevs.eu> wrote:
> Sorry for the confusion.
>
> The shader is from osgEarth
> https://github.com/gwaldron/osgearth/blob/master/src/osgEarthDrivers/sky_simple/SimpleSky.Ground.ONeil.vert.glsl
> .
>
> My problem with the _computeShaderDefines() function is that it tries to
> parse a #pragma line, but in the end is actually parses multiple lines
> because the #pragma line does not have a opening bracking at all and find
> the next opening bracket further down in the code.
>
> Andreas
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=66435#66435
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160226/1540a68c/attachment-0003.htm>
More information about the osg-users
mailing list