|
Blender V5.3
|
#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 |
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.
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().
|
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().
|
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().
|
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().
|
inlinestatic |
Sample matrix data from the isotropic LTC LUT.
Definition at line 92 of file eevee_ltc_lut_lib.bsl.hh.
References attenuation_factor, cos_theta(), form_factor_type, from_incident_vector(), eevee::detail::get_isotropic_coords(), Minv, N, OneSidedCosineSphereClipped, UtilityTexture::sample_lut(), saturate, T, transpose, eevee::detail::unpack_isotropic_matrix(), UTIL_LTC_MAT_LAYER, and V.
Referenced by node_light_evaluation_impl(), and pack_ltc_lut().
|
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().
| float eevee::LTCData::attenuation_factor |
Definition at line 43 of file eevee_ltc_lut_lib.bsl.hh.
Referenced by eevee::ltc::detail::form_factor_attenuation(), identity(), pack_to(), sample_ltc_lut(), and unpack_from().
| LTCFormFactorType eevee::LTCData::form_factor_type |
Definition at line 45 of file eevee_ltc_lut_lib.bsl.hh.
Referenced by bxdf_translucent_light(), eevee::ltc::evaluate_disk(), eevee::ltc::evaluate_quad(), identity(), pack_to(), sample_ltc_lut(), and unpack_from().
| float3x3 eevee::LTCData::Minv |
Definition at line 41 of file eevee_ltc_lut_lib.bsl.hh.
Referenced by eevee::ltc::evaluate_disk(), eevee::ltc::evaluate_quad(), eevee::ltc::detail::form_factor_attenuation(), identity(), pack_to(), sample_ltc_lut(), and unpack_from().