|
Blender V5.0
|
Go to the source code of this file.
| ccl_device float3 central_cylindrical_to_direction | ( | const float | u, |
| const float | v, | ||
| const float4 | range ) |
Definition at line 59 of file cycles/kernel/camera/projection.h.
References ccl_device, cosf, make_float3(), mix, sinf, v, float4::w, float4::x, float4::y, float4::z, and z().
Referenced by panorama_to_direction().
| ccl_device float2 direction_to_central_cylindrical | ( | const float3 | dir, |
| const float4 | range ) |
Definition at line 50 of file cycles/kernel/camera/projection.h.
References atan2f, ccl_device, inverse_lerp(), len, make_float2, v, float4::w, float3::x, float4::x, float3::y, float4::y, float3::z, float4::z, and z().
Referenced by direction_to_panorama().
| ccl_device float2 direction_to_equiangular_cubemap_face | ( | const float3 | dir | ) |
Definition at line 247 of file cycles/kernel/camera/projection.h.
References atan2f, ccl_device, M_PI_F, make_float2, v, float3::x, float3::y, and float3::z.
Referenced by direction_to_panorama(), and EquiangularCubemapFace::direction_to_sensor().
| ccl_device float2 direction_to_equirectangular | ( | const float3 | dir | ) |
Definition at line 40 of file cycles/kernel/camera/projection.h.
References ccl_device, direction_to_equirectangular_range(), M_2PI_F, M_PI_F, and make_float4.
Referenced by background_map_pdf(), Equirectangular::direction_to_sensor(), and svm_node_tex_environment().
| CCL_NAMESPACE_BEGIN ccl_device float2 direction_to_equirectangular_range | ( | const float3 | dir, |
| const float4 | range ) |
Definition at line 19 of file cycles/kernel/camera/projection.h.
References acosf, atan2f, ccl_device, is_zero(), len, make_float2, v, float4::w, float3::x, float4::x, float3::y, float4::y, float3::z, float4::z, and zero_float2().
Referenced by direction_to_equirectangular(), and direction_to_panorama().
| ccl_device float2 direction_to_fisheye_equidistant | ( | const float3 | dir, |
| const float | fov ) |
Definition at line 83 of file cycles/kernel/camera/projection.h.
References atan2f, ccl_device, len, make_float2, safe_normalize(), float2::x, float3::x, float2::y, float3::y, and float3::z.
Referenced by direction_to_panorama(), and FisheyeEquidistant::direction_to_sensor().
| ccl_device float2 direction_to_fisheye_equisolid | ( | const float3 | dir, |
| const float | lens, | ||
| const float | width, | ||
| const float | height ) |
Definition at line 106 of file cycles/kernel/camera/projection.h.
References ccl_device, make_float2, safe_acosf(), safe_normalize(), sinf, float2::x, float3::x, float2::y, float3::y, and float3::z.
Referenced by direction_to_panorama(), and FisheyeEquisolid::direction_to_sensor().
| ccl_device float2 direction_to_fisheye_lens_polynomial | ( | float3 | dir, |
| const float | coeff0, | ||
| const float4 | coeffs, | ||
| const float | width, | ||
| const float | height ) |
Definition at line 159 of file cycles/kernel/camera/projection.h.
References ccl_device, dot(), fabsf, i, make_float2, make_float4, safe_acosf(), safe_normalize(), float2::x, float3::x, float4::x, float2::y, float3::y, and float3::z.
Referenced by direction_to_panorama(), TEST(), and TEST().
| ccl_device float2 direction_to_mirrorball | ( | float3 | dir | ) |
Definition at line 221 of file cycles/kernel/camera/projection.h.
References ccl_device, make_float2, max, sqrtf, v, float3::x, float3::y, and float3::z.
Referenced by direction_to_panorama(), MirrorBall::direction_to_sensor(), and svm_node_tex_environment().
| ccl_device_inline float2 direction_to_panorama | ( | ccl_constant KernelCamera * | cam, |
| const float3 | dir ) |
Definition at line 285 of file cycles/kernel/camera/projection.h.
References ccl_constant, ccl_device_inline, direction_to_central_cylindrical(), direction_to_equiangular_cubemap_face(), direction_to_equirectangular_range(), direction_to_fisheye_equidistant(), direction_to_fisheye_equisolid(), direction_to_fisheye_lens_polynomial(), direction_to_mirrorball(), PANORAMA_CENTRAL_CYLINDRICAL, PANORAMA_EQUIANGULAR_CUBEMAP_FACE, PANORAMA_EQUIRECTANGULAR, PANORAMA_FISHEYE_EQUIDISTANT, PANORAMA_FISHEYE_EQUISOLID, PANORAMA_FISHEYE_LENS_POLYNOMIAL, and PANORAMA_MIRRORBALL.
Referenced by camera_world_to_ndc(), primitive_motion_vector(), and Camera::world_to_raster_size().
| ccl_device float3 equiangular_cubemap_face_to_direction | ( | float | u, |
| float | v ) |
Definition at line 239 of file cycles/kernel/camera/projection.h.
References ccl_device, M_PI_2_F, make_float3(), normalize, tanf, and v.
Referenced by panorama_to_direction(), and EquiangularCubemapFace::sensor_to_direction().
| ccl_device float3 equirectangular_range_to_direction | ( | const float | u, |
| const float | v, | ||
| const float4 | range ) |
Definition at line 31 of file cycles/kernel/camera/projection.h.
References ccl_device, spherical_to_direction(), v, float4::w, float4::x, float4::y, and float4::z.
Referenced by equirectangular_to_direction(), and panorama_to_direction().
| ccl_device float3 equirectangular_to_direction | ( | const float | u, |
| const float | v ) |
Definition at line 45 of file cycles/kernel/camera/projection.h.
References ccl_device, equirectangular_range_to_direction(), M_2PI_F, M_PI_F, make_float4, and v.
Referenced by background_map_sample(), kernel_background_evaluate(), and Equirectangular::sensor_to_direction().
| ccl_device float3 fisheye_equidistant_to_direction | ( | float | u, |
| float | v, | ||
| float | fov ) |
Definition at line 90 of file cycles/kernel/camera/projection.h.
References ccl_device, fisheye_to_direction(), sqrtf, v, and zero_float3().
Referenced by panorama_to_direction(), and FisheyeEquidistant::sensor_to_direction().
| ccl_device_inline float3 fisheye_equisolid_to_direction | ( | float | u, |
| float | v, | ||
| float | lens, | ||
| const float | fov, | ||
| const float | width, | ||
| const float | height ) |
Definition at line 118 of file cycles/kernel/camera/projection.h.
References asinf, ccl_device_inline, fisheye_to_direction(), sinf, sqrtf, v, and zero_float3().
Referenced by panorama_to_direction(), and FisheyeEquisolid::sensor_to_direction().
| ccl_device_inline float3 fisheye_lens_polynomial_to_direction | ( | float | u, |
| float | v, | ||
| float | coeff0, | ||
| const float4 | coeffs, | ||
| const float | fov, | ||
| const float | width, | ||
| const float | height ) |
Definition at line 136 of file cycles/kernel/camera/projection.h.
References ccl_device_inline, dot(), fabsf, fisheye_to_direction(), make_float4, sqrtf, v, and zero_float3().
Referenced by panorama_to_direction(), TEST(), TEST(), and TEST().
| ccl_device_inline float3 fisheye_to_direction | ( | const float | theta, |
| const float | u, | ||
| float | v, | ||
| const float | r ) |
Definition at line 70 of file cycles/kernel/camera/projection.h.
References ccl_device_inline, cosf, make_float3(), safe_acosf(), safe_divide(), sinf, and v.
Referenced by fisheye_equidistant_to_direction(), fisheye_equisolid_to_direction(), and fisheye_lens_polynomial_to_direction().
| ccl_device float3 mirrorball_to_direction | ( | const float | u, |
| const float | v ) |
Definition at line 201 of file cycles/kernel/camera/projection.h.
References ccl_device, dot(), I, make_float3(), max, sqrtf, v, float3::x, float3::y, float3::z, and zero_float3().
Referenced by panorama_to_direction(), and MirrorBall::sensor_to_direction().
| ccl_device_inline float3 panorama_to_direction | ( | ccl_constant KernelCamera * | cam, |
| const float | u, | ||
| float | v ) |
Definition at line 255 of file cycles/kernel/camera/projection.h.
References ccl_constant, ccl_device_inline, central_cylindrical_to_direction(), equiangular_cubemap_face_to_direction(), equirectangular_range_to_direction(), fisheye_equidistant_to_direction(), fisheye_equisolid_to_direction(), fisheye_lens_polynomial_to_direction(), mirrorball_to_direction(), PANORAMA_CENTRAL_CYLINDRICAL, PANORAMA_EQUIANGULAR_CUBEMAP_FACE, PANORAMA_EQUIRECTANGULAR, PANORAMA_FISHEYE_EQUIDISTANT, PANORAMA_FISHEYE_EQUISOLID, PANORAMA_FISHEYE_LENS_POLYNOMIAL, PANORAMA_MIRRORBALL, and v.
Referenced by camera_panorama_direction().
| ccl_device_inline void spherical_stereo_transform | ( | ccl_constant KernelCamera * | cam, |
| ccl_private float3 * | P, | ||
| ccl_private float3 * | D ) |
Definition at line 311 of file cycles/kernel/camera/projection.h.
References ccl_constant, ccl_device_inline, ccl_private, cosf, cross, D, fabsf, fade(), FLT_MAX, kernel_assert, M_PI_2_F, make_float3(), normalize, P, and safe_asinf().
Referenced by camera_sample_perspective(), and camera_sample_to_ray().