|
Blender V4.3
|
#include "util/color.h"Go to the source code of this file.
| ccl_device float triangle_attribute_float | ( | KernelGlobals | kg, |
| ccl_private const ShaderData * | sd, | ||
| const AttributeDescriptor | desc, | ||
| ccl_private float * | dx, | ||
| ccl_private float * | dy ) |
Definition at line 153 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_data_fetch, AttributeDescriptor::offset, uint3::x, uint3::y, and uint3::z.
Referenced by primitive_surface_attribute_float().
| ccl_device float2 triangle_attribute_float2 | ( | KernelGlobals | kg, |
| ccl_private const ShaderData * | sd, | ||
| const AttributeDescriptor | desc, | ||
| ccl_private float2 * | dx, | ||
| ccl_private float2 * | dy ) |
Definition at line 204 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_data_fetch, make_float2(), AttributeDescriptor::offset, uint3::x, uint3::y, and uint3::z.
Referenced by primitive_surface_attribute_float2().
| ccl_device float3 triangle_attribute_float3 | ( | KernelGlobals | kg, |
| ccl_private const ShaderData * | sd, | ||
| const AttributeDescriptor | desc, | ||
| ccl_private float3 * | dx, | ||
| ccl_private float3 * | dy ) |
Definition at line 255 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_data_fetch, make_float3(), AttributeDescriptor::offset, uint3::x, uint3::y, and uint3::z.
Referenced by primitive_motion_vector(), and primitive_surface_attribute_float3().
| ccl_device float4 triangle_attribute_float4 | ( | KernelGlobals | kg, |
| ccl_private const ShaderData * | sd, | ||
| const AttributeDescriptor | desc, | ||
| ccl_private float4 * | dx, | ||
| ccl_private float4 * | dy ) |
Definition at line 306 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_data_fetch, AttributeDescriptor::offset, uint3::x, uint3::y, uint3::z, and zero_float4().
Referenced by primitive_surface_attribute_float4().
| ccl_device_inline void triangle_dPdudv | ( | KernelGlobals | kg, |
| int | prim, | ||
| ccl_private float3 * | dPdu, | ||
| ccl_private float3 * | dPdv ) |
Definition at line 135 of file geom/triangle.h.
References kernel_data_fetch, uint3::x, uint3::y, and uint3::z.
Referenced by integrator_init_from_bake(), shader_setup_from_sample(), and triangle_shader_setup().
| CCL_NAMESPACE_BEGIN ccl_device_inline float3 triangle_normal | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd ) |
Definition at line 18 of file geom/triangle.h.
References cross(), kernel_data_fetch, normalize(), object_negative_scale_applied(), v2, uint3::x, uint3::y, and uint3::z.
Referenced by GIM_TRIANGLE::get_edge_plane(), GIM_TRIANGLE::ray_collision(), GIM_TRIANGLE::ray_collision_front_side(), and triangle_shader_setup().
| ccl_device_inline void triangle_point_normal | ( | KernelGlobals | kg, |
| int | object, | ||
| int | prim, | ||
| float | u, | ||
| float | v, | ||
| ccl_private float3 * | P, | ||
| ccl_private float3 * | Ng, | ||
| ccl_private int * | shader ) |
Definition at line 36 of file geom/triangle.h.
References cross(), kernel_data_fetch, normalize(), object_negative_scale_applied(), P, v, v2, w(), uint3::x, uint3::y, and uint3::z.
Referenced by integrator_init_from_bake(), and shader_setup_from_displace().
| ccl_device_inline float3 triangle_smooth_normal | ( | KernelGlobals | kg, |
| float3 | Ng, | ||
| int | prim, | ||
| float | u, | ||
| float | v ) |
Definition at line 97 of file geom/triangle.h.
References is_zero(), kernel_data_fetch, N, safe_normalize(), v, uint3::x, uint3::y, and uint3::z.
Referenced by integrator_init_from_bake(), shader_setup_from_sample(), and triangle_shader_setup().
| ccl_device_inline float3 triangle_smooth_normal_unnormalized | ( | KernelGlobals | kg, |
| ccl_private const ShaderData * | sd, | ||
| float3 | Ng, | ||
| int | prim, | ||
| float | u, | ||
| float | v ) |
Definition at line 111 of file geom/triangle.h.
References is_zero(), kernel_data_fetch, N, object_inverse_normal_transform(), SD_OBJECT_TRANSFORM_APPLIED, v, uint3::x, uint3::y, and uint3::z.
Referenced by get_object_standard_attribute(), OSLRenderServices::get_object_standard_attribute(), and svm_node_normal_map().
| ccl_device_inline void triangle_vertices | ( | KernelGlobals | kg, |
| int | prim, | ||
| float3 | P[3] ) |
Definition at line 69 of file geom/triangle.h.
References kernel_data_fetch, P, uint3::x, uint3::y, and uint3::z.
Referenced by bake_offset_towards_center(), compute_emitter_centroid_and_dir(), OSLRenderServices::get_object_standard_attribute(), integrate_surface_ray_offset(), triangle_light_tree_parameters(), triangle_world_space_vertices(), and wireframe().
| ccl_device_inline void triangle_vertices_and_normals | ( | KernelGlobals | kg, |
| int | prim, | ||
| float3 | P[3], | ||
| float3 | N[3] ) |
Definition at line 79 of file geom/triangle.h.
References kernel_data_fetch, N, P, uint3::x, uint3::y, and uint3::z.
Referenced by shadow_ray_smooth_surface_offset().