|
Blender
V2.93
|
Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device_inline bool | triangle_intersect (KernelGlobals *kg, Intersection *isect, float3 P, float3 dir, uint visibility, int object, int prim_addr) |
| ccl_device_inline float3 | triangle_refine (KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray) |
| ccl_device_inline float3 | triangle_refine_local (KernelGlobals *kg, ShaderData *sd, const Intersection *isect, const Ray *ray) |
| CCL_NAMESPACE_BEGIN ccl_device_inline bool triangle_intersect | ( | KernelGlobals * | kg, |
| Intersection * | isect, | ||
| float3 | P, | ||
| float3 | dir, | ||
| uint | visibility, | ||
| int | object, | ||
| int | prim_addr | ||
| ) |
Definition at line 25 of file geom_triangle_intersect.h.
References float4_to_float3(), kernel_tex_fetch, kg, Intersection::object, P(), Intersection::prim, PRIMITIVE_TRIANGLE, ray_triangle_intersect(), Intersection::t, t, Intersection::type, Intersection::u, Intersection::v, and v.
Referenced by BVH().
| ccl_device_inline float3 triangle_refine | ( | KernelGlobals * | kg, |
| ShaderData * | sd, | ||
| const Intersection * | isect, | ||
| const Ray * | ray | ||
| ) |
Definition at line 195 of file geom_triangle_intersect.h.
References cross(), Ray::D, D(), dot(), kernel_tex_fetch, kg, make_float3, normalize_len(), Intersection::object, object_fetch_transform(), OBJECT_INVERSE_TRANSFORM, OBJECT_NONE, OBJECT_TRANSFORM, Ray::P, P(), Intersection::prim, Intersection::t, t, transform_direction(), transform_point(), and UNLIKELY.
Referenced by shader_setup_from_ray(), and triangle_refine_local().
| ccl_device_inline float3 triangle_refine_local | ( | KernelGlobals * | kg, |
| ShaderData * | sd, | ||
| const Intersection * | isect, | ||
| const Ray * | ray | ||
| ) |
Definition at line 261 of file geom_triangle_intersect.h.
References cross(), Ray::D, D(), dot(), kernel_tex_fetch, kg, make_float3, normalize(), Intersection::object, object_fetch_transform(), OBJECT_INVERSE_TRANSFORM, OBJECT_NONE, OBJECT_TRANSFORM, Ray::P, P(), Intersection::prim, Intersection::t, t, transform_direction(), transform_point(), and triangle_refine().
Referenced by subsurface_scatter_disk().