|
Blender V5.3
|
#include "kernel/camera/camera.h"#include "kernel/geom/motion_triangle.h"#include "kernel/geom/object.h"#include "kernel/geom/primitive.h"#include "kernel/svm/attribute.h"#include "kernel/svm/node_types.h"#include "kernel/svm/types.h"#include "kernel/svm/util.h"#include "util/math_base.h"Go to the source code of this file.
| ccl_device_noinline void svm_node_normal_map | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd, | ||
| ccl_private float *ccl_restrict | stack, | ||
| const ccl_global SVMNodeNormalMap &ccl_restrict | node ) |
Definition at line 229 of file tex_coord.h.
References ATTR_STD_NORMAL_UNDISPLACED, attribute_not_found(), B, ccl_device_noinline, ccl_global, ccl_private, ccl_restrict, cross, find_attribute(), is_attribute_found(), is_zero(), isfinite_safe(), make_float3(), max, mix, N, node, NODE_NORMAL_MAP_BLENDER_OBJECT, NODE_NORMAL_MAP_BLENDER_WORLD, NODE_NORMAL_MAP_OBJECT, NODE_NORMAL_MAP_TANGENT, object_inverse_normal_transform(), OBJECT_NONE, object_normal_transform(), primitive_surface_attribute(), PRIMITIVE_TRIANGLE, safe_normalize(), saturatef, SHADER_SMOOTH_NORMAL, sign(), SR_BACKFACING, stack_load(), stack_store_float3(), svm_node_normal_map(), to_global(), triangle_smooth_normal_unnormalized_object_space(), float3::x, float3::y, and float3::z.
Referenced by svm_eval_nodes(), and svm_node_normal_map().
| ccl_device_noinline void svm_node_tangent | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd, | ||
| ccl_private float * | stack, | ||
| const ccl_global SVMNodeTangent &ccl_restrict | node ) |
Definition at line 354 of file tex_coord.h.
References ccl_device_noinline, ccl_global, ccl_private, ccl_restrict, cross, find_attribute(), is_attribute_found(), is_dual_v, make_float3(), node, NODE_ATTR_FLOAT2, NODE_TANGENT_AXIS_X, NODE_TANGENT_AXIS_Y, NODE_TANGENT_UVMAP, normalize, object_normal_transform(), primitive_surface_attribute(), shading_position(), stack_store(), svm_node_tangent(), and AttributeDescriptor::type.
Referenced by svm_eval_nodes(), and svm_node_tangent().
| ccl_device_noinline int svm_node_tex_coord | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd, | ||
| const PathRayVisibility | path_visibility, | ||
| ccl_private float *ccl_restrict | stack, | ||
| const ccl_global SVMNodeTexCoord &ccl_restrict | node, | ||
| int | offset ) |
Definition at line 179 of file tex_coord.h.
References ccl_device_noinline, ccl_global, ccl_private, ccl_restrict, node, stack_store(), svm_node_tex_coord(), and svm_node_tex_coord_eval().
Referenced by svm_eval_nodes(), and svm_node_tex_coord().
| ccl_device_noinline int svm_node_tex_coord_derivative | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd, | ||
| const PathRayVisibility | path_visibility, | ||
| ccl_private float *ccl_restrict | stack, | ||
| const ccl_global SVMNodeTexCoord &ccl_restrict | node, | ||
| int | offset ) |
Definition at line 201 of file tex_coord.h.
References ccl_device_noinline, ccl_global, ccl_private, ccl_restrict, node, NODE_BUMP_OFFSET_DX, NODE_BUMP_OFFSET_DY, NODE_TEXCO_NORMAL, safe_normalize(), stack_store(), svm_node_tex_coord_derivative(), and svm_node_tex_coord_eval().
Referenced by svm_eval_nodes(), and svm_node_tex_coord_derivative().
| ccl_device_noinline Float3Type svm_node_tex_coord_eval | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd, | ||
| const PathRayVisibility | path_visibility, | ||
| const NodeTexCoord | type, | ||
| ccl_private int * | offset ) |
Definition at line 92 of file tex_coord.h.
References CAMERA_ORTHOGRAPHIC, camera_world_to_ndc(), ccl_device_noinline, ccl_private, is_dual_v, kernel_data, make_transform(), make_zero(), NODE_TEXCO_CAMERA, NODE_TEXCO_DUPLI_GENERATED, NODE_TEXCO_DUPLI_UV, NODE_TEXCO_NORMAL, NODE_TEXCO_OBJECT, NODE_TEXCO_OBJECT_WITH_TRANSFORM, NODE_TEXCO_REFLECTION, NODE_TEXCO_VOLUME_GENERATED, NODE_TEXCO_WINDOW, object_dupli_generated(), object_dupli_uv(), object_inverse_normal_transform(), object_inverse_position_transform_if_object(), OBJECT_NONE, P, PATH_RAY_VISIBILITY_CAMERA, shading_position(), svm_node_get(), svm_node_tex_coord_eval(), svm_texco_camera(), svm_texco_reflection(), svm_texco_smooth_normal(), and transform_point().
Referenced by svm_node_tex_coord(), svm_node_tex_coord_derivative(), and svm_node_tex_coord_eval().
| ccl_device_inline int svm_node_tex_coord_skip | ( | const ccl_global SVMNodeTexCoord &ccl_restrict | node, |
| int | offset ) |
Definition at line 192 of file tex_coord.h.
References ccl_device_inline, ccl_global, ccl_restrict, node, NODE_TEXCO_OBJECT_WITH_TRANSFORM, and svm_node_tex_coord_skip().
Referenced by svm_eval_nodes(), and svm_node_tex_coord_skip().
| ccl_device_inline Float3Type svm_texco_camera | ( | KernelGlobals | kg, |
| const ccl_private ShaderData * | sd, | ||
| const ccl_private Float3Type & | P ) |
Definition at line 78 of file tex_coord.h.
References camera_position(), ccl_device_inline, ccl_private, kernel_data, OBJECT_NONE, P, svm_texco_camera(), and transform_point().
Referenced by svm_node_tex_coord_eval(), and svm_texco_camera().
| ccl_device_inline Float3Type svm_texco_reflection | ( | const ccl_private ShaderData * | sd | ) |
Definition at line 68 of file tex_coord.h.
References ccl_device_inline, ccl_private, OBJECT_NONE, reflect, shading_incoming(), and svm_texco_reflection().
Referenced by svm_node_tex_coord_eval(), and svm_texco_reflection().
| CCL_NAMESPACE_BEGIN ccl_device_inline dual3 svm_texco_smooth_normal | ( | KernelGlobals | kg, |
| const ccl_private ShaderData * | sd ) |
Definition at line 24 of file tex_coord.h.
References ccl_device_inline, ccl_private, motion_triangle_smooth_normal(), N, object_inverse_normal_transform(), PRIMITIVE_TRIANGLE, SD_OBJECT_TRANSFORM_APPLIED, SHADER_SMOOTH_NORMAL, SR_BACKFACING, svm_texco_smooth_normal(), and triangle_smooth_normal().
Referenced by svm_node_tex_coord_eval(), and svm_texco_smooth_normal().