Blender V5.3
eevee::ltc Namespace Reference

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)

Detailed Description

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/

Function Documentation

◆ evaluate()

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().

◆ evaluate_disk()

float eevee::ltc::evaluate_disk ( sampler2DArray util_tx,
LightShape shape,
LightVector lv,
LTCData ltc_data )

◆ evaluate_quad()