Blender V5.3
eevee::LTCData Struct Reference

#include <eevee_ltc_lut_lib.bsl.hh>

Public Member Functions

void pack_to (ClosureLight &cl) const

Static Public Member Functions

static LTCData unpack_from (ClosureLight cl)
static LTCData sample_ltc_lut (const UtilityTexture &util_tx, float3 N, float3 V, float cos_theta, float roughness)
static LTCData identity (float3 N, float3 V)
static void pack_ltc_lut (ClosureLight &cl, const UtilityTexture &util_tx, float3 N, float3 V, float cos_theta, float roughness)
static void pack_identity (ClosureLight &cl, float3 N, float3 V)

Public Attributes

float3x3 Minv
float attenuation_factor
LTCFormFactorType form_factor_type

Detailed Description

Unpacked output and secondary data from the isotropic GGX LTC LUT. This data is evaluated in eevee_ltc_lib.bsl.hh, and stored in a packed format in ClosureLight in between area light evaluations.

Definition at line 39 of file eevee_ltc_lut_lib.bsl.hh.

Member Function Documentation

◆ identity()

LTCData eevee::LTCData::identity ( float3 N,
float3 V )
inlinestatic

Return matrix data producing a cosine distribution.

Definition at line 117 of file eevee_ltc_lut_lib.bsl.hh.

References attenuation_factor, form_factor_type, from_incident_vector(), Minv, N, OneSidedCosineSphereClipped, T, transpose, and V.

Referenced by bxdf_translucent_light(), node_light_evaluation_impl(), and pack_identity().

◆ pack_identity()

void eevee::LTCData::pack_identity ( ClosureLight & cl,
float3 N,
float3 V )
inlinestatic

Define matrix data producing a cosine distribution and store to ClosureLight packing.

Definition at line 147 of file eevee_ltc_lut_lib.bsl.hh.

References identity(), N, pack_to(), and V.

Referenced by bxdf_diffuse_light().

◆ pack_ltc_lut()

void eevee::LTCData::pack_ltc_lut ( ClosureLight & cl,
const UtilityTexture & util_tx,
float3 N,
float3 V,
float cos_theta,
float roughness )
inlinestatic

Sample matrix data from the isotropic LTC LUT and store to ClosureLight packing.

Definition at line 133 of file eevee_ltc_lut_lib.bsl.hh.

References cos_theta(), N, pack_to(), sample_ltc_lut(), and V.

Referenced by bxdf_ggx_light_reflection(), bxdf_ggx_light_thin_glass_transmission(), and bxdf_ggx_light_transmission().

◆ pack_to()

void eevee::LTCData::pack_to ( ClosureLight & cl) const
inline

Pack LTC matrix inverse and associated data to uint[5] in ClosureLight.

Definition at line 75 of file eevee_ltc_lut_lib.bsl.hh.

References attenuation_factor, form_factor_type, ClosureLight::ltc_data_packed, Minv, packHalf2x16(), packUnorm4x8(), and z().

Referenced by bxdf_translucent_light(), pack_identity(), and pack_ltc_lut().

◆ sample_ltc_lut()

LTCData eevee::LTCData::sample_ltc_lut ( const UtilityTexture & util_tx,
float3 N,
float3 V,
float cos_theta,
float roughness )
inlinestatic

◆ unpack_from()

LTCData eevee::LTCData::unpack_from ( ClosureLight cl)
inlinestatic

Unpack LTC matrix inverse and associated data from uint[5] in ClosureLight.

Definition at line 50 of file eevee_ltc_lut_lib.bsl.hh.

References attenuation_factor, form_factor_type, ClosureLight::ltc_data_packed, Minv, unpackHalf2x16, unpackUnorm4x8, float2::x, float2::y, and float3x3::z.

Referenced by eevee::light::eval_single_closure().

Member Data Documentation

◆ attenuation_factor

float eevee::LTCData::attenuation_factor

◆ form_factor_type

◆ Minv


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