]> git.lizzy.rs Git - irrlicht.git/blob - media/Shaders/Renderer2D.fsh
Add shaders for COpenGL3DriverBase
[irrlicht.git] / media / Shaders / Renderer2D.fsh
1 #version 100
2
3 precision mediump float;
4
5 /* Uniforms */
6
7 uniform int uTextureUsage;
8 uniform sampler2D uTextureUnit;
9
10 /* Varyings */
11
12 varying vec2 vTextureCoord;
13 varying vec4 vVertexColor;
14
15 void main()
16 {
17         vec4 Color = vVertexColor;
18
19         if (bool(uTextureUsage))
20                 Color *= texture2D(uTextureUnit, vTextureCoord);
21
22         gl_FragColor = Color;
23 }