Hi Aitor try this:
Your code do the job in eye coordinate so eyePosition = vec3(0,0,0) and you don't need eyePosition uniform; bug fix: - ViewDirection = normalize(eyePosition - fvObjectPosition.xyz); + ViewDirection = normalize( - fvObjectPosition.xyz); HTH David Callu 2010/10/1 Aitor Ardanza <aitoralt...@terra.es>: > Thanks for the correction, but the result is the same ... > > Aitor > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=32254#32254 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org