in vertex shader add line
ReflectDir = (osg_ViewMatrixInverse * vec4(ReflectDir,0)).xyz;
after
ReflectDir = reflect(eyeDir, normal);
27.03.2013, 20:27, "Andrea Martini" <[email protected]>:
> Hi hybr(),
> thank you. Now it works!
>
> I have to change something to update the reflected image on camera moving ...
> i have to check.
>
> Thank you again.
>
> Cheers,
> Andrea
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=53349#53349
>
> _______________________________________________
> 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