|
Blender
V2.93
|
Go to the source code of this file.
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device float | sky_angle_between (float thetav, float phiv, float theta, float phi) |
| ccl_device float | sky_perez_function (float *lam, float theta, float gamma) |
| ccl_device float3 | sky_radiance_preetham (KernelGlobals *kg, float3 dir, float sunphi, float suntheta, float radiance_x, float radiance_y, float radiance_z, float *config_x, float *config_y, float *config_z) |
| ccl_device float | sky_radiance_internal (float *configuration, float theta, float gamma) |
| ccl_device float3 | sky_radiance_hosek (KernelGlobals *kg, float3 dir, float sunphi, float suntheta, float radiance_x, float radiance_y, float radiance_z, float *config_x, float *config_y, float *config_z) |
| ccl_device float3 | geographical_to_direction (float lat, float lon) |
| ccl_device float3 | sky_radiance_nishita (KernelGlobals *kg, float3 dir, float *nishita_data, uint texture_id) |
| ccl_device void | svm_node_tex_sky (KernelGlobals *kg, ShaderData *sd, float *stack, uint4 node, int *offset) |
| ccl_device float3 geographical_to_direction | ( | float | lat, |
| float | lon | ||
| ) |
Definition at line 125 of file svm_sky.h.
References KDL::cos(), make_float3, and KDL::sin().
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 21 of file svm_sky.h.
References cosf, safe_acosf(), and sinf.
Referenced by sky_radiance_hosek(), and sky_radiance_preetham().
| ccl_device float sky_perez_function | ( | float * | lam, |
| float | theta, | ||
| float | gamma | ||
| ) |
Definition at line 31 of file svm_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, | ||
| float * | config_x, | ||
| float * | config_y, | ||
| float * | config_z | ||
| ) |
Definition at line 93 of file svm_sky.h.
References direction_to_spherical(), kg, M_2PI_F, M_PI_2_F, make_float3, min, sky_angle_between(), sky_radiance_internal(), float2::x, x, xyz_to_rgb(), float2::y, y, and z.
Referenced by svm_node_tex_sky().
| ccl_device float sky_radiance_internal | ( | float * | configuration, |
| float | theta, | ||
| float | gamma | ||
| ) |
| ccl_device float3 sky_radiance_nishita | ( | KernelGlobals * | kg, |
| float3 | dir, | ||
| float * | nishita_data, | ||
| uint | texture_id | ||
| ) |
Definition at line 130 of file svm_sky.h.
References direction_to_spherical(), fade(), float4_to_float3(), geographical_to_direction(), interp(), CCL_NAMESPACE_BEGIN::kernel_tex_image_interp(), kg, M_2PI_F, M_PI_2_F, M_PI_F, make_float3, precise_angle(), safe_sqrtf(), sqr(), sqrtf, float2::x, x, xyz_to_rgb(), 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, | ||
| float * | config_x, | ||
| float * | config_y, | ||
| float * | config_z | ||
| ) |
Definition at line 40 of file svm_sky.h.
References direction_to_spherical(), kg, M_PI_2_F, min, sky_angle_between(), sky_perez_function(), float2::x, x, xyY_to_xyz(), xyz_to_rgb(), float2::y, Y, and y.
Referenced by svm_node_tex_sky().
| ccl_device void svm_node_tex_sky | ( | KernelGlobals * | kg, |
| ShaderData * | sd, | ||
| float * | stack, | ||
| uint4 | node, | ||
| int * | offset | ||
| ) |
Definition at line 212 of file svm_sky.h.
References __float_as_uint(), data, kg, node, read_node_float(), sky_radiance_hosek(), sky_radiance_nishita(), sky_radiance_preetham(), stack_load_float3(), and stack_store_float3().
Referenced by svm_eval_nodes().