equal
deleted
inserted
replaced
|
1 uniform sampler2D tex0; |
|
2 uniform vec4 tint; |
|
3 uniform bool enableTexture; |
|
4 |
|
5 varying vec2 tex; |
|
6 |
|
7 |
|
8 void main() |
|
9 { |
|
10 if(enableTexture){ |
|
11 gl_FragColor = texture2D(tex0, tex) * tint; |
|
12 }else{ |
|
13 gl_FragColor = tint; |
|
14 } |
|
15 } |