[osg-users] Shaders for textures with OpenGL ES 2.0

Şan Güneş sgunes at 350.su
Sun Oct 25 10:12:04 PDT 2015


Hello,

I'm playing around with OpenSceneGraph with OpenGL ES 2.0. I managed to
show some primitives, and later a model that I loaded with osgDB.
However at the moment I'm assigning a random color to the gl_FragColor
in the fragment shader. When doing this I'm getting the following warning:

> Warning: Material::apply(State&) - not supported.

I'm confused about how I should write the shaders if I load a model with
osgDB in order to show it together with it's texture. So far I couldn't
find any OpenSceneGraph related example for this. I would appreciate any
help and tips.

Thanks



More information about the osg-users mailing list