Blender
V3.3
|
Go to the source code of this file.
Macros | |
#define | CURVE_SHADOW_TRANSPARENCY_CUTOFF 0.001f |
#define CURVE_SHADOW_TRANSPARENCY_CUTOFF 0.001f |
Definition at line 191 of file cycles/kernel/bvh/util.h.
ccl_device_inline float intersection_curve_shadow_transparency | ( | KernelGlobals | kg, |
const int | object, | ||
const int | prim, | ||
const int | type, | ||
const float | u | ||
) |
Definition at line 193 of file cycles/kernel/bvh/util.h.
References ATTR_STD_NOT_FOUND, ATTR_STD_SHADOW_TRANSPARENCY, curves, KernelCurve::first_key, intersection_find_attribute(), kernel_data_fetch, offset, PRIMITIVE_UNPACK_SEGMENT, and type.
Referenced by __anyhit__kernel_optix_shadow_all_hit(), BVH(), and kernel_embree_filter_occluded_func().
ccl_device_inline int intersection_find_attribute | ( | KernelGlobals | kg, |
const int | object, | ||
const uint | id | ||
) |
Definition at line 161 of file cycles/kernel/bvh/util.h.
References ATTR_ELEMENT_NONE, ATTR_PRIM_TYPES, ATTR_STD_NONE, ATTR_STD_NOT_FOUND, AttributeMap::element, AttributeMap::id, kernel_data_fetch, AttributeMap::offset, and UNLIKELY.
Referenced by intersection_curve_shadow_transparency(), motion_triangle_shader_setup(), motion_triangle_smooth_normal(), motion_triangle_vertices(), and motion_triangle_vertices_and_normals().
ccl_device_forceinline int intersection_get_object_flags | ( | KernelGlobals | kg, |
ccl_private const Intersection *ccl_restrict | isect | ||
) |
Definition at line 153 of file cycles/kernel/bvh/util.h.
References kernel_data_fetch.
Referenced by integrator_intersect_next_kernel(), and integrator_intersect_next_kernel_after_volume().
ccl_device_forceinline int intersection_get_shader | ( | KernelGlobals | kg, |
ccl_private const Intersection *ccl_restrict | isect | ||
) |
Definition at line 147 of file cycles/kernel/bvh/util.h.
References intersection_get_shader_from_isect_prim().
Referenced by integrator_intersect_next_kernel(), and integrator_intersect_next_kernel_after_volume().
ccl_device_forceinline int intersection_get_shader_flags | ( | KernelGlobals | kg, |
const int | prim, | ||
const int | type | ||
) |
Definition at line 101 of file cycles/kernel/bvh/util.h.
References curves, kernel_data_fetch, PRIMITIVE_CURVE, PRIMITIVE_POINT, PRIMITIVE_TRIANGLE, SHADER_MASK, blender::draw::image_engine::shaders, and type.
Referenced by __anyhit__kernel_optix_shadow_all_hit(), BVH(), and kernel_embree_filter_occluded_func().
ccl_device_forceinline int intersection_get_shader_from_isect_prim | ( | KernelGlobals | kg, |
const int | prim, | ||
const int | isect_type | ||
) |
Definition at line 124 of file cycles/kernel/bvh/util.h.
References curves, kernel_data_fetch, PRIMITIVE_CURVE, PRIMITIVE_POINT, PRIMITIVE_TRIANGLE, and SHADER_MASK.
Referenced by intersection_get_shader().
CCL_NAMESPACE_BEGIN ccl_device_inline bool intersection_ray_valid | ( | ccl_private const Ray * | ray | ) |
Definition at line 8 of file cycles/kernel/bvh/util.h.
References isfinite_safe(), and len_squared().
Referenced by scene_intersect().
ccl_device_inline bool intersection_skip_self | ( | ccl_private const RaySelfPrimitives & | self, |
const int | object, | ||
const int | prim | ||
) |
Definition at line 214 of file cycles/kernel/bvh/util.h.
Referenced by __anyhit__kernel_optix_visibility_test(), __anyhit__kernel_optix_volume_test(), BVH(), and kernel_embree_filter_occluded_func().
ccl_device_inline bool intersection_skip_self_local | ( | ccl_private const RaySelfPrimitives & | self, |
const int | prim | ||
) |
Definition at line 229 of file cycles/kernel/bvh/util.h.
Referenced by __anyhit__kernel_optix_local_hit(), BVH(), and kernel_embree_filter_occluded_func().
ccl_device_inline bool intersection_skip_self_shadow | ( | ccl_private const RaySelfPrimitives & | self, |
const int | object, | ||
const int | prim | ||
) |
Definition at line 221 of file cycles/kernel/bvh/util.h.
Referenced by __anyhit__kernel_optix_shadow_all_hit(), __anyhit__kernel_optix_visibility_test(), BVH(), kernel_embree_filter_occluded_func(), and kernel_embree_is_self_intersection().
ccl_device_forceinline float intersection_t_offset | ( | const float | t | ) |
Definition at line 27 of file cycles/kernel/bvh/util.h.
References __float_as_uint(), __uint_as_float(), isfinite_safe(), kernel_assert, and t.
Referenced by integrate_light(), integrate_surface_bsdf_bssrdf_bounce(), integrator_volume_stack_init(), and integrator_volume_stack_update_for_subsurface().
ccl_device int intersections_compare | ( | const void * | a, |
const void * | b | ||
) |
Definition at line 61 of file cycles/kernel/bvh/util.h.
References Freestyle::a, usdtokens::b(), and Intersection::t.
Referenced by integrator_volume_stack_init(), and integrator_volume_stack_update_for_subsurface().
ccl_device_inline float3 ray_offset | ( | const float3 | P, |
const float3 | Ng | ||
) |
Definition at line 43 of file cycles/kernel/bvh/util.h.
References __float_as_int(), __int_as_float(), fabsf, make_float3, make_int3, P(), int3::x, float3::x, int3::y, float3::y, int3::z, and float3::z.
Referenced by integrate_surface_ray_offset().
ccl_device_inline void sort_intersections_and_normals | ( | ccl_private Intersection * | hits, |
ccl_private float3 * | Ng, | ||
uint | num_hits | ||
) |
Definition at line 77 of file cycles/kernel/bvh/util.h.
References t.
Referenced by subsurface_disk().