belthil wrote:
...
> const std::string CStars::_vertexShaderProgram =
> "uniform float starAlpha;"
> "uniform float pointSize;"
> "varying vec4 starColor;"
> "void main()"
> "{"
> " starColor = gl_Color - 1.0 + starAlpha;"
> " gl_PointSize = pointSize;"
> " gl_ClipVertex = gl_ModelViewProjectionMatrix * gl_Vertex;"
> " gl_Position = ftransform();"
> "}";
...
BTW a style suggestion: I strongly recommend putting a \n at the end of each
line of shader source. GLSL counts newlines to determine a line# for error
messages; as far as GLSL is concerned, any error you may have in such a block of
code will always be the "first" (and only) line!
-- mew
--
Mike Weiblen -- Austin Texas USA -- http://mew.cx/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/