Hi David, You are right there is much uniform variables can be changed in every frame but these all Built-in variables. I think this difference can change the state of your tenet.
I have read OrangeBook and Randi Rost ( GLSL GURU :) ) advices using uniform variables if you rarely update and in converse situation for attributes. I don't know why but if they advices, this must be true :) Regards. 2008/11/19 David Spilling <[EMAIL PROTECTED]> > Umit, > > Sorry to be picky, but: > > Firstly, uniform variables are intented to using in rarely changing >> values, and attributes is used while needing frequently changing values. >> > > Not quite. Lots of the "fixed-function" uniforms - which are deprecated > under GL3 - potentially change every frame ( gl_ModelViewMatrix etc. ). > > Attributes are per-vertex data, like position, normals, texcoords and so > on. Uniforms are the same across a set of vertices. > > David > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- Ümit Uzun
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org