R2 Shaders
R2LightDirectionalDebugConstant.h
Go to the documentation of this file.
1 #ifndef R2_LIGHT_DIRECTIONAL_DEBUG_CONSTANT_H
2 #define R2_LIGHT_DIRECTIONAL_DEBUG_CONSTANT_H
3 
4 /// \file R2LightDirectionalDebugConstant.h
5 /// \brief A trivial directional light that simply ignores the surface and applies a constant color
6 
7 #include "R2LightShaderMain.h"
8 #include "R2LightDirectional.h"
9 
10 uniform R2_light_directional_t R2_light_directional;
11 
14  const R2_reconstructed_surface_t surface)
15 {
16  return R2_light_output_t(
17  R2_light_directional.color,
18  R2_light_directional.color);
19 }
20 
21 #endif // R2_LIGHT_DIRECTIONAL_DEBUG_CONSTANT_H
vec3 color
The light color. The components are assumed to be in the range [0, 1].
Functions and types related to directional lighting.
Reconstructed surface data, taken from the G-Buffer.
The main function that all deferred light shaders must implement.
R2_light_output_t R2_deferredLightMain(const R2_reconstructed_surface_t surface)
A directional light type.
The type of light values that all deferred light shaders calculate.
Definition: R2LightOutput.h:9