Update of /cvsroot/toxicengine/toxic/src/renderer
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16213/src/renderer
Modified Files:
ray.h
Log Message:
bases for translucency (and a test of syncmail)
Index: ray.h
===================================================================
RCS file: /cvsroot/toxicengine/toxic/src/renderer/ray.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ray.h 6 Jun 2004 12:22:47 -0000 1.6
--- ray.h 20 Oct 2004 14:42:03 -0000 1.7
***************
*** 32,35 ****
--- 32,36 ----
#include <cassert>
+ #include <stack>
namespace toxic {
***************
*** 52,58 ****
--- 53,63 ----
};
+ //! Geometric definition of the ray.
sheep::Point3 m_origin; //!< World space or object space.
sheep::Vector3 m_direction; //!< World space or object space.
+ //! Stack of indices of refraction.
+ std::stack<sheep::Real> m_ior_stack;
+
Ray(Type type);
Ray(Type type, const sheep::Point3 &origin, const sheep::Vector3 &direction);
|