|
Blender V4.3
|
Go to the source code of this file.
Macros | |
| #define | IES_LOOKUP(v) kernel_data_fetch(ies, ofs + h * v_num + (v)) |
| #define | IES_LOOKUP_ANGLE_H(h) kernel_data_fetch(ies, ofs + (h)) |
| #define | IES_LOOKUP_ANGLE_V(v) kernel_data_fetch(ies, ofs + h_num + (v)) |
Functions | |
| CCL_NAMESPACE_BEGIN ccl_device_inline float | interpolate_ies_vertical (KernelGlobals kg, int ofs, const bool wrap_vlow, const bool wrap_vhigh, int v, int v_num, float v_frac, int h) |
| ccl_device_inline float | kernel_ies_interp (KernelGlobals kg, int slot, float h_angle, float v_angle) |
| #define IES_LOOKUP | ( | v | ) | kernel_data_fetch(ies, ofs + h * v_num + (v)) |
Referenced by interpolate_ies_vertical().
| #define IES_LOOKUP_ANGLE_H | ( | h | ) | kernel_data_fetch(ies, ofs + (h)) |
Referenced by kernel_ies_interp().
| #define IES_LOOKUP_ANGLE_V | ( | v | ) | kernel_data_fetch(ies, ofs + h_num + (v)) |
Referenced by kernel_ies_interp().
| CCL_NAMESPACE_BEGIN ccl_device_inline float interpolate_ies_vertical | ( | KernelGlobals | kg, |
| int | ofs, | ||
| const bool | wrap_vlow, | ||
| const bool | wrap_vhigh, | ||
| int | v, | ||
| int | v_num, | ||
| float | v_frac, | ||
| int | h ) |
Definition at line 11 of file kernel/util/ies.h.
References b, cubic_interp(), IES_LOOKUP, and v.
Referenced by kernel_ies_interp().
| ccl_device_inline float kernel_ies_interp | ( | KernelGlobals | kg, |
| int | slot, | ||
| float | h_angle, | ||
| float | v_angle ) |
Definition at line 49 of file kernel/util/ies.h.
References __float_as_int, b, cubic_interp(), IES_LOOKUP_ANGLE_H, IES_LOOKUP_ANGLE_V, interpolate_ies_vertical(), inverse_lerp(), kernel_data_fetch, M_2PI_F, M_PI_F, and max.
Referenced by osl_texture(), svm_node_ies(), and OSLRenderServices::texture().