Hi guys,

did I miss something or is gl_FrontMaterial already deprecated in OpenGL 3?

When I try to use gl_FrontMaterial.ambient, .diffuse, .shininess, etc. in the 
vert/frag
shaders I'm getting silly values (e.g. negative for shininess) that don't 
correspond to
what I set in osg::Material.  (But I'm not getting errors either.)

When I use a uniform to pass those it works fine.  I'm aware that this is how 
it should be
done anyhow but I was under the impression that gl_FrontMaterial (and friends) 
would still
work.

This is on OS X 10.5.8 (GeForce 8600M, shading language 1.20).

Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to