Blender V5.0
ies.h File Reference
#include "kernel/globals.h"

Go to the source code of this file.

Macros

#define IES_LOOKUP(v)
#define IES_LOOKUP_ANGLE_H(h)
#define IES_LOOKUP_ANGLE_V(v)

Functions

CCL_NAMESPACE_BEGIN ccl_device_inline float interpolate_ies_vertical (KernelGlobals kg, const int ofs, const bool wrap_vlow, const bool wrap_vhigh, const int v, const int v_num, const float v_frac, const int h)
ccl_device_inline float kernel_ies_interp (KernelGlobals kg, const int slot, const float h_angle, const float v_angle)

Macro Definition Documentation

◆ IES_LOOKUP

#define IES_LOOKUP ( v)
Value:
kernel_data_fetch(ies, ofs + h * v_num + (v))
ATTR_WARN_UNUSED_RESULT const BMVert * v
#define kernel_data_fetch(name, index)

Referenced by interpolate_ies_vertical().

◆ IES_LOOKUP_ANGLE_H

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

Referenced by kernel_ies_interp().

◆ IES_LOOKUP_ANGLE_V

#define IES_LOOKUP_ANGLE_V ( v)
Value:
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,
const int ofs,
const bool wrap_vlow,
const bool wrap_vhigh,
const int v,
const int v_num,
const float v_frac,
const int h )

Definition at line 13 of file kernel/util/ies.h.

References b, ccl_device_inline, cubic_interp(), IES_LOOKUP, and v.

Referenced by kernel_ies_interp().

◆ kernel_ies_interp()