|
Blender
V2.93
|
Go to the source code of this file.
| ccl_device_inline float3 camera_direction_from_point | ( | KernelGlobals * | kg, |
| float3 | P | ||
| ) |
Definition at line 462 of file kernel_camera.h.
References CAMERA_ORTHOGRAPHIC, kernel_data, make_float3, normalize(), P(), Transform::x, Transform::y, and Transform::z.
| ccl_device_inline float camera_distance | ( | KernelGlobals * | kg, |
| float3 | P | ||
| ) |
Definition at line 435 of file kernel_camera.h.
References CAMERA_ORTHOGRAPHIC, dot(), fabsf, kernel_data, len, make_float3, P(), Transform::x, Transform::y, and Transform::z.
Referenced by kernel_write_data_passes().
| ccl_device_inline float3 camera_position | ( | KernelGlobals * | kg | ) |
Definition at line 429 of file kernel_camera.h.
References kernel_data, make_float3, Transform::x, Transform::y, and Transform::z.
Referenced by camera_world_to_ndc(), svm_node_tex_coord(), svm_node_tex_coord_bump_dx(), and svm_node_tex_coord_bump_dy().
| ccl_device_inline void camera_sample | ( | KernelGlobals * | kg, |
| int | x, | ||
| int | y, | ||
| float | filter_u, | ||
| float | filter_v, | ||
| float | lens_u, | ||
| float | lens_v, | ||
| float | time, | ||
| ccl_addr_space Ray * | ray | ||
| ) |
Definition at line 355 of file kernel_camera.h.
References CAMERA_ORTHOGRAPHIC, CAMERA_PERSPECTIVE, camera_sample_orthographic(), camera_sample_panorama(), camera_sample_perspective(), ccl_global, FILTER_TABLE_SIZE, float(), if(), kernel_data, kernel_tex_array, kg, lookup_table_read(), SHUTTER_TABLE_SIZE, time, x, and y.
Referenced by blender::io::alembic::ABCCameraWriter::do_write(), and kernel_path_trace_setup().
| CCL_NAMESPACE_BEGIN ccl_device float2 camera_sample_aperture | ( | ccl_constant KernelCamera * | cam, |
| float | u, | ||
| float | v | ||
| ) |
Definition at line 21 of file kernel_camera.h.
References concentric_sample_disk(), regular_polygon_sample(), v, and float2::x.
Referenced by camera_sample_orthographic(), camera_sample_panorama(), and camera_sample_perspective().
| ccl_device void camera_sample_orthographic | ( | KernelGlobals * | kg, |
| float | raster_x, | ||
| float | raster_y, | ||
| float | lens_u, | ||
| float | lens_v, | ||
| ccl_addr_space Ray * | ray | ||
| ) |
Definition at line 174 of file kernel_camera.h.
References camera_sample_aperture(), D(), differential3_zero(), float4_to_float3(), kernel_data, kernel_tex_array, make_float3, normalize(), P(), transform_direction(), transform_motion_array_interpolate(), transform_perspective(), transform_point(), float2::x, and float2::y.
Referenced by camera_sample().
| ccl_device_inline void camera_sample_panorama | ( | ccl_constant KernelCamera * | cam, |
| float | raster_x, | ||
| float | raster_y, | ||
| float | lens_u, | ||
| float | lens_v, | ||
| ccl_addr_space Ray * | ray | ||
| ) |
Definition at line 239 of file kernel_camera.h.
References camera_sample_aperture(), cross(), D(), is_zero(), make_float3, normalize(), P(), panorama_to_direction(), spherical_stereo_transform(), transform_direction(), transform_motion_array_interpolate(), transform_perspective(), transform_point(), U, V, float2::x, float3::x, float2::y, float3::y, and zero_float3().
Referenced by camera_sample(), and Camera::world_to_raster_size().
| ccl_device void camera_sample_perspective | ( | KernelGlobals * | kg, |
| float | raster_x, | ||
| float | raster_y, | ||
| float | lens_u, | ||
| float | lens_v, | ||
| ccl_addr_space Ray * | ray | ||
| ) |
Definition at line 42 of file kernel_camera.h.
References camera_sample_aperture(), D(), differential3_zero(), float4_to_float3(), interp(), kernel_data, kernel_tex_array, make_float3, normalize(), P(), spherical_stereo_transform(), transform_direction(), transform_motion_array_interpolate(), transform_perspective(), transform_point(), float2::x, float2::y, and zero_float3().
Referenced by camera_sample().
| ccl_device_inline float3 camera_world_to_ndc | ( | KernelGlobals * | kg, |
| ShaderData * | sd, | ||
| float3 | P | ||
| ) |
Definition at line 476 of file kernel_camera.h.
References CAMERA_PANORAMA, CAMERA_PERSPECTIVE, camera_position(), direction_to_panorama(), kernel_data, kg, make_float3, normalize(), OBJECT_NONE, P(), PRIM_NONE, transform_direction(), transform_perspective(), transform_point(), float2::x, and float2::y.
Referenced by OSLRenderServices::get_background_attribute(), svm_node_tex_coord(), svm_node_tex_coord_bump_dx(), and svm_node_tex_coord_bump_dy().
| ccl_device_inline float camera_z_depth | ( | KernelGlobals * | kg, |
| float3 | P | ||
| ) |
Definition at line 449 of file kernel_camera.h.
References CAMERA_PANORAMA, kernel_data, len, make_float3, P(), transform_point(), Transform::x, Transform::y, Transform::z, and float3::z.
Referenced by kernel_write_data_passes().