|
Blender V5.3
|
Namespaces | |
| namespace | detail |
Functions | |
| float | evaluate_quad (sampler2DArray util_tx, LightShape shape, LightVector lv, LTCData ltc_data) |
| float | evaluate_disk (sampler2DArray util_tx, LightShape shape, LightVector lv, LTCData ltc_data) |
| float | evaluate (sampler2DArray util_tx, LightData light, LightShape shape, LightVector lv, LTCData ltc_data) |
Adapted from : Real-Time Polygonal-Light Shading with Linearly Transformed Cosines. Eric Heitz, Jonathan Dupuy, Stephen Hill and David Neubelt. ACM Transactions on Graphics (Proceedings of ACM SIGGRAPH 2016) 35(4), 2016. Project page: https://eheitzresearch.wordpress.com/415-2/
| float eevee::ltc::evaluate | ( | sampler2DArray | util_tx, |
| LightData | light, | ||
| LightShape | shape, | ||
| LightVector | lv, | ||
| LTCData | ltc_data ) |
Perform LTC evaluation, returning the form factor of the light's shape to the shading point. When multiplied by emission, this approximates the light's contributed irradiance.
Definition at line 374 of file eevee_ltc_lib.bsl.hh.
References LightVector::dist, evaluate(), evaluate_disk(), and evaluate_quad().
Referenced by eevee::light::eval_single_closure(), evaluate(), and node_light_evaluation_impl().
| float eevee::ltc::evaluate_disk | ( | sampler2DArray | util_tx, |
| LightShape | shape, | ||
| LightVector | lv, | ||
| LTCData | ltc_data ) |
Evaluate contribution of disk light.
disk_points are WS vectors from the shading point to the disk "bounding domain".
Definition at line 257 of file eevee_ltc_lib.bsl.hh.
References abs, C, cross, eevee::ltc::detail::diffuse_sphere_integral(), dot(), evaluate_disk(), eevee::ltc::detail::form_factor_attenuation(), eevee::LTCData::form_factor_type, inversesqrt(), L, LightVector::L, M_1_PI, eevee::LTCData::Minv, normalize, OneSidedCosineSphereClipped, rotate(), saturate, eevee::ltc::detail::solve_cubic(), sqrt, square(), LightShape::v, float3::x, float3::y, and float3::z.
Referenced by evaluate(), and evaluate_disk().
| float eevee::ltc::evaluate_quad | ( | sampler2DArray | util_tx, |
| LightShape | shape, | ||
| LightVector | lv, | ||
| LTCData | ltc_data ) |
Evaluate contribution of rectangle light.
Definition at line 215 of file eevee_ltc_lib.bsl.hh.
References eevee::ltc::detail::diffuse_sphere_integral(), dot(), eevee::ltc::detail::edge_integral_vec(), evaluate_quad(), eevee::ltc::detail::form_factor_attenuation(), eevee::LTCData::form_factor_type, inversesqrt(), LightVector::L, M_1_PI, eevee::LTCData::Minv, normalize, OneSidedCosineSphereClipped, saturate, V, LightShape::v, and z().
Referenced by evaluate(), and evaluate_quad().