R2 Shaders
R2LightShaderMain.h
Go to the documentation of this file.
1 #ifndef R2_LIGHT_SHADER_MAIN_H
2 #define R2_LIGHT_SHADER_MAIN_H
3 
4 /// \file R2LightShaderMain.h
5 /// \brief The main function that all deferred light shaders must implement.
6 
7 #include "R2LightOutput.h"
9 
10 ///
11 /// Calculate light values for the current light, based on the current contents
12 /// of the G-buffer.
13 ///
14 /// @param surface Reconstructed surface data taken from the G-Buffer
15 ///
16 /// @return Calculated light values
17 
20  const R2_reconstructed_surface_t surface
21 );
22 
23 #endif // R2_LIGHT_SHADER_MAIN_H
Reconstructed surface data, taken from the G-Buffer.
Types describing calculated light contributions.
The type of light values that all deferred light shaders calculate.
Definition: R2LightOutput.h:9
R2_light_output_t R2_deferredLightMain(const R2_reconstructed_surface_t surface)
Surface data reconstructed from the G-Buffer.