|
Blender
V2.93
|
Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device_inline int | find_attribute_motion (KernelGlobals *kg, int object, uint id, AttributeElement *elem) |
| 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 float3 | motion_triangle_smooth_normal (KernelGlobals *kg, float3 Ng, int object, int prim, float u, float v, float time) |
| CCL_NAMESPACE_BEGIN ccl_device_inline int find_attribute_motion | ( | KernelGlobals * | kg, |
| int | object, | ||
| uint | id, | ||
| AttributeElement * | elem | ||
| ) |
Definition at line 32 of file geom_motion_triangle.h.
References ATTR_ELEMENT_NONE, ATTR_PRIM_TYPES, ATTR_STD_NONE, ATTR_STD_NOT_FOUND, kernel_tex_fetch, kg, object_attribute_map_offset(), return(), UNLIKELY, uint4::x, uint4::y, and uint4::z.
Referenced by motion_triangle_shader_setup(), motion_triangle_smooth_normal(), and motion_triangle_vertices().
| 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 90 of file geom_motion_triangle.h.
References float4_to_float3(), kernel_tex_fetch, normals, uint4::x, uint4::y, and uint4::z.
Referenced by motion_triangle_shader_setup(), and motion_triangle_smooth_normal().
| 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 147 of file geom_motion_triangle.h.
References ATTR_STD_MOTION_VERTEX_NORMAL, ATTR_STD_NOT_FOUND, find_attribute_motion(), is_zero(), kernel_assert, kernel_tex_fetch, kg, min, motion_triangle_normals_for_step(), N, normals, NULL, object_motion_info(), 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 117 of file geom_motion_triangle.h.
References ATTR_STD_MOTION_VERTEX_POSITION, ATTR_STD_NOT_FOUND, find_attribute_motion(), kernel_assert, kernel_tex_fetch, kg, min, motion_triangle_verts_for_step(), NULL, object_motion_info(), t, time, and verts.
Referenced by OSLRenderServices::get_object_standard_attribute(), motion_triangle_intersect(), subsurface_scatter_disk(), triangle_world_space_vertices(), and wireframe().
| 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 63 of file geom_motion_triangle.h.
References float4_to_float3(), kernel_tex_fetch, verts, uint4::w, uint4::x, uint4::y, and uint4::z.
Referenced by motion_triangle_shader_setup(), and motion_triangle_vertices().