On 1/10/2012 1:55 PM, Jason Daly wrote:
On 01/10/2012 03:57 PM, wang shuiying wrote:
Can I at least get to know, if can not change, the interpolation method used
by the openGl in my implemention?
Section 3.6 of the current OpenGL specification has all of the equations for
this:
http://www.opengl.org/registry/doc/glspec42.core.20110808.pdf
Other sections too, 3.10.1 for example. Try searching the spec for "centroid" or
"noperspective"; information on shader variable interpolation is scattered
around in several places.
I'd think simple linear interpolation could be accomplished using the
noperspective qualifier:
noperspective out vec3 eyeCoord; // for example
...but I haven't played with this.
You might consider searching/posting at the opengl.org discussion boards.
-Paul
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org