|
Blender V4.3
|
#include "kernel/camera/projection.h"#include "kernel/sample/mapping.h"#include "kernel/util/differential.h"#include "kernel/util/lookup_table.h"Go to the source code of this file.
| ccl_device_inline float3 camera_direction_from_point | ( | KernelGlobals | kg, |
| float3 | P ) |
Definition at line 444 of file kernel/camera/camera.h.
References CAMERA_ORTHOGRAPHIC, kernel_data, make_float3(), normalize(), P, Transform::x, Transform::y, and Transform::z.
Referenced by integrator_init_from_bake().
| ccl_device_inline float camera_distance | ( | KernelGlobals | kg, |
| float3 | P ) |
Definition at line 417 of file kernel/camera/camera.h.
References CAMERA_ORTHOGRAPHIC, dot(), fabsf, kernel_data, len, make_float3(), P, Transform::x, Transform::y, and Transform::z.
Referenced by film_write_data_passes().
| ccl_device_inline float3 camera_panorama_direction | ( | ccl_constant KernelCamera * | cam, |
| float | x, | ||
| float | y ) |
Definition at line 230 of file kernel/camera/camera.h.
References make_float3(), panorama_to_direction(), transform_perspective(), float3::x, and float3::y.
Referenced by camera_sample_panorama().
| ccl_device_inline float3 camera_position | ( | KernelGlobals | kg | ) |
Definition at line 411 of file kernel/camera/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, | ||
| const float2 | filter_uv, | ||
| const float | time, | ||
| const float2 | lens_uv, | ||
| ccl_private Ray * | ray ) |
Definition at line 344 of file kernel/camera/camera.h.
References CAMERA_ORTHOGRAPHIC, CAMERA_PERSPECTIVE, camera_sample_orthographic(), camera_sample_panorama(), camera_sample_perspective(), ccl_global, FILTER_TABLE_SIZE, float, kernel_data, kernel_data_array, lookup_table_read(), make_float2(), SHUTTER_TABLE_SIZE, time, float2::x, and float2::y.
Referenced by blender::io::alembic::ABCCameraWriter::do_write(), and integrate_camera_sample().
| CCL_NAMESPACE_BEGIN ccl_device float2 camera_sample_aperture | ( | ccl_constant KernelCamera * | cam, |
| const float2 | rand ) |
Definition at line 16 of file kernel/camera/camera.h.
References regular_polygon_sample(), and sample_uniform_disk().
Referenced by camera_sample_orthographic(), camera_sample_panorama(), and camera_sample_perspective().
| ccl_device void camera_sample_orthographic | ( | KernelGlobals | kg, |
| const float2 | raster_xy, | ||
| const float2 | rand_lens, | ||
| ccl_private Ray * | ray ) |
Definition at line 167 of file kernel/camera/camera.h.
References camera_sample_aperture(), differential_make_compact(), differential_zero_compact(), differential3::dx, differential3::dy, float2_to_float3(), float4_to_float3(), kernel_data, kernel_data_array, make_float3(), normalize(), P, transform_direction(), transform_motion_array_interpolate(), transform_perspective(), and transform_point().
Referenced by camera_sample().
| ccl_device_inline void camera_sample_panorama | ( | ccl_constant KernelCamera * | cam, |
| ccl_global const DecomposedTransform * | cam_motion, | ||
| const float2 | raster, | ||
| const float2 | rand_lens, | ||
| ccl_private Ray * | ray ) |
Definition at line 239 of file kernel/camera/camera.h.
References camera_panorama_direction(), camera_sample_aperture(), cross(), D, differential_make_compact(), differential_zero_compact(), differential3::dx, differential3::dy, is_zero(), make_float3(), normalize(), P, spherical_stereo_transform(), transform_direction(), transform_motion_array_interpolate(), transform_point(), U, V, float2::x, float3::x, float2::y, and zero_float3().
Referenced by camera_sample(), and Camera::world_to_raster_size().
| ccl_device void camera_sample_perspective | ( | KernelGlobals | kg, |
| const float2 | raster_xy, | ||
| const float2 | rand_lens, | ||
| ccl_private Ray * | ray ) |
Definition at line 37 of file kernel/camera/camera.h.
References camera_sample_aperture(), D, differential_make_compact(), differential_zero_compact(), differential3::dx, differential3::dy, float2_to_float3(), float4_to_float3(), interp(), kernel_data, kernel_data_array, make_float3(), normalize(), P, spherical_stereo_transform(), transform_direction(), transform_motion_array_interpolate(), transform_perspective(), transform_point(), float3::x, float3::y, and zero_float3().
Referenced by camera_sample().
| ccl_device_inline float3 camera_world_to_ndc | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd, | ||
| float3 | P ) |
Definition at line 458 of file kernel/camera/camera.h.
References CAMERA_PANORAMA, CAMERA_PERSPECTIVE, camera_position(), direction_to_panorama(), kernel_data, 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 431 of file kernel/camera/camera.h.
References CAMERA_PANORAMA, kernel_data, len, make_float3(), P, transform_point(), Transform::x, Transform::y, float3::z, and Transform::z.
Referenced by film_write_data_passes().