source: framspy/gui/visual/shaders/fragmentShader.glsl @ 1198

Last change on this file since 1198 was 1198, checked in by Maciej Komosinski, 15 months ago

Added simple Python GUI for Framsticks library/server

File size: 372 bytes
Line 
1#version 330
2
3in vec2 pass_textureCoordinates;
4
5out vec4 out_Color;
6
7uniform sampler2D modelTexture;
8uniform vec3 color;
9uniform float textureOn;
10
11void main(void){
12        vec4 textureColor = texture(modelTexture, pass_textureCoordinates);
13        if(textureColor.a < 0.5){
14                discard;
15        }
16       
17
18        out_Color = textureOn * textureColor + (1.0 - textureOn) * vec4(color, 1);
19}
Note: See TracBrowser for help on using the repository browser.