inline T RayTesselatedTimeSampledTrianglePrimitive::_InterpolateFaceAttrib(float time, const tarray<T>& f) { return f.interpolate(idx, time); }
inline void RayTesselatedTimeSampledTrianglePrimitive::_InterpolateVertexAttrib(T& v0, T& v1, T& v2, float time, const tarray<T>& v) { v0 = v.interpolate(triangles->triangles[idx][0], time); v1 = v.interpolate(triangles->triangles[idx][1], time); v2 = v.interpolate(triangles->triangles[idx][2], time); }