Blender V4.3
ies.h File Reference

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)
 

Macro Definition Documentation

◆ IES_LOOKUP

#define IES_LOOKUP ( v)    kernel_data_fetch(ies, ofs + h * v_num + (v))

◆ IES_LOOKUP_ANGLE_H

#define IES_LOOKUP_ANGLE_H ( h)    kernel_data_fetch(ies, ofs + (h))

Referenced by kernel_ies_interp().

◆ IES_LOOKUP_ANGLE_V

#define IES_LOOKUP_ANGLE_V ( v)    kernel_data_fetch(ies, ofs + h_num + (v))

Referenced by kernel_ies_interp().

Function Documentation

◆ interpolate_ies_vertical()

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().

◆ kernel_ies_interp()