R2 Shaders
R2SurfaceBasicTypes.h
Go to the documentation of this file.
1 #ifndef R2_SURFACE_BASIC_TYPES_H
2 #define R2_SURFACE_BASIC_TYPES_H
3 
4 /// \file R2SurfaceBasicTypes.h
5 /// \brief Types for basic surfaces
6 
7 /// Constant surface parameters that all basic surface shaders will receive.
8 
10  /// Emission level in the range `[0, 1]`
12 
13  /// Base RGBA albedo color
15  /// Albedo color/texture mix
16  float albedo_mix;
17 
18  /// RGB specular color
20  /// Specular exponent in the range `[0, 256]`
22 
23  /// Alpha discard threshold in the range `[0, 1]`.
25 };
26 
27 /// Input textures that all basic surface shaders will receive.
28 
30  /// RGBA albedo texture
31  sampler2D albedo;
32  /// RGB specular map texture
33  sampler2D specular;
34  /// R emission level texture
35  sampler2D emission;
36 };
37 
38 #endif // R2_SURFACE_BASIC_TYPES_H
float emission_amount
Emission level in the range [0, 1]
vec3 specular_color
RGB specular color.
sampler2D emission
R emission level texture.
Constant surface parameters that all basic surface shaders will receive.
Input textures that all basic surface shaders will receive.
vec4 albedo_color
Base RGBA albedo color.
sampler2D albedo
RGBA albedo texture.
float specular_exponent
Specular exponent in the range [0, 256]
float albedo_mix
Albedo color/texture mix.
float alpha_discard_threshold
Alpha discard threshold in the range [0, 1].
sampler2D specular
RGB specular map texture.