Last change
on this file since 1303 was
1198,
checked in by Maciej Komosinski, 22 months ago
|
Added simple Python GUI for Framsticks library/server
|
File size:
372 bytes
|
Line | |
---|
1 | #version 330
|
---|
2 |
|
---|
3 | in vec2 pass_textureCoordinates;
|
---|
4 |
|
---|
5 | out vec4 out_Color;
|
---|
6 |
|
---|
7 | uniform sampler2D modelTexture;
|
---|
8 | uniform vec3 color;
|
---|
9 | uniform float textureOn;
|
---|
10 |
|
---|
11 | void 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.