[osg-users] handling of #pragma line in Shader::_computeShaderDefines()
Andreas Roth
osgforum at tevs.eu
Thu Feb 25 23:41:44 PST 2016
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
More information about the osg-users
mailing list