|
Blender V5.3
|
Go to the source code of this file.
Classes | |
| struct | ProjectionTransform |
| struct | PerspectiveMotionTransform |
| CCL_NAMESPACE_BEGIN ccl_device float2 direction_to_spherical | ( | const float3 | dir | ) |
Definition at line 11 of file cycles/util/projection.h.
References atan2f, ccl_device, direction_to_spherical(), make_float2, safe_acosf(), float3::x, float3::y, and float3::z.
Referenced by Spherical::direction_to_sensor(), direction_to_spherical(), sky_radiance_hosek(), sky_radiance_nishita(), and sky_radiance_preetham().
| ccl_device_inline float3 disk_to_hemisphere | ( | const float2 | p | ) |
Definition at line 35 of file cycles/util/projection.h.
References ccl_device_inline, disk_to_hemisphere(), len_squared(), make_float3(), safe_sqrtf(), float2::x, and float2::y.
Referenced by disk_to_hemisphere(), and microfacet_ggx_sample_vndf().
| ccl_device_inline ProjectionTransform make_projection | ( | const float | a, |
| const float | b, | ||
| const float | c, | ||
| const float | d, | ||
| const float | e, | ||
| const float | f, | ||
| const float | g, | ||
| const float | h, | ||
| const float | i, | ||
| const float | j, | ||
| const float | k, | ||
| const float | l, | ||
| const float | m, | ||
| const float | n, | ||
| const float | o, | ||
| const float | p ) |
Definition at line 115 of file cycles/util/projection.h.
References b, ccl_device_inline, make_projection(), float4::w, ProjectionTransform::w, float4::x, ProjectionTransform::x, float4::y, ProjectionTransform::y, float4::z, and ProjectionTransform::z.
Referenced by make_projection(), projection_identity(), and projection_perspective().
| ccl_device_inline ProjectionTransform operator* | ( | const ProjectionTransform & | a, |
| const Transform & | b ) |
Definition at line 242 of file cycles/util/projection.h.
References b, ccl_device_inline, operator*(), and ProjectionTransform::ProjectionTransform().
| ccl_device_inline ProjectionTransform operator* | ( | const ProjectionTransform | a, |
| const ProjectionTransform | b ) |
Definition at line 225 of file cycles/util/projection.h.
References b, ccl_device_inline, dot(), make_float4, operator*(), projection_transpose(), ProjectionTransform::w, ProjectionTransform::x, ProjectionTransform::y, and ProjectionTransform::z.
| ccl_device_inline ProjectionTransform operator* | ( | const Transform & | a, |
| const ProjectionTransform & | b ) |
Definition at line 247 of file cycles/util/projection.h.
References b, ccl_device_inline, operator*(), and ProjectionTransform::ProjectionTransform().
| ccl_device_inline float2 polar_to_cartesian | ( | const float | r, |
| const float | phi ) |
Definition at line 30 of file cycles/util/projection.h.
References ccl_device_inline, cosf, make_float2, polar_to_cartesian(), and sinf.
Referenced by compute_2d_gabor_kernel(), compute_3d_gabor_kernel(), microfacet_beckmann_sample_vndf(), polar_to_cartesian(), sample_uniform_disk(), and sample_uniform_sphere().
| ccl_device_inline void print_projection | ( | const char * | label, |
| const ProjectionTransform & | t ) |
Definition at line 252 of file cycles/util/projection.h.
References ccl_device_inline, print_float4(), print_projection(), printf, ProjectionTransform::w, ProjectionTransform::x, ProjectionTransform::y, and ProjectionTransform::z.
Referenced by print_projection().
| ccl_device_inline ProjectionTransform projection_identity | ( | ) |
Definition at line 154 of file cycles/util/projection.h.
References ccl_device_inline, make_projection(), and projection_identity().
Referenced by Camera::Camera(), osl_get_inverse_matrix(), osl_get_matrix(), osl_shared_get_named_inverse_matrix(), osl_shared_get_named_matrix(), projection_identity(), projection_inverse(), and Camera::update().
| ccl_device_inline ProjectionTransform projection_inverse | ( | const ProjectionTransform | tfm | ) |
Definition at line 207 of file cycles/util/projection.h.
References ccl_device_inline, M, projection_identity(), projection_inverse(), projection_inverse_impl(), R, and UNLIKELY.
Referenced by projection_inverse(), and Camera::update().
| ccl_device_inline ProjectionTransform projection_orthographic | ( | const float | znear, |
| const float | zfar ) |
Definition at line 275 of file cycles/util/projection.h.
References ccl_device_inline, projection_orthographic(), ProjectionTransform::ProjectionTransform(), and transform_scale().
| ccl_device_inline ProjectionTransform projection_perspective | ( | const float | fov, |
| const float | n, | ||
| float | f ) |
Definition at line 261 of file cycles/util/projection.h.
References ccl_device_inline, make_projection(), projection_perspective(), scale(), tanf, and transform_scale().
| ccl_device_inline Transform projection_to_transform | ( | const ProjectionTransform & | a | ) |
Definition at line 175 of file cycles/util/projection.h.
References ccl_device_inline, projection_to_transform(), ProjectionTransform::x, ProjectionTransform::y, and ProjectionTransform::z.
Referenced by projection_to_transform(), transform_transposed_inverse(), and xml_read_transform().
| ccl_device_inline ProjectionTransform projection_transpose | ( | const ProjectionTransform | a | ) |
Definition at line 182 of file cycles/util/projection.h.
References ccl_device_inline, projection_transpose(), float4::w, ProjectionTransform::w, float4::x, ProjectionTransform::x, float4::y, ProjectionTransform::y, float4::z, and ProjectionTransform::z.
Referenced by operator*(), projection_transpose(), transform_transposed_inverse(), and xml_read_transform().
| ccl_device float3 spherical_cos_to_direction | ( | const float | cos_theta, |
| const float | phi ) |
Definition at line 24 of file cycles/util/projection.h.
References ccl_device, cos_theta(), cosf, make_float3(), sin_from_cos(), sin_theta(), sinf, and spherical_cos_to_direction().
Referenced by bsdf_ashikhmin_shirley_sample(), bsdf_hair_chiang_sample(), phase_sample_direction(), and spherical_cos_to_direction().
| ccl_device float3 spherical_to_direction | ( | const float | theta, |
| const float | phi ) |
Definition at line 19 of file cycles/util/projection.h.
References ccl_device, cosf, make_float3(), sinf, and spherical_to_direction().
Referenced by compute_3d_orientation(), equirectangular_range_to_direction(), geographical_to_direction(), Spherical::sensor_to_direction(), sky_radiance_nishita(), and spherical_to_direction().
| CCL_NAMESPACE_END CCL_NAMESPACE_BEGIN ccl_device_inline float3 transform_perspective | ( | const ccl_private ProjectionTransform * | t, |
| const float3 | a ) |
Definition at line 70 of file cycles/util/projection.h.
References b, ccl_device_inline, ccl_private, dot(), make_float3(), make_float4, transform_perspective(), w(), float3::x, float3::y, float3::z, and zero_float3().
Referenced by camera_motion_vector(), camera_motion_vector_direction(), camera_panorama_direction(), camera_sample_custom(), camera_sample_orthographic(), camera_sample_perspective(), camera_world_to_ndc(), EdgeDice::eval_projected(), transform_perspective(), Camera::update(), and Camera::world_to_raster_size().
| ccl_device_inline float3 transform_perspective_deriv | ( | const ccl_private ProjectionTransform * | t, |
| const float3 | a, | ||
| const float3 | dx, | ||
| const float3 | dy, | ||
| ccl_private float3 & | out_dx, | ||
| ccl_private float3 & | out_dy ) |
Definition at line 92 of file cycles/util/projection.h.
References b, ccl_device_inline, ccl_private, dot(), make_float3(), make_float4, transform_perspective_deriv(), transform_perspective_direction(), w(), float3::x, float3::y, float3::z, and zero_float3().
Referenced by transform_perspective_deriv().
| ccl_device_inline float3 transform_perspective_direction | ( | const ccl_private ProjectionTransform * | t, |
| const float3 | a ) |
Definition at line 80 of file cycles/util/projection.h.
References ccl_device_inline, ccl_private, make_float3(), transform_perspective_direction(), float3::x, float3::y, and float3::z.
Referenced by camera_motion_vector_direction(), camera_sample_custom(), transform_perspective_deriv(), transform_perspective_direction(), and Camera::update().