|
Blender
V2.93
|
Go to the source code of this file.
| ccl_device float triangle_attribute_float | ( | KernelGlobals * | kg, |
| const ShaderData * | sd, | ||
| const AttributeDescriptor | desc, | ||
| float * | dx, | ||
| float * | dy | ||
| ) |
Definition at line 114 of file geom_triangle.h.
References ATTR_ELEMENT_CORNER, ATTR_ELEMENT_FACE, ATTR_ELEMENT_MESH, ATTR_ELEMENT_OBJECT, ATTR_ELEMENT_VERTEX, ATTR_ELEMENT_VERTEX_MOTION, AttributeDescriptor::element, kernel_tex_fetch, AttributeDescriptor::offset, uint4::x, uint4::y, and uint4::z.
Referenced by primitive_surface_attribute_float().
| ccl_device float2 triangle_attribute_float2 | ( | KernelGlobals * | kg, |
| const ShaderData * | sd, | ||
| const AttributeDescriptor | desc, | ||
| float2 * | dx, | ||
| float2 * | dy | ||
| ) |
Definition at line 161 of file geom_triangle.h.
References ATTR_ELEMENT_CORNER, ATTR_ELEMENT_FACE, ATTR_ELEMENT_MESH, ATTR_ELEMENT_OBJECT, ATTR_ELEMENT_VERTEX, ATTR_ELEMENT_VERTEX_MOTION, AttributeDescriptor::element, kernel_tex_fetch, make_float2, AttributeDescriptor::offset, uint4::x, uint4::y, and uint4::z.
Referenced by primitive_surface_attribute_float2().
| ccl_device float3 triangle_attribute_float3 | ( | KernelGlobals * | kg, |
| const ShaderData * | sd, | ||
| const AttributeDescriptor | desc, | ||
| float3 * | dx, | ||
| float3 * | dy | ||
| ) |
Definition at line 211 of file geom_triangle.h.
References ATTR_ELEMENT_CORNER, ATTR_ELEMENT_FACE, ATTR_ELEMENT_MESH, ATTR_ELEMENT_OBJECT, ATTR_ELEMENT_VERTEX, ATTR_ELEMENT_VERTEX_MOTION, AttributeDescriptor::element, float4_to_float3(), kernel_tex_fetch, make_float3, AttributeDescriptor::offset, uint4::x, uint4::y, and uint4::z.
Referenced by primitive_surface_attribute_float3().
| ccl_device float4 triangle_attribute_float4 | ( | KernelGlobals * | kg, |
| const ShaderData * | sd, | ||
| const AttributeDescriptor | desc, | ||
| float4 * | dx, | ||
| float4 * | dy | ||
| ) |
Definition at line 261 of file geom_triangle.h.
References ATTR_ELEMENT_CORNER, ATTR_ELEMENT_CORNER_BYTE, ATTR_ELEMENT_FACE, ATTR_ELEMENT_MESH, ATTR_ELEMENT_OBJECT, ATTR_ELEMENT_VERTEX, ATTR_ELEMENT_VERTEX_MOTION, color_srgb_to_linear_v4(), color_uchar4_to_float4(), AttributeDescriptor::element, kernel_tex_fetch, make_float4, AttributeDescriptor::offset, uint4::x, uint4::y, and uint4::z.
Referenced by primitive_surface_attribute_float4().
| ccl_device_inline void triangle_dPdudv | ( | KernelGlobals * | kg, |
| int | prim, | ||
| ccl_addr_space float3 * | dPdu, | ||
| ccl_addr_space float3 * | dPdv | ||
| ) |
Definition at line 96 of file geom_triangle.h.
References float4_to_float3(), kernel_tex_fetch, and uint4::w.
Referenced by shader_setup_from_ray(), and shader_setup_from_sample().
| CCL_NAMESPACE_BEGIN ccl_device_inline float3 triangle_normal | ( | KernelGlobals * | kg, |
| ShaderData * | sd | ||
| ) |
Definition at line 26 of file geom_triangle.h.
References cross(), float4_to_float3(), kernel_tex_fetch, normalize(), SD_OBJECT_NEGATIVE_SCALE_APPLIED, v1, v2, and uint4::w.
Referenced by GIM_TRIANGLE::get_edge_plane(), GIM_TRIANGLE::ray_collision(), GIM_TRIANGLE::ray_collision_front_side(), and shader_setup_from_ray().
| ccl_device_inline void triangle_point_normal | ( | KernelGlobals * | kg, |
| int | object, | ||
| int | prim, | ||
| float | u, | ||
| float | v, | ||
| float3 * | P, | ||
| float3 * | Ng, | ||
| int * | shader | ||
| ) |
Definition at line 44 of file geom_triangle.h.
References cross(), float4_to_float3(), kernel_tex_fetch, normalize(), P(), SD_OBJECT_NEGATIVE_SCALE_APPLIED, shader(), t, v, v1, v2, and uint4::w.
Referenced by shader_setup_from_displace().
| ccl_device_inline float3 triangle_smooth_normal | ( | KernelGlobals * | kg, |
| float3 | Ng, | ||
| int | prim, | ||
| float | u, | ||
| float | v | ||
| ) |
Definition at line 81 of file geom_triangle.h.
References float4_to_float3(), is_zero(), kernel_tex_fetch, N, safe_normalize(), v, uint4::x, uint4::y, and uint4::z.
Referenced by shader_setup_from_ray(), and shader_setup_from_sample().
| ccl_device_inline void triangle_vertices | ( | KernelGlobals * | kg, |
| int | prim, | ||
| float3 | P[3] | ||
| ) |
Definition at line 70 of file geom_triangle.h.
References float4_to_float3(), kernel_tex_fetch, P(), and uint4::w.
Referenced by OSLRenderServices::get_object_standard_attribute(), triangle_world_space_vertices(), and wireframe().