Blender
V3.3
|
Go to the source code of this file.
ccl_device float2 direction_to_equirectangular | ( | float3 | dir | ) |
Definition at line 50 of file cycles/kernel/camera/projection.h.
References direction_to_equirectangular_range(), M_2PI_F, M_PI_F, and make_float4.
Referenced by svm_node_tex_environment().
ccl_device float2 direction_to_equirectangular_range | ( | float3 | dir, |
float4 | range | ||
) |
Definition at line 31 of file cycles/kernel/camera/projection.h.
References acosf, atan2f, blender::math::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 62 of file cycles/kernel/camera/projection.h.
References atan2f, cosf, make_float2, r, sinf, sqrtf, v, float3::x, float3::y, and float3::z.
Referenced by direction_to_panorama().
ccl_device float2 direction_to_fisheye_equisolid | ( | float3 | dir, |
float | lens, | ||
float | width, | ||
float | height | ||
) |
Definition at line 92 of file cycles/kernel/camera/projection.h.
References atan2f, cosf, height, make_float2, r, safe_acosf(), sinf, v, width, float3::x, float3::y, and float3::z.
Referenced by direction_to_panorama().
ccl_device float2 direction_to_fisheye_lens_polynomial | ( | float3 | dir, |
float | coeff0, | ||
float4 | coeffs, | ||
float | width, | ||
float | height | ||
) |
Definition at line 147 of file cycles/kernel/camera/projection.h.
References atan2f, cosf, blender::math::dot(), height, make_float2, make_float4, r, safe_acosf(), sinf, v, width, float3::x, float3::y, and float3::z.
Referenced by direction_to_panorama().
ccl_device float2 direction_to_mirrorball | ( | float3 | dir | ) |
Definition at line 189 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(), and svm_node_tex_environment().
ccl_device_inline float2 direction_to_panorama | ( | ccl_constant KernelCamera * | cam, |
float3 | dir | ||
) |
Definition at line 228 of file cycles/kernel/camera/projection.h.
References direction_to_equirectangular_range(), direction_to_fisheye(), direction_to_fisheye_equisolid(), direction_to_fisheye_lens_polynomial(), direction_to_mirrorball(), 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 15 of file cycles/kernel/camera/projection.h.
References atan2f, make_float2, safe_acosf(), float3::x, float3::y, and float3::z.
Referenced by sky_radiance_hosek(), sky_radiance_nishita(), and sky_radiance_preetham().
ccl_device float3 equirectangular_range_to_direction | ( | float | u, |
float | v, | ||
float4 | range | ||
) |
Definition at line 42 of file cycles/kernel/camera/projection.h.
References cosf, make_float3, sinf, v, and float3::x.
Referenced by equirectangular_to_direction(), and panorama_to_direction().
ccl_device float3 equirectangular_to_direction | ( | float | u, |
float | v | ||
) |
Definition at line 55 of file cycles/kernel/camera/projection.h.
References equirectangular_range_to_direction(), M_2PI_F, M_PI_F, make_float4, and v.
Referenced by kernel_background_evaluate().
ccl_device_inline float3 fisheye_equisolid_to_direction | ( | float | u, |
float | v, | ||
float | lens, | ||
float | fov, | ||
float | width, | ||
float | height | ||
) |
Definition at line 105 of file cycles/kernel/camera/projection.h.
References asinf, cosf, height, make_float3, r, safe_acosf(), sinf, sqrtf, v, width, and zero_float3().
Referenced by panorama_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 125 of file cycles/kernel/camera/projection.h.
References cosf, blender::math::dot(), fabsf, height, make_float3, make_float4, r, safe_acosf(), sinf, sqrtf, v, width, and zero_float3().
Referenced by panorama_to_direction().
ccl_device float3 fisheye_to_direction | ( | float | u, |
float | v, | ||
float | fov | ||
) |
Definition at line 73 of file cycles/kernel/camera/projection.h.
References cosf, make_float3, r, safe_acosf(), sinf, sqrtf, v, and zero_float3().
Referenced by panorama_to_direction().
ccl_device float3 mirrorball_to_direction | ( | float | u, |
float | v | ||
) |
Definition at line 170 of file cycles/kernel/camera/projection.h.
References blender::math::dot(), I, make_float3, max, sqrtf, v, float3::x, float3::y, float3::z, and zero_float3().
Referenced by panorama_to_direction().
ccl_device_inline float3 panorama_to_direction | ( | ccl_constant KernelCamera * | cam, |
float | u, | ||
float | v | ||
) |
Definition at line 204 of file cycles/kernel/camera/projection.h.
References equirectangular_range_to_direction(), fisheye_equisolid_to_direction(), fisheye_lens_polynomial_to_direction(), fisheye_to_direction(), mirrorball_to_direction(), PANORAMA_EQUIRECTANGULAR, PANORAMA_FISHEYE_EQUIDISTANT, PANORAMA_FISHEYE_EQUISOLID, PANORAMA_FISHEYE_LENS_POLYNOMIAL, PANORAMA_MIRRORBALL, and v.
Referenced by camera_sample_panorama().
ccl_device_inline void spherical_stereo_transform | ( | ccl_constant KernelCamera * | cam, |
ccl_private float3 * | P, | ||
ccl_private float3 * | D | ||
) |
Definition at line 250 of file cycles/kernel/camera/projection.h.
References cosf, blender::math::cross(), D(), fabsf, fade(), kernel_assert, M_PI_2_F, make_float3, blender::math::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 23 of file cycles/kernel/camera/projection.h.
References cosf, make_float3, and sinf.