|
Blender V5.0
|
#include "kernel/globals.h"#include "kernel/types.h"#include "kernel/geom/geom_intersect.h"#include "kernel/geom/motion_triangle.h"#include "kernel/geom/object.h"#include "util/math_intersect.h"Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device_inline float3 | motion_triangle_point_from_uv (KernelGlobals kg, ccl_private ShaderData *sd, const float u, const float v, const float3 verts[3]) |
| ccl_device_inline bool | motion_triangle_intersect (KernelGlobals kg, ccl_private Intersection *isect, const float3 P, const float3 dir, const float tmin, const float tmax, const float time, const uint visibility, const int object, const int prim, const int prim_addr) |
| ccl_device_inline bool motion_triangle_intersect | ( | KernelGlobals | kg, |
| ccl_private Intersection * | isect, | ||
| const float3 | P, | ||
| const float3 | dir, | ||
| const float | tmin, | ||
| const float | tmax, | ||
| const float | time, | ||
| const uint | visibility, | ||
| const int | object, | ||
| const int | prim, | ||
| const int | prim_addr ) |
Definition at line 53 of file motion_triangle_intersect.h.
References ccl_device_inline, ccl_private, kernel_data_fetch, motion_triangle_vertices(), P, PRIMITIVE_MOTION_TRIANGLE, ray_triangle_intersect(), v, and verts.
| CCL_NAMESPACE_BEGIN ccl_device_inline float3 motion_triangle_point_from_uv | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd, | ||
| const float | u, | ||
| const float | v, | ||
| const float3 | verts[3] ) |
Use the barycentric coordinates to get the intersection location
Definition at line 32 of file motion_triangle_intersect.h.
References ccl_device_inline, ccl_private, object_get_transform(), P, SD_OBJECT_TRANSFORM_APPLIED, transform_point(), v, and verts.
Referenced by mnee_setup_manifold_vertex(), and motion_triangle_shader_setup().