|
Blender V5.3
|
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 76 of file cycles/kernel/camera/projection.h.
References ccl_device, central_cylindrical_to_direction(), cosf, make_float3(), mix, sinf, float4::w, float4::x, float4::y, float4::z, and z().
Referenced by central_cylindrical_to_direction(), and panorama_to_direction().
| ccl_device float2 direction_to_central_cylindrical | ( | const float3 | dir, |
| const float4 | range ) |
Definition at line 67 of file cycles/kernel/camera/projection.h.
References atan2f, ccl_device, direction_to_central_cylindrical(), inverse_lerp(), len(), make_float2, float4::w, float3::x, float4::x, float3::y, float4::y, float3::z, float4::z, and z().
Referenced by direction_to_central_cylindrical(), and direction_to_panorama().
| ccl_device float2 direction_to_equiangular_cubemap_face | ( | const float3 | dir | ) |
Definition at line 277 of file cycles/kernel/camera/projection.h.
References atan2f, ccl_device, direction_to_equiangular_cubemap_face(), M_PI_F, make_float2, float3::x, float3::y, and float3::z.
Referenced by direction_to_equiangular_cubemap_face(), direction_to_panorama(), and EquiangularCubemapFace::direction_to_sensor().
| ccl_device dual2 direction_to_equirectangular | ( | const dual3 | dir | ) |
Definition at line 57 of file cycles/kernel/camera/projection.h.
References ccl_device, direction_to_equirectangular(), direction_to_equirectangular_range(), M_2PI_F, M_PI_F, and make_float4.
| ccl_device float2 direction_to_equirectangular | ( | const float3 | dir | ) |
Definition at line 52 of file cycles/kernel/camera/projection.h.
References ccl_device, direction_to_equirectangular(), direction_to_equirectangular_range(), M_2PI_F, M_PI_F, and make_float4.
Referenced by background_map_pdf(), direction_to_equirectangular(), direction_to_equirectangular(), Equirectangular::direction_to_sensor(), osl_shared_environment(), and svm_node_tex_environment_projection().
| ccl_device dual2 direction_to_equirectangular_range | ( | const dual3 | dir, |
| const float4 | range ) |
Definition at line 31 of file cycles/kernel/camera/projection.h.
References acos, atan2, ccl_device, direction_to_equirectangular_range(), is_zero(), len(), make_float2, make_zero(), float4::w, dual< float3 >::x(), float4::x, dual< float3 >::y(), float4::y, dual< float3 >::z(), and float4::z.
| 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, direction_to_equirectangular_range(), is_zero(), len(), make_float2, float4::w, float3::x, float4::x, float3::y, float4::y, float3::z, float4::z, and zero_float2().
Referenced by direction_to_equirectangular(), direction_to_equirectangular(), direction_to_equirectangular_range(), direction_to_equirectangular_range(), and direction_to_panorama().
| ccl_device float2 direction_to_fisheye_equidistant | ( | const float3 | dir, |
| const float | fov ) |
Definition at line 100 of file cycles/kernel/camera/projection.h.
References atan2f, ccl_device, direction_to_fisheye_equidistant(), len(), make_float2, safe_normalize(), float2::x, float3::x, float2::y, float3::y, and float3::z.
Referenced by direction_to_fisheye_equidistant(), 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 123 of file cycles/kernel/camera/projection.h.
References ccl_device, direction_to_fisheye_equisolid(), make_float2, safe_acosf(), safe_normalize(), sinf, float2::x, float3::x, float2::y, float3::y, and float3::z.
Referenced by direction_to_fisheye_equisolid(), direction_to_panorama(), and FisheyeEquisolid::direction_to_sensor().
| ccl_device dual2 direction_to_mirrorball | ( | dual3 | dir | ) |
Definition at line 254 of file cycles/kernel/camera/projection.h.
References ccl_device, direction_to_mirrorball(), inversesqrt(), make_float2, dual< float3 >::val, dual< float3 >::x(), dual< float3 >::y(), float3::y, and dual< float3 >::z().
| ccl_device float2 direction_to_mirrorball | ( | float3 | dir | ) |
Definition at line 238 of file cycles/kernel/camera/projection.h.
References ccl_device, direction_to_mirrorball(), make_float2, max, sqrtf, float3::x, float3::y, and float3::z.
Referenced by direction_to_mirrorball(), direction_to_mirrorball(), direction_to_panorama(), MirrorBall::direction_to_sensor(), and svm_node_tex_environment_projection().
| ccl_device_inline float2 direction_to_panorama | ( | ccl_constant KernelCamera * | cam, |
| const float3 | dir ) |
Definition at line 315 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_mirrorball(), direction_to_panorama(), 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_motion_vector(), camera_motion_vector_direction(), camera_world_to_ndc(), direction_to_panorama(), and Camera::world_to_raster_size().
| ccl_device float3 equiangular_cubemap_face_to_direction | ( | float | u, |
| float | v ) |
Definition at line 269 of file cycles/kernel/camera/projection.h.
References ccl_device, equiangular_cubemap_face_to_direction(), M_PI_2_F, make_float3(), normalize, and tanf.
Referenced by equiangular_cubemap_face_to_direction(), 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 43 of file cycles/kernel/camera/projection.h.
References ccl_device, equirectangular_range_to_direction(), spherical_to_direction(), float4::w, float4::x, float4::y, and float4::z.
Referenced by equirectangular_range_to_direction(), equirectangular_to_direction(), and panorama_to_direction().
| ccl_device float3 equirectangular_to_direction | ( | const float | u, |
| const float | v ) |
Definition at line 62 of file cycles/kernel/camera/projection.h.
References ccl_device, equirectangular_range_to_direction(), equirectangular_to_direction(), M_2PI_F, M_PI_F, and make_float4.
Referenced by background_map_sample(), equirectangular_to_direction(), kernel_background_evaluate(), and Equirectangular::sensor_to_direction().
| ccl_device float3 fisheye_equidistant_to_direction | ( | float | u, |
| float | v, | ||
| float | fov ) |
Definition at line 107 of file cycles/kernel/camera/projection.h.
References ccl_device, fisheye_equidistant_to_direction(), fisheye_to_direction(), sqrtf, and zero_float3().
Referenced by fisheye_equidistant_to_direction(), 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 135 of file cycles/kernel/camera/projection.h.
References asinf, ccl_device_inline, fisheye_equisolid_to_direction(), fisheye_to_direction(), sinf, sqrtf, and zero_float3().
Referenced by fisheye_equisolid_to_direction(), 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 153 of file cycles/kernel/camera/projection.h.
References ccl_device_inline, dot(), fabsf, fisheye_lens_polynomial_to_direction(), fisheye_to_direction(), make_float4, sqrtf, and zero_float3().
Referenced by fisheye_lens_polynomial_to_direction(), 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 87 of file cycles/kernel/camera/projection.h.
References ccl_device_inline, cosf, fisheye_to_direction(), make_float3(), safe_acosf(), safe_divide(), and sinf.
Referenced by fisheye_equidistant_to_direction(), fisheye_equisolid_to_direction(), fisheye_lens_polynomial_to_direction(), and fisheye_to_direction().
| ccl_device float3 mirrorball_to_direction | ( | const float | u, |
| const float | v ) |
Definition at line 218 of file cycles/kernel/camera/projection.h.
References ccl_device, dot(), I, make_float3(), max, mirrorball_to_direction(), sqrtf, float3::x, float3::y, float3::z, and zero_float3().
Referenced by mirrorball_to_direction(), 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 285 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 panorama_to_direction().
Referenced by camera_panorama_direction(), and panorama_to_direction().
| ccl_device_inline void spherical_stereo_transform | ( | ccl_constant KernelCamera * | cam, |
| ccl_private float3 * | P, | ||
| ccl_private float3 * | D ) |
Definition at line 341 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, safe_asinf(), and spherical_stereo_transform().
Referenced by camera_sample_perspective(), camera_sample_to_ray(), and spherical_stereo_transform().