R2 Core Shaders

R2FilterTextureShow.frag
Go to the documentation of this file.
1 /// \file R2FilterTextureShow.frag
2 /// \brief Texture display filter
3
4 in vec2 R2_uv;
5
6 uniform sampler2D R2_texture;
7 uniform float R2_intensity;
8
9 out vec4 R2_out_rgba;
10
11 void
12 main (void)
13 {
14 vec4 texture_sample =
15 texture (R2_texture, R2_uv);
16 R2_out_rgba =
17 texture_sample * R2_intensity;
18 }