R2 Shaders
Functions | Variables
R2LightSphericalDebugConstant.h File Reference

A spherical light that simply ignores the surface and applies a constant color. More...

#include "R2LightShaderMain.h"
#include "R2LightPositional.h"
#include "R2LightSpherical.h"
Include dependency graph for R2LightSphericalDebugConstant.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

R2_light_output_t R2_deferredLightMain (const R2_reconstructed_surface_t surface)
 

Variables

uniform R2_light_positional_t R2_light_spherical
 

Detailed Description

A spherical light that simply ignores the surface and applies a constant color.

Definition in file R2LightSphericalDebugConstant.h.

Function Documentation

§ R2_deferredLightMain()

R2_light_output_t R2_deferredLightMain ( const R2_reconstructed_surface_t  surface)

Calculate light values for the current light, based on the current contents of the G-buffer.

Parameters
surfaceReconstructed surface data taken from the G-Buffer
Returns
Calculated light values

Definition at line 14 of file R2LightSphericalDebugConstant.h.

16 {
17  return R2_light_output_t(
18  R2_light_spherical.color,
19  R2_light_spherical.color);
20 }
vec3 color
The light color. The components are assumed to be in the range [0, 1].
The type of light values that all deferred light shaders calculate.
Definition: R2LightOutput.h:9