Blender
V3.3
|
#include "kernel/camera/projection.h"
#include "kernel/sample/mapping.h"
#include "kernel/util/differential.h"
#include "kernel/util/lookup_table.h"
Go to the source code of this file.
ccl_device_inline float3 camera_direction_from_point | ( | KernelGlobals | kg, |
float3 | P | ||
) |
Definition at line 473 of file kernel/camera/camera.h.
References CAMERA_ORTHOGRAPHIC, kernel_data, make_float3, blender::math::normalize(), P(), Transform::x, Transform::y, and Transform::z.
ccl_device_inline float camera_distance | ( | KernelGlobals | kg, |
float3 | P | ||
) |
Definition at line 446 of file kernel/camera/camera.h.
References CAMERA_ORTHOGRAPHIC, blender::math::dot(), fabsf, kernel_data, len, make_float3, P(), Transform::x, Transform::y, and Transform::z.
Referenced by kernel_write_data_passes().
ccl_device_inline float3 camera_position | ( | KernelGlobals | kg | ) |
Definition at line 440 of file kernel/camera/camera.h.
References kernel_data, make_float3, Transform::x, Transform::y, and Transform::z.
Referenced by camera_world_to_ndc(), svm_node_tex_coord(), svm_node_tex_coord_bump_dx(), and svm_node_tex_coord_bump_dy().
ccl_device_inline void camera_sample | ( | KernelGlobals | kg, |
int | x, | ||
int | y, | ||
float | filter_u, | ||
float | filter_v, | ||
float | lens_u, | ||
float | lens_v, | ||
float | time, | ||
ccl_private Ray * | ray | ||
) |
Definition at line 366 of file kernel/camera/camera.h.
References CAMERA_ORTHOGRAPHIC, CAMERA_PERSPECTIVE, camera_sample_orthographic(), camera_sample_panorama(), camera_sample_perspective(), ccl_global, FILTER_TABLE_SIZE, float(), if(), kernel_data, kernel_data_array, lookup_table_read(), SHUTTER_TABLE_SIZE, time, x, and y.
Referenced by blender::io::alembic::ABCCameraWriter::do_write(), and integrate_camera_sample().
CCL_NAMESPACE_BEGIN ccl_device float2 camera_sample_aperture | ( | ccl_constant KernelCamera * | cam, |
float | u, | ||
float | v | ||
) |
Definition at line 15 of file kernel/camera/camera.h.
References concentric_sample_disk(), regular_polygon_sample(), v, and float2::x.
Referenced by camera_sample_orthographic(), camera_sample_panorama(), and camera_sample_perspective().
ccl_device void camera_sample_orthographic | ( | KernelGlobals | kg, |
float | raster_x, | ||
float | raster_y, | ||
float | lens_u, | ||
float | lens_v, | ||
ccl_private Ray * | ray | ||
) |
Definition at line 177 of file kernel/camera/camera.h.
References camera_sample_aperture(), D(), differential_make_compact(), differential_zero_compact(), differential3::dx, differential3::dy, float4_to_float3(), kernel_data, kernel_data_array, make_float3, blender::math::normalize(), P(), transform_direction(), transform_motion_array_interpolate(), transform_perspective(), transform_point(), float2::x, and float2::y.
Referenced by camera_sample().
ccl_device_inline void camera_sample_panorama | ( | ccl_constant KernelCamera * | cam, |
float | raster_x, | ||
float | raster_y, | ||
float | lens_u, | ||
float | lens_v, | ||
ccl_private Ray * | ray | ||
) |
Definition at line 246 of file kernel/camera/camera.h.
References camera_sample_aperture(), blender::math::cross(), D(), differential_make_compact(), differential3::dx, differential3::dy, blender::math::is_zero(), make_float3, blender::math::normalize(), P(), panorama_to_direction(), spherical_stereo_transform(), transform_direction(), transform_motion_array_interpolate(), transform_perspective(), transform_point(), U, V, float3::x, float2::x, float3::y, float2::y, and zero_float3().
Referenced by camera_sample(), and Camera::world_to_raster_size().
ccl_device void camera_sample_perspective | ( | KernelGlobals | kg, |
float | raster_x, | ||
float | raster_y, | ||
float | lens_u, | ||
float | lens_v, | ||
ccl_private Ray * | ray | ||
) |
Definition at line 36 of file kernel/camera/camera.h.
References camera_sample_aperture(), D(), differential_make_compact(), differential_zero_compact(), differential3::dx, differential3::dy, float4_to_float3(), interp(), kernel_data, kernel_data_array, make_float3, blender::math::normalize(), P(), spherical_stereo_transform(), transform_direction(), transform_motion_array_interpolate(), transform_perspective(), transform_point(), float2::x, float2::y, and zero_float3().
Referenced by camera_sample().
ccl_device_inline float3 camera_world_to_ndc | ( | KernelGlobals | kg, |
ccl_private ShaderData * | sd, | ||
float3 | P | ||
) |
Definition at line 487 of file kernel/camera/camera.h.
References CAMERA_PANORAMA, CAMERA_PERSPECTIVE, camera_position(), direction_to_panorama(), kernel_data, make_float3, blender::math::normalize(), OBJECT_NONE, P(), PRIM_NONE, transform_direction(), transform_perspective(), transform_point(), float2::x, and float2::y.
Referenced by OSLRenderServices::get_background_attribute(), svm_node_tex_coord(), svm_node_tex_coord_bump_dx(), and svm_node_tex_coord_bump_dy().
ccl_device_inline float camera_z_depth | ( | KernelGlobals | kg, |
float3 | P | ||
) |
Definition at line 460 of file kernel/camera/camera.h.
References CAMERA_PANORAMA, kernel_data, len, make_float3, P(), transform_point(), Transform::x, Transform::y, float3::z, and Transform::z.
Referenced by kernel_write_data_passes().