mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-23 13:01:38 -08:00
Fixed #11421
This commit is contained in:
parent
8900967afe
commit
9db792ccc9
1 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ void main(){
|
|||
vec2 coords = v_texCoords * u_resolution + u_campos;
|
||||
|
||||
float btime = u_time / 5000.0;
|
||||
vec4 orig = texture2D(u_texture, v_texCoords);
|
||||
float noise = (texture2D(u_noise, (coords) / NSCALE + vec2(btime) * vec2(-0.9, 0.8)).r + texture2D(u_noise, (coords) / NSCALE + vec2(btime * 1.1) * vec2(0.8, -1.0)).r) / 2.0;
|
||||
|
||||
//TODO: pack noise texture
|
||||
|
|
@ -27,6 +28,9 @@ void main(){
|
|||
) - vec2(0.5)) * 8.0 / u_resolution;
|
||||
|
||||
vec4 color = texture2D(u_texture, c);
|
||||
if(color.a < 0.95){
|
||||
color = orig;
|
||||
}
|
||||
|
||||
if(noise > 0.6){
|
||||
color.rgb = S2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue