Blender
V3.3
|
#include "kernel/sample/lcg.h"
Go to the source code of this file.
Functions | |
CCL_NAMESPACE_BEGIN ccl_device_inline bool | triangle_intersect (KernelGlobals kg, ccl_private Intersection *isect, float3 P, float3 dir, float tmin, float tmax, uint visibility, int object, int prim, int prim_addr) |
ccl_device_inline float3 | triangle_point_from_uv (KernelGlobals kg, ccl_private ShaderData *sd, const int isect_object, const int isect_prim, const float u, const float v) |
CCL_NAMESPACE_BEGIN ccl_device_inline bool triangle_intersect | ( | KernelGlobals | kg, |
ccl_private Intersection * | isect, | ||
float3 | P, | ||
float3 | dir, | ||
float | tmin, | ||
float | tmax, | ||
uint | visibility, | ||
int | object, | ||
int | prim, | ||
int | prim_addr | ||
) |
Definition at line 16 of file triangle_intersect.h.
References kernel_data_fetch, P(), PRIMITIVE_TRIANGLE, ray_triangle_intersect(), t, and v.
Referenced by BVH().
ccl_device_inline float3 triangle_point_from_uv | ( | KernelGlobals | kg, |
ccl_private ShaderData * | sd, | ||
const int | isect_object, | ||
const int | isect_prim, | ||
const float | u, | ||
const float | v | ||
) |
Use the barycentric coordinates to get the intersection location
Definition at line 137 of file triangle_intersect.h.
References kernel_data_fetch, object_get_transform(), P(), SD_OBJECT_TRANSFORM_APPLIED, transform_point(), and v.
Referenced by shader_setup_from_ray().