|
Blender
V2.93
|
Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device_inline float3 | motion_triangle_refine (KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray, float3 verts[3]) |
| ccl_device_inline bool | motion_triangle_intersect (KernelGlobals *kg, Intersection *isect, float3 P, float3 dir, float time, uint visibility, int object, int prim_addr) |
| ccl_device_inline bool motion_triangle_intersect | ( | KernelGlobals * | kg, |
| Intersection * | isect, | ||
| float3 | P, | ||
| float3 | dir, | ||
| float | time, | ||
| uint | visibility, | ||
| int | object, | ||
| int | prim_addr | ||
| ) |
Definition at line 163 of file geom_motion_triangle_intersect.h.
References kernel_tex_fetch, kg, motion_triangle_vertices(), Intersection::object, OBJECT_NONE, P(), Intersection::prim, PRIMITIVE_MOTION_TRIANGLE, ray_triangle_intersect(), Intersection::t, t, time, Intersection::type, Intersection::u, Intersection::v, v, and verts.
Referenced by BVH().
| CCL_NAMESPACE_BEGIN ccl_device_inline float3 motion_triangle_refine | ( | KernelGlobals * | kg, |
| ShaderData * | sd, | ||
| const Intersection * | isect, | ||
| const Ray * | ray, | ||
| float3 | verts[3] | ||
| ) |
Definition at line 35 of file geom_motion_triangle_intersect.h.
References cross(), Ray::D, D(), dot(), kg, normalize_len(), Intersection::object, object_fetch_transform(), OBJECT_INVERSE_TRANSFORM, OBJECT_NONE, OBJECT_TRANSFORM, Ray::P, P(), Intersection::t, t, transform_direction(), transform_point(), UNLIKELY, and verts.
Referenced by motion_triangle_shader_setup().