From 706fe1b30c49d7efa1785006a0669529ed4713e7 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 25 Dec 2018 11:59:36 +0800 Subject: *misc --- bin/SDL2.dll | Bin 771072 -> 771072 bytes bin/cembed.exe | Bin 11264 -> 11264 bytes bin/game/main.lua | 5 +++-- bin/jin.exe | Bin 596992 -> 593920 bytes bin/lua51.dll | Bin 364544 -> 364544 bytes 5 files changed, 3 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/SDL2.dll b/bin/SDL2.dll index 85a842f..051c861 100644 Binary files a/bin/SDL2.dll and b/bin/SDL2.dll differ diff --git a/bin/cembed.exe b/bin/cembed.exe index cc0629c..56f8692 100644 Binary files a/bin/cembed.exe and b/bin/cembed.exe differ diff --git a/bin/game/main.lua b/bin/game/main.lua index bba760e..9ee816c 100644 --- a/bin/game/main.lua +++ b/bin/game/main.lua @@ -176,12 +176,13 @@ function jin.core.onLoad() #FRAGMENT_SHADER Color frag(Color col, Texture tex, Vertex v) { - float a = abs(sin(jin_Time.x)) * 3.14; + float t = jin_Time.x; + float a = abs(sin(t)) * 3.14; vec2 p = vec2(0.5*cos(a) + 0.5, 0.5*sin(a) + 0.5); vec2 dir = v.uv - p; float d = .7 * length(dir); normalize(dir); - vec2 value = d * dir * 200 * abs(sin(jin_Time.x * 3)); + vec2 value = d * dir * 200 * abs(sin(t * 3)); vec4 c1 = texel(tex, v.uv - value / jin_RenderTargetSize.x); vec4 c2 = texel(tex, v.uv); diff --git a/bin/jin.exe b/bin/jin.exe index 4b51aa4..8588f84 100644 Binary files a/bin/jin.exe and b/bin/jin.exe differ diff --git a/bin/lua51.dll b/bin/lua51.dll index 80e34cf..c7592fb 100644 Binary files a/bin/lua51.dll and b/bin/lua51.dll differ -- cgit v1.1-26-g67d0