|
Blender V4.3
|
Go to the source code of this file.
| ccl_device float3 central_cylindrical_to_direction | ( | float | u, |
| float | v, | ||
| float4 | range ) |
Definition at line 71 of file cycles/kernel/camera/projection.h.
References cosf, make_float3(), mix, sinf, v, and z().
Referenced by panorama_to_direction().
| ccl_device float2 direction_to_central_cylindrical | ( | float3 | dir, |
| float4 | range ) |
Definition at line 62 of file cycles/kernel/camera/projection.h.
References atan2f, inverse_lerp(), len, make_float2(), v, float3::x, float3::y, float3::z, and z().
Referenced by direction_to_panorama().
| ccl_device float2 direction_to_equiangular_cubemap_face | ( | float3 | dir | ) |
Definition at line 243 of file cycles/kernel/camera/projection.h.
References atan2f, 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 | ( | float3 | dir | ) |
Definition at line 52 of file cycles/kernel/camera/projection.h.
References 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_device float2 direction_to_equirectangular_range | ( | float3 | dir, |
| float4 | range ) |
Definition at line 33 of file cycles/kernel/camera/projection.h.
References acosf, atan2f, is_zero(), len, make_float2(), v, float3::x, float3::y, float3::z, and zero_float2().
Referenced by direction_to_equirectangular(), and direction_to_panorama().
| ccl_device float2 direction_to_fisheye | ( | float3 | dir, |
| float | fov ) |
Definition at line 80 of file cycles/kernel/camera/projection.h.
References atan2f, 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 | ( | float3 | dir, |
| float | lens, | ||
| float | width, | ||
| float | height ) |
Definition at line 106 of file cycles/kernel/camera/projection.h.
References 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, |
| float | coeff0, | ||
| float4 | coeffs, | ||
| float | width, | ||
| float | height ) |
Definition at line 158 of file cycles/kernel/camera/projection.h.
References dot(), fabsf, make_float2(), make_float4(), safe_acosf(), safe_normalize(), float2::x, float3::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 218 of file cycles/kernel/camera/projection.h.
References 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, |
| float3 | dir ) |
Definition at line 279 of file cycles/kernel/camera/projection.h.
References direction_to_central_cylindrical(), direction_to_equiangular_cubemap_face(), direction_to_equirectangular_range(), direction_to_fisheye(), 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_NAMESPACE_BEGIN ccl_device float2 direction_to_spherical | ( | float3 | dir | ) |
Definition at line 17 of file cycles/kernel/camera/projection.h.
References atan2f, make_float2(), safe_acosf(), float3::x, float3::y, and float3::z.
Referenced by Spherical::direction_to_sensor(), sky_radiance_hosek(), sky_radiance_nishita(), and sky_radiance_preetham().
| ccl_device float3 equiangular_cubemap_face_to_direction | ( | float | u, |
| float | v ) |
Definition at line 235 of file cycles/kernel/camera/projection.h.
References 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 | ( | float | u, |
| float | v, | ||
| float4 | range ) |
Definition at line 44 of file cycles/kernel/camera/projection.h.
References cosf, make_float3(), sin_theta(), sinf, and v.
Referenced by equirectangular_to_direction(), and panorama_to_direction().
| ccl_device float3 equirectangular_to_direction | ( | float | u, |
| float | v ) |
Definition at line 57 of file cycles/kernel/camera/projection.h.
References 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_inline float3 fisheye_equisolid_to_direction | ( | float | u, |
| float | v, | ||
| float | lens, | ||
| float | fov, | ||
| float | width, | ||
| float | height ) |
Definition at line 116 of file cycles/kernel/camera/projection.h.
References asinf, cosf, make_float3(), safe_acosf(), 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, | ||
| float4 | coeffs, | ||
| float | fov, | ||
| float | width, | ||
| float | height ) |
Definition at line 136 of file cycles/kernel/camera/projection.h.
References cosf, dot(), fabsf, make_float3(), make_float4(), safe_acosf(), sinf, sqrtf, v, and zero_float3().
Referenced by panorama_to_direction(), TEST(), TEST(), and TEST().
| ccl_device float3 fisheye_to_direction | ( | float | u, |
| float | v, | ||
| float | fov ) |
Definition at line 87 of file cycles/kernel/camera/projection.h.
References cosf, make_float3(), safe_acosf(), sinf, sqrtf, v, and zero_float3().
Referenced by panorama_to_direction(), and FisheyeEquidistant::sensor_to_direction().
| ccl_device float3 mirrorball_to_direction | ( | float | u, |
| float | v ) |
Definition at line 199 of file cycles/kernel/camera/projection.h.
References 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, |
| float | u, | ||
| float | v ) |
Definition at line 251 of file cycles/kernel/camera/projection.h.
References central_cylindrical_to_direction(), equiangular_cubemap_face_to_direction(), equirectangular_range_to_direction(), fisheye_equisolid_to_direction(), fisheye_lens_polynomial_to_direction(), fisheye_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 305 of file cycles/kernel/camera/projection.h.
References cosf, cross(), fabsf, fade(), FLT_MAX, kernel_assert, M_PI_2_F, make_float3(), normalize(), P, and safe_asinf().
Referenced by camera_sample_panorama(), and camera_sample_perspective().
| ccl_device float3 spherical_to_direction | ( | float | theta, |
| float | phi ) |
Definition at line 25 of file cycles/kernel/camera/projection.h.
References cosf, make_float3(), sin_theta(), and sinf.
Referenced by Spherical::sensor_to_direction().