Added fullscreen map screenshot
This commit is contained in:
@@ -10,6 +10,7 @@ text.link.itch.io.description = itch.io page with PC downloads and web version
|
||||
text.link.google-play.description = Google Play store listing
|
||||
text.link.wiki.description = Official Mindustry wiki
|
||||
text.linkfail = Failed to open link!\nThe URL has been copied to your clipboard.
|
||||
text.screenshot = Screenshot saved to {0}
|
||||
text.gameover = Game Over
|
||||
text.gameover.pvp = The[accent] {0}[] team is victorious!
|
||||
text.sector.gameover = This sector has been lost. Re-deploy?
|
||||
@@ -384,6 +385,7 @@ command.retreat = Retreat
|
||||
command.patrol = Patrol
|
||||
keybind.press = Press a key...
|
||||
keybind.press.axis = Press an axis or key...
|
||||
keybind.screenshot.name = Map Screenshot
|
||||
keybind.move_x.name = Move x
|
||||
keybind.move_y.name = Move y
|
||||
keybind.select.name = Select/Shoot
|
||||
|
||||
@@ -12,7 +12,6 @@ precision highp int;
|
||||
uniform sampler2D u_texture;
|
||||
uniform vec2 u_texsize;
|
||||
uniform float u_time;
|
||||
uniform float u_scaling;
|
||||
uniform float u_dp;
|
||||
uniform vec2 u_offset;
|
||||
|
||||
@@ -28,7 +27,7 @@ void main() {
|
||||
vec2 T = v_texCoord.xy;
|
||||
vec2 coords = (T * u_texsize) + u_offset;
|
||||
|
||||
T += vec2(sin(coords.y / 3.0 + u_time / 20.0) / 240.0, sin(coords.x / 3.0 + u_time / 20.0) / 240.0) * u_scaling;
|
||||
T += vec2(sin(coords.y / 3.0 + u_time / 20.0), sin(coords.x / 3.0 + u_time / 20.0)) / u_texsize;
|
||||
|
||||
float si = sin(u_time / 20.0) / 8.0;
|
||||
vec4 color = texture2D(u_texture, T);
|
||||
|
||||
Reference in New Issue
Block a user