R2 Shaders
R2FilterEmission.frag
Go to the documentation of this file.
1 /// \file R2FilterEmission.frag
2 /// \brief Emission filter
3 
4 in vec2 R2_uv;
5 
6 uniform sampler2D R2_albedo_emission;
7 
8 out vec4 R2_out_rgba;
9 
10 void
11 main (void)
12 {
13  vec4 texture_sample =
14  texture (R2_albedo_emission, R2_uv);
15  R2_out_rgba =
16  vec4 (texture_sample.rgb * texture_sample.a, 1.0);
17 }