inGLSL

R = reflect(-L, N)
where
N : normal vector
L: light vector

It give from scratch:
>From scratch:
R = 2 * ( N dot L) * N - L

---------- Forwarded message ----------
From: "Sebastien Nerig" <[email protected]>
Date: Feb 16, 10:07 am
Subject: reflect vector ?
To: OpenSceneGraph Users


Hi,

Do any functions exist to compute reflected matrix or reflected vector
against a plane ?

Thank you!

Cheers,
Sebastien

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=24214#24214

_______________________________________________
osg-users mailing list
[email protected]://
lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph...
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to