R2 Core Shaders

R2GBufferOutput.h
Go to the documentation of this file.
1 #ifndef R2_GBUFFER_OUTPUT_H
2 #define R2_GBUFFER_OUTPUT_H
3
4 /// \file R2GBufferOutput.h
5 /// \brief The G-Buffer format.
6
7 /// A type representing the values written to the G-Buffer.
8
9 struct R2_gbuffer_output_t {
10 /// 8-bit unsigned normalized RGB color
11 vec3 albedo;
12 /// 8-bit unsigned normalized emission level
13 float emission;
14 /// Compressed 16-bit half-precision normals
15 vec2 normal;
16 /// 8-bit unsigned normalized RGB specular color
17 vec3 specular;
18 /// 8-bit unsigned normalized specular exponent
19 float specular_exp;
20 /// Logarithmic depth value
21 float depth;
22 /// `True` if this particular surface fragment should be discarded
23 bool discarded;
24 };
25
26 #endif // R2_GBUFFER_OUTPUT_H
R2_gbuffer_output_t::albedo
vec3 albedo
8-bit unsigned normalized RGB color
Definition: R2GBufferOutput.h:11
R2_gbuffer_output_t::specular
vec3 specular
8-bit unsigned normalized RGB specular color
Definition: R2GBufferOutput.h:17
R2_gbuffer_output_t::normal
vec2 normal
Compressed 16-bit half-precision normals.
Definition: R2GBufferOutput.h:15
R2_gbuffer_output_t::depth
float depth
Logarithmic depth value.
Definition: R2GBufferOutput.h:21
R2_gbuffer_output_t::emission
float emission
8-bit unsigned normalized emission level
Definition: R2GBufferOutput.h:13
R2_gbuffer_output_t::discarded
bool discarded
True if this particular surface fragment should be discarded
Definition: R2GBufferOutput.h:23
R2_gbuffer_output_t
A type representing the values written to the G-Buffer.
Definition: R2GBufferOutput.h:9
R2_gbuffer_output_t::specular_exp
float specular_exp
8-bit unsigned normalized specular exponent
Definition: R2GBufferOutput.h:19