Blender V5.3
spherical_harmonics::BandL1< T > Struct Template Reference

#include <gpu_shader_math_spherical_harmonics.bsl.hh>

Public Member Functions

void encode_signal_sample (float3 direction, T amplitude)
T evaluate (float3 direction) const

Static Public Member Functions

static BandL1< T > madd (BandL1< T > a, float b, BandL1< T > c)
static BandL1< T > mul_scalar (BandL1< T > a, float b)
static BandL1< T > mul (BandL1< T > a, T b)
static BandL1< T > add (BandL1< T > a, BandL1< T > b)

Public Attributes

T Mn1
T M0
T Mp1

Detailed Description

template<typename T>
struct spherical_harmonics::BandL1< T >

Definition at line 138 of file gpu_shader_math_spherical_harmonics.bsl.hh.

Member Function Documentation

◆ add()

template<typename T>
BandL1< T > spherical_harmonics::BandL1< T >::add ( BandL1< T > a,
BandL1< T > b )
inlinestatic

Definition at line 181 of file gpu_shader_math_spherical_harmonics.bsl.hh.

References b, M0, Mn1, and Mp1.

Referenced by spherical_harmonics::add().

◆ encode_signal_sample()

template<typename T>
void spherical_harmonics::BandL1< T >::encode_signal_sample ( float3 direction,
T amplitude )
inline

◆ evaluate()

◆ madd()

template<typename T>
BandL1< T > spherical_harmonics::BandL1< T >::madd ( BandL1< T > a,
float b,
BandL1< T > c )
inlinestatic

Definition at line 154 of file gpu_shader_math_spherical_harmonics.bsl.hh.

References b, M0, Mn1, and Mp1.

Referenced by spherical_harmonics::madd().

◆ mul()

template<typename T>
BandL1< T > spherical_harmonics::BandL1< T >::mul ( BandL1< T > a,
T b )
inlinestatic

Definition at line 172 of file gpu_shader_math_spherical_harmonics.bsl.hh.

References b, M0, Mn1, Mp1, and T.

Referenced by spherical_harmonics::dering(), and spherical_harmonics::mul().

◆ mul_scalar()

template<typename T>
BandL1< T > spherical_harmonics::BandL1< T >::mul_scalar ( BandL1< T > a,
float b )
inlinestatic

Definition at line 163 of file gpu_shader_math_spherical_harmonics.bsl.hh.

References b, M0, Mn1, and Mp1.

Referenced by spherical_harmonics::mul().

Member Data Documentation

◆ M0

template<typename T>
T spherical_harmonics::BandL1< T >::M0

◆ Mn1

template<typename T>
T spherical_harmonics::BandL1< T >::Mn1

◆ Mp1

template<typename T>
T spherical_harmonics::BandL1< T >::Mp1

The documentation for this struct was generated from the following file: