The Dirtchamber
A mixed reality testing environment for real-time global illumination algorithms
|
A simple directional light source with an RSM. More...
#include <light.h>
Public Member Functions | |
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 simple directional light source with an RSM.
This class is a wrapper for a directional light source rendering to a Reflective Shadow Map (RSM). It manages a constant buffer with information about the light source such as position or view projection matrix for rendering, as well as the gbuffer object to render the RSM to.