Blender
V3.3
|
Go to the source code of this file.
ccl_device float3 geographical_to_direction | ( | float | lat, |
float | lon | ||
) |
Definition at line 114 of file sky.h.
References cosf, make_float3, and sinf.
Referenced by sky_radiance_nishita().
CCL_NAMESPACE_BEGIN ccl_device float sky_angle_between | ( | float | thetav, |
float | phiv, | ||
float | theta, | ||
float | phi | ||
) |
Definition at line 10 of file sky.h.
References cosf, safe_acosf(), and sinf.
Referenced by sky_radiance_hosek(), and sky_radiance_preetham().
ccl_device float sky_perez_function | ( | ccl_private float * | lam, |
float | theta, | ||
float | gamma | ||
) |
Definition at line 20 of file sky.h.
Referenced by sky_radiance_preetham().
ccl_device float3 sky_radiance_hosek | ( | KernelGlobals | kg, |
float3 | dir, | ||
float | sunphi, | ||
float | suntheta, | ||
float | radiance_x, | ||
float | radiance_y, | ||
float | radiance_z, | ||
ccl_private float * | config_x, | ||
ccl_private float * | config_y, | ||
ccl_private float * | config_z | ||
) |
Definition at line 82 of file sky.h.
References direction_to_spherical(), M_2PI_F, M_PI_2_F, make_float3, min, sky_angle_between(), sky_radiance_internal(), float2::x, x, xyz_to_rgb_clamped(), float2::y, y, and z.
Referenced by svm_node_tex_sky().
ccl_device float sky_radiance_internal | ( | ccl_private float * | configuration, |
float | theta, | ||
float | gamma | ||
) |
ccl_device float3 sky_radiance_nishita | ( | KernelGlobals | kg, |
float3 | dir, | ||
float3 | pixel_bottom, | ||
float3 | pixel_top, | ||
ccl_private float * | nishita_data, | ||
uint | texture_id | ||
) |
Definition at line 119 of file sky.h.
References direction_to_spherical(), fade(), float4_to_float3(), geographical_to_direction(), interp(), CCL_NAMESPACE_BEGIN::kernel_tex_image_interp(), M_2PI_F, M_PI_2_F, M_PI_F, make_float3, precise_angle(), safe_sqrtf(), sqr(), sqrtf, float2::x, x, xyz_to_rgb_clamped(), float2::y, y, and float3::z.
Referenced by svm_node_tex_sky().
ccl_device float3 sky_radiance_preetham | ( | KernelGlobals | kg, |
float3 | dir, | ||
float | sunphi, | ||
float | suntheta, | ||
float | radiance_x, | ||
float | radiance_y, | ||
float | radiance_z, | ||
ccl_private float * | config_x, | ||
ccl_private float * | config_y, | ||
ccl_private float * | config_z | ||
) |
Definition at line 29 of file sky.h.
References direction_to_spherical(), M_PI_2_F, min, sky_angle_between(), sky_perez_function(), float2::x, x, xyY_to_xyz(), xyz_to_rgb_clamped(), float2::y, y, and Y.
Referenced by svm_node_tex_sky().
ccl_device_noinline int svm_node_tex_sky | ( | KernelGlobals | kg, |
ccl_private ShaderData * | sd, | ||
ccl_private float * | stack, | ||
uint4 | node, | ||
int | offset | ||
) |
Definition at line 200 of file sky.h.
References __float_as_uint(), data, make_float3, node, offset, read_node_float(), sky_radiance_hosek(), sky_radiance_nishita(), sky_radiance_preetham(), stack_load_float3(), stack_store_float3(), float3::x, float3::y, and float3::z.
Referenced by svm_eval_nodes().