25 KernelGlobals kg,
int offset,
const int numverts,
const int numsteps,
int step,
const int prim)
27 if (
step == numsteps) {
32 if (
step > numsteps) {
36 offset +=
step * numverts;
52 const int maxstep = numsteps * 2;
53 const int step =
min((
int)(time * maxstep), maxstep - 1);
54 const float t = time * maxstep -
step;
61 const float4 point = motion_point_for_step(kg, offset, numverts, numsteps,
step, prim);
62 const float4 next_point = motion_point_for_step(kg, offset, numverts, numsteps,
step + 1, prim);
65 return (1.0f - t) * point + t * next_point;
ccl_device_inline int intersection_find_attribute(KernelGlobals kg, const int object, const uint id)
#define kernel_assert(cond)
#define kernel_data_fetch(name, index)
const ThreadKernelGlobalsCPU * KernelGlobals
#define ccl_device_inline
#define CCL_NAMESPACE_END
VecBase< float, D > step(VecOp< float, D >, VecOp< float, D >) RET
@ ATTR_STD_MOTION_VERTEX_POSITION