Re: [osg-users] Oops- sorry should be shader as .osg embedded code

2008-02-15 Thread Robert Osfield
Hi Mike, I can't really work out exactly what issue you have given your email. The best I can do is point your towards the osgshader example for an example of shaders set up in code, or the OpenSceneGraph-Data/glsl_*.osg example .osg files. Robert. On Thu, Jan 31, 2008 at 8:00 PM, Dunhour, Mike

[osg-users] Oops- sorry should be shader as .osg embedded code

2008-01-31 Thread Dunhour, Mike (CIV)
Hello Still trying to get a shader program running in an .osg mesh file Doing the Program { Shader{ Type FRAGMENT Code { void main (void); { gl_FragColor = vec4 (1.0, 0.0, 0.0, 1.0); } Trying to get shader code to be called from file replacing code with File