Hi Aitor In your code lightPosition = (x=0, y=40, z=0, w=0.3), so you use a directional light (w != 1.0). so you need in your shader a directional light computation. (see Orange book or here <http://www.lighthouse3d.com/opengl/glsl/index.php?ogldir1> for more explanation)
Or you want a point light and you can keep your shader but lightPosition.w must be equal to 1.0. HTH David Callu 2010/10/5 Aitor Ardanza <[email protected]>: > > Trajce (Nick) Nikolov wrote: >> maybe better to put something in while we can compile and test and see if can help - including the model-Nick >> > > Ok, here you have... > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=32382#32382 > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

