Hi Lait,

If you want the camera position in world coordinate, you have to pass it
yourself.
OSG, like OpenGL only work in Eye Coordinate inside the shader.

HTH
David Callu


2011/1/13 Laith Dhawahir <laithbasildot...@gmail.com>

> Heey Guys,
> I hope you will fine,
> anyway, i have question about how i can get the camera position inside
> shader from open scene graph do i must pass it, or open scene graph already
> do that.
>
> Thank you!
>
> Cheers,
> Laith
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=35600#35600
>
>
>
>
>
> _______________________________________________
> 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

Reply via email to