Blender  V2.93
Functions
kernel_projection.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device float2 direction_to_spherical (float3 dir)
 
ccl_device float3 spherical_to_direction (float theta, float phi)
 
ccl_device float2 direction_to_equirectangular_range (float3 dir, float4 range)
 
ccl_device float3 equirectangular_range_to_direction (float u, float v, float4 range)
 
ccl_device float2 direction_to_equirectangular (float3 dir)
 
ccl_device float3 equirectangular_to_direction (float u, float v)
 
ccl_device float2 direction_to_fisheye (float3 dir, float fov)
 
ccl_device float3 fisheye_to_direction (float u, float v, float fov)
 
ccl_device float2 direction_to_fisheye_equisolid (float3 dir, float lens, float width, float height)
 
ccl_device_inline float3 fisheye_equisolid_to_direction (float u, float v, float lens, float fov, float width, float height)
 
ccl_device float3 mirrorball_to_direction (float u, float v)
 
ccl_device float2 direction_to_mirrorball (float3 dir)
 
ccl_device_inline float3 panorama_to_direction (ccl_constant KernelCamera *cam, float u, float v)
 
ccl_device_inline float2 direction_to_panorama (ccl_constant KernelCamera *cam, float3 dir)
 
ccl_device_inline void spherical_stereo_transform (ccl_constant KernelCamera *cam, float3 *P, float3 *D)
 

Function Documentation

◆ direction_to_equirectangular()

ccl_device float2 direction_to_equirectangular ( float3  dir)

◆ direction_to_equirectangular_range()

ccl_device float2 direction_to_equirectangular_range ( float3  dir,
float4  range 
)

◆ direction_to_fisheye()

ccl_device float2 direction_to_fisheye ( float3  dir,
float  fov 
)

Definition at line 87 of file kernel_projection.h.

References atan2f, cosf, make_float2, r, sinf, sqrtf, v, float3::x, float3::y, and float3::z.

Referenced by direction_to_panorama().

◆ direction_to_fisheye_equisolid()

ccl_device float2 direction_to_fisheye_equisolid ( float3  dir,
float  lens,
float  width,
float  height 
)

Definition at line 117 of file kernel_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().

◆ direction_to_mirrorball()

ccl_device float2 direction_to_mirrorball ( float3  dir)

Definition at line 171 of file kernel_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().

◆ direction_to_panorama()

ccl_device_inline float2 direction_to_panorama ( ccl_constant KernelCamera cam,
float3  dir 
)

◆ direction_to_spherical()

CCL_NAMESPACE_BEGIN ccl_device float2 direction_to_spherical ( float3  dir)

◆ equirectangular_range_to_direction()

ccl_device float3 equirectangular_range_to_direction ( float  u,
float  v,
float4  range 
)

Definition at line 67 of file kernel_projection.h.

References cosf, make_float3, sinf, v, and float3::x.

Referenced by equirectangular_to_direction(), and panorama_to_direction().

◆ equirectangular_to_direction()

ccl_device float3 equirectangular_to_direction ( float  u,
float  v 
)

◆ fisheye_equisolid_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 130 of file kernel_projection.h.

References asinf, cosf, height, make_float3, r, safe_acosf(), sinf, sqrtf, v, width, and zero_float3().

Referenced by panorama_to_direction().

◆ fisheye_to_direction()

ccl_device float3 fisheye_to_direction ( float  u,
float  v,
float  fov 
)

Definition at line 98 of file kernel_projection.h.

References cosf, make_float3, r, safe_acosf(), sinf, sqrtf, v, and zero_float3().

Referenced by panorama_to_direction().

◆ mirrorball_to_direction()

ccl_device float3 mirrorball_to_direction ( float  u,
float  v 
)

Definition at line 152 of file kernel_projection.h.

References dot(), I, make_float3, max, sqrtf, v, float3::x, float3::y, float3::z, and zero_float3().

Referenced by panorama_to_direction().

◆ panorama_to_direction()

ccl_device_inline float3 panorama_to_direction ( ccl_constant KernelCamera cam,
float  u,
float  v 
)

◆ spherical_stereo_transform()

ccl_device_inline void spherical_stereo_transform ( ccl_constant KernelCamera cam,
float3 P,
float3 D 
)

◆ spherical_to_direction()

ccl_device float3 spherical_to_direction ( float  theta,
float  phi 
)

Definition at line 48 of file kernel_projection.h.

References cosf, make_float3, and sinf.