diff options
author | chai <chaifix@163.com> | 2019-01-07 09:54:08 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-01-07 09:54:08 +0800 |
commit | 2af7f2f5e3da8f6c236e7996781950e1bc6c1f9c (patch) | |
tree | f6a8a9618e146c93e4d4d964a6e13cd16f528693 /samples/post-processing | |
parent | 909e544ed322b28a6f59febf3213e05068e9e93c (diff) | |
parent | da056982e50bdd9cb9f944691cc88ca98b053b77 (diff) |
Merge branch 'master' of warmcat.org:/home/git-repo/Jin
Diffstat (limited to 'samples/post-processing')
-rw-r--r-- | samples/post-processing/config.lua | 2 | ||||
-rw-r--r-- | samples/post-processing/shaders/rgb-split.jsl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/samples/post-processing/config.lua b/samples/post-processing/config.lua index 095ee28..3c6ff07 100644 --- a/samples/post-processing/config.lua +++ b/samples/post-processing/config.lua @@ -1,6 +1,6 @@ return { - title = "window form", + title = "post-processing", icon = "splash.png", vsync = true }
\ No newline at end of file diff --git a/samples/post-processing/shaders/rgb-split.jsl b/samples/post-processing/shaders/rgb-split.jsl index e3b8abc..aba401b 100644 --- a/samples/post-processing/shaders/rgb-split.jsl +++ b/samples/post-processing/shaders/rgb-split.jsl @@ -9,7 +9,7 @@ Vertex vert(Vertex v) Color frag(Color col, Texture tex, Vertex v) { float t = jin_Time.x; - t = 0.02; + //t = 0.02; 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; @@ -22,4 +22,4 @@ Color frag(Color col, Texture tex, Vertex v) vec4 c3 = texel(tex, v.uv + value / jin_RenderTargetSize.y); return vec4(c1.r, c2.g, c3.b, c1.a + c2.a + c3.b); } -#END_FRAGMENT_SHADER
\ No newline at end of file +#END_FRAGMENT_SHADER |