mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-08-02 07:59:15 +07:00
Fixed compile errors, unitification
This commit is contained in:
18
core/assets/shaders/hit.fragment
Normal file
18
core/assets/shaders/hit.fragment
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user