equal
deleted
inserted
replaced
12 |
12 |
13 void main() |
13 void main() |
14 { |
14 { |
15 if(enableTexture){ |
15 if(enableTexture){ |
16 if (tintAdd){ |
16 if (tintAdd){ |
17 tint.a = 0.0; |
17 vec4 tint_ = vec4(tint.xyz, 0.0); |
18 gl_FragColor = clamp(texture2D(tex0, tex) + tint, 0.0, 1.1); |
18 gl_FragColor = clamp(texture2D(tex0, tex) + tint_, 0.0, 1.1); |
19 }else{ |
19 }else{ |
20 gl_FragColor = texture2D(tex0, tex) * tint; |
20 gl_FragColor = texture2D(tex0, tex) * tint; |
21 } |
21 } |
22 }else{ |
22 }else{ |
23 gl_FragColor = tint; |
23 gl_FragColor = tint; |