|
Blender V5.0
|
#include "kernel/globals.h"#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, |
| const float3 | P ) |
Definition at line 534 of file kernel/camera/camera.h.
References CAMERA_ORTHOGRAPHIC, ccl_device_inline, kernel_data, make_float3(), normalize, P, float4::w, Transform::x, Transform::y, float4::z, and Transform::z.
Referenced by integrator_init_from_bake().
| ccl_device_inline float camera_distance | ( | KernelGlobals | kg, |
| const float3 | P ) |
Definition at line 511 of file kernel/camera/camera.h.
References CAMERA_ORTHOGRAPHIC, ccl_device_inline, dot(), fabsf, kernel_data, len, make_float3(), P, float4::w, Transform::x, Transform::y, float4::z, and Transform::z.
Referenced by film_write_data_passes().
| ccl_device_inline float3 camera_panorama_direction | ( | ccl_constant KernelCamera * | cam, |
| const float | x, | ||
| const float | y ) |
Definition at line 355 of file kernel/camera/camera.h.
References ccl_constant, ccl_device_inline, make_float3(), panorama_to_direction(), transform_perspective(), float3::x, x, float3::y, and y.
Referenced by camera_sample_panorama().
| ccl_device_inline float3 camera_position | ( | KernelGlobals | kg | ) |
Definition at line 505 of file kernel/camera/camera.h.
References ccl_device_inline, kernel_data, make_float3(), float4::w, Transform::x, Transform::y, and Transform::z.
Referenced by camera_world_to_ndc(), and svm_texco_camera().
| ccl_device_inline Spectrum camera_sample | ( | KernelGlobals | kg, |
| const int | x, | ||
| const int | y, | ||
| const float2 | filter_uv, | ||
| const float | time, | ||
| const float2 | lens_uv, | ||
| ccl_private Ray * | ray ) |
Definition at line 432 of file kernel/camera/camera.h.
References CAMERA_CUSTOM, CAMERA_ORTHOGRAPHIC, CAMERA_PANORAMA, CAMERA_PERSPECTIVE, camera_sample_custom(), camera_sample_orthographic(), camera_sample_panorama(), camera_sample_perspective(), ccl_device_inline, ccl_global, ccl_private, FILTER_TABLE_SIZE, float, kernel_assert, kernel_data, kernel_data_array, lookup_table_read(), make_float2, SHUTTER_TABLE_SIZE, float2::x, x, float2::y, y, and zero_spectrum.
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 22 of file kernel/camera/camera.h.
References ccl_constant, ccl_device, regular_polygon_sample(), sample_uniform_disk(), and float2::x.
Referenced by camera_sample_orthographic(), camera_sample_panorama(), camera_sample_perspective(), get_camera_attribute(), and OSLRenderServices::get_camera_attribute().
| ccl_device_inline Spectrum camera_sample_custom | ( | KernelGlobals | kg, |
| ccl_constant KernelCamera * | cam, | ||
| const ccl_global DecomposedTransform * | cam_motion, | ||
| const float2 | raster, | ||
| const float2 | rand_lens, | ||
| ccl_private Ray * | ray ) |
Definition at line 306 of file kernel/camera/camera.h.
References __RAY_DIFFERENTIALS__, camera_sample_to_ray(), ccl_constant, ccl_device_inline, ccl_global, ccl_private, D, dPdx(), dPdy(), is_zero(), make_float3(), osl_eval_camera(), P, transform_perspective(), transform_perspective_direction(), float2::x, float2::y, and zero_spectrum.
Referenced by camera_sample(), and Camera::world_to_raster_size().
| ccl_device Spectrum camera_sample_orthographic | ( | KernelGlobals | kg, |
| const float2 | raster_xy, | ||
| const float2 | rand_lens, | ||
| ccl_private Ray * | ray ) |
Definition at line 176 of file kernel/camera/camera.h.
References camera_sample_aperture(), ccl_device, ccl_private, D, differential_make_compact(), differential_zero_compact(), differential3::dx, differential3::dy, kernel_data, kernel_data_array, make_float3(), normalize, one_spectrum, P, transform_direction(), transform_motion_array_interpolate(), transform_perspective(), and transform_point().
Referenced by camera_sample().
| ccl_device_inline Spectrum camera_sample_panorama | ( | ccl_constant KernelCamera * | cam, |
| const ccl_global DecomposedTransform * | cam_motion, | ||
| const float2 | raster, | ||
| const float2 | rand_lens, | ||
| ccl_private Ray * | ray ) |
Definition at line 364 of file kernel/camera/camera.h.
References __RAY_DIFFERENTIALS__, camera_panorama_direction(), camera_sample_aperture(), camera_sample_to_ray(), ccl_constant, ccl_device_inline, ccl_global, ccl_private, cross, D, is_zero(), make_float3(), normalize, one_spectrum, P, U, V, float2::x, float3::x, float2::y, zero_float3(), and zero_spectrum.
Referenced by camera_sample(), and Camera::world_to_raster_size().
| ccl_device Spectrum camera_sample_perspective | ( | KernelGlobals | kg, |
| const float2 | raster_xy, | ||
| const float2 | rand_lens, | ||
| ccl_private Ray * | ray ) |
Definition at line 43 of file kernel/camera/camera.h.
References camera_sample_aperture(), ccl_device, ccl_private, D, differential_make_compact(), differential_zero_compact(), differential3::dx, differential3::dy, interp(), kernel_data, kernel_data_array, make_float3(), normalize, one_spectrum, 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 void camera_sample_to_ray | ( | ccl_constant KernelCamera * | cam, |
| const ccl_global DecomposedTransform * | cam_motion, | ||
| float3 | P, | ||
| float3 | D, | ||
| ccl_private Ray * | ray ) |
Definition at line 241 of file kernel/camera/camera.h.
References __RAY_DIFFERENTIALS__, ccl_constant, ccl_device_inline, ccl_global, ccl_private, D, differential_make_compact(), differential_zero_compact(), differential3::dx, differential3::dy, normalize, P, spherical_stereo_transform(), transform_direction(), transform_motion_array_interpolate(), and transform_point().
Referenced by camera_sample_custom(), and camera_sample_panorama().
| ccl_device_inline float3 camera_world_to_ndc | ( | KernelGlobals | kg, |
| ccl_private ShaderData * | sd, | ||
| float3 | P ) |
Definition at line 546 of file kernel/camera/camera.h.
References CAMERA_ORTHOGRAPHIC, CAMERA_PANORAMA, CAMERA_PERSPECTIVE, camera_position(), ccl_device_inline, ccl_private, direction_to_panorama(), kernel_data, make_float3(), normalize, OBJECT_NONE, P, PRIM_NONE, transform_direction(), transform_perspective(), and transform_point().
Referenced by get_background_attribute(), 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, |
| const float3 | P ) |
Definition at line 523 of file kernel/camera/camera.h.
References CAMERA_ORTHOGRAPHIC, CAMERA_PERSPECTIVE, ccl_device_inline, kernel_data, len, make_float3(), P, transform_point(), float4::w, Transform::x, Transform::y, float3::z, and Transform::z.
Referenced by film_write_data_passes().