The Dirtchamber
A mixed reality testing environment for real-time global illumination algorithms
|
A differential directional light source. More...
#include <light.h>
Public Member Functions | |
gbuffer & | rho () |
Return RSM \( \rho \). | |
gbuffer & | mu () |
Return RSM \( \mu \). | |
Public Member Functions inherited from dune::directional_light | |
void | update (const DirectX::XMFLOAT4 &upt, const DirectX::XMMATRIX &light_proj) |
Update the view-projection matrix in the parameter cbuffer for shadowmap/RSM rendering. | |
cb_param & | parameters () |
Return local cbuffer parameters. | |
const cb_param & | parameters () const |
Return local cbuffer parameters. | |
A differential directional light source.
A differential directional light source contains two RSMs \( \mu \) and \( \rho \):
Having these two RSMs, the differential indirect bounce can be extracted by subtracing \( \mu \) from \( \rho \). This class is used to intialize delta_light_propagation_volume objects or delta_sparse_voxel_octree objects.