Fixed compile errors, unitification

This commit is contained in:
Anuken
2018-03-15 21:42:23 -04:00
parent 807c4688c2
commit 52c0a8e573
35 changed files with 392 additions and 347 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifdef GL_ES
precision mediump float;
precision mediump int;
#endif
uniform sampler2D u_texture;
varying vec4 v_color;
varying vec2 v_texCoord;
void main() {
vec4 c = texture2D(u_texture, v_texCoord.xy);
c = mix(c, vec4(1.0, 1.0, 1.0, c.a), v_color.a);
gl_FragColor = c * vec4(v_color.rgb, 1.0);
}
+1 -4
View File
@@ -35,9 +35,6 @@ void main() {
if(any){
gl_FragColor = u_color;
}else{
if((c.r < 0.01 && c.g < 0.01 && c.b < 0.01)){
c = vec4(0.0);
}
gl_FragColor = mix(c, vec4(1.0, 1.0, 1.0, c.a), c.a) * v_color;
gl_FragColor = c * v_color;
}
}
+2 -2
View File
@@ -1,7 +1,7 @@
#Autogenerated file. Do not modify.
#Thu Mar 15 12:56:43 EDT 2018
#Thu Mar 15 21:41:26 EDT 2018
version=release
androidBuildCode=523
androidBuildCode=524
name=Mindustry
code=3.4
build=custom build