From 0b3cc0e4a76839fb503cfa14f3fe4259ff09a055 Mon Sep 17 00:00:00 2001 From: Tim Anema Date: Fri, 5 Dec 2014 15:46:05 -0500 Subject: [PATCH] fixed example of chromatic abberation in complex --- examples/complex.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/complex.lua b/examples/complex.lua index 077a911..20f5fc3 100644 --- a/examples/complex.lua +++ b/examples/complex.lua @@ -217,7 +217,10 @@ function love.update(dt) if colorAberration > 0.0 then -- vert / horz blur lightWorld.post_shader:addEffect("blur", 2.0, 2.0) - lightWorld.post_shader:addEffect("chromatic_aberration", math.sin(lightDirection * 10.0) * colorAberration, math.cos(lightDirection * 10.0) * colorAberration, math.cos(lightDirection * 10.0) * colorAberration, math.sin(lightDirection * 10.0) * -colorAberration, math.sin(lightDirection * 10.0) * colorAberration, math.cos(lightDirection * 10.0) * -colorAberration) + lightWorld.post_shader:addEffect("chromatic_aberration", + {math.sin(lightDirection * 10.0) * colorAberration, math.cos(lightDirection * 10.0) * colorAberration}, + {math.cos(lightDirection * 10.0) * colorAberration, math.sin(lightDirection * 10.0) * -colorAberration}, + {math.sin(lightDirection * 10.0) * colorAberration, math.cos(lightDirection * 10.0) * -colorAberration}) else lightWorld.post_shader:removeEffect("blur") lightWorld.post_shader:removeEffect("chromatic_aberration")