Hi,

you are outputting the position as color, that's why you see black (because 
these have negative coordinate values) and the three values. Just set an 
arbitrary fixed color value in the frag-shader to see anything. But if you need 
to see colors, then you need to define your own vertex attribute for passing in 
colors.

But my advice is that you should first get used to writing very basic shaders 
in opengl 3.0 core profile mode. OpenGL ES 2.0 is similar in the sense they do 
not support fixed function pipeline. You need to learn the basics first.

-deniz

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=57108#57108





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to