Blender
V3.3
|
#include "kernel/bvh/util.h"
Go to the source code of this file.
Functions | |
CCL_NAMESPACE_BEGIN ccl_device_inline void | motion_triangle_verts_for_step (KernelGlobals kg, uint4 tri_vindex, int offset, int numverts, int numsteps, int step, float3 verts[3]) |
ccl_device_inline void | motion_triangle_normals_for_step (KernelGlobals kg, uint4 tri_vindex, int offset, int numverts, int numsteps, int step, float3 normals[3]) |
ccl_device_inline void | motion_triangle_vertices (KernelGlobals kg, int object, int prim, float time, float3 verts[3]) |
ccl_device_inline void | motion_triangle_vertices_and_normals (KernelGlobals kg, int object, int prim, float time, float3 verts[3], float3 normals[3]) |
ccl_device_inline float3 | motion_triangle_smooth_normal (KernelGlobals kg, float3 Ng, int object, int prim, float u, float v, float time) |
ccl_device_inline void motion_triangle_normals_for_step | ( | KernelGlobals | kg, |
uint4 | tri_vindex, | ||
int | offset, | ||
int | numverts, | ||
int | numsteps, | ||
int | step, | ||
float3 | normals[3] | ||
) |
Definition at line 50 of file motion_triangle.h.
References kernel_data_fetch, normals, offset, uint4::x, uint4::y, and uint4::z.
Referenced by motion_triangle_shader_setup(), motion_triangle_smooth_normal(), and motion_triangle_vertices_and_normals().
ccl_device_inline float3 motion_triangle_smooth_normal | ( | KernelGlobals | kg, |
float3 | Ng, | ||
int | object, | ||
int | prim, | ||
float | u, | ||
float | v, | ||
float | time | ||
) |
Definition at line 152 of file motion_triangle.h.
References ATTR_STD_MOTION_VERTEX_NORMAL, ATTR_STD_NOT_FOUND, intersection_find_attribute(), blender::math::is_zero(), kernel_assert, kernel_data_fetch, min, motion_triangle_normals_for_step(), N, normals, NULL, object_motion_info(), offset, safe_normalize(), t, time, v, and w().
ccl_device_inline void motion_triangle_vertices | ( | KernelGlobals | kg, |
int | object, | ||
int | prim, | ||
float | time, | ||
float3 | verts[3] | ||
) |
Definition at line 77 of file motion_triangle.h.
References ATTR_STD_MOTION_VERTEX_POSITION, ATTR_STD_NOT_FOUND, intersection_find_attribute(), kernel_assert, kernel_data_fetch, min, motion_triangle_verts_for_step(), NULL, object_motion_info(), offset, t, time, and verts.
Referenced by OSLRenderServices::get_object_standard_attribute(), motion_triangle_intersect(), triangle_world_space_vertices(), and wireframe().
ccl_device_inline void motion_triangle_vertices_and_normals | ( | KernelGlobals | kg, |
int | object, | ||
int | prim, | ||
float | time, | ||
float3 | verts[3], | ||
float3 | normals[3] | ||
) |
Definition at line 106 of file motion_triangle.h.
References ATTR_STD_MOTION_VERTEX_NORMAL, ATTR_STD_MOTION_VERTEX_POSITION, ATTR_STD_NOT_FOUND, intersection_find_attribute(), kernel_assert, kernel_data_fetch, min, motion_triangle_normals_for_step(), motion_triangle_verts_for_step(), normals, NULL, object_motion_info(), offset, t, time, and verts.
Referenced by shadow_ray_smooth_surface_offset().
CCL_NAMESPACE_BEGIN ccl_device_inline void motion_triangle_verts_for_step | ( | KernelGlobals | kg, |
uint4 | tri_vindex, | ||
int | offset, | ||
int | numverts, | ||
int | numsteps, | ||
int | step, | ||
float3 | verts[3] | ||
) |
Definition at line 23 of file motion_triangle.h.
References kernel_data_fetch, offset, verts, uint4::w, uint4::x, uint4::y, and uint4::z.
Referenced by motion_triangle_shader_setup(), motion_triangle_vertices(), and motion_triangle_vertices_and_normals().