Page 1 of 1

[EFFECT] VignetteColor

PostPosted: Wed Jul 13, 2016 7:04 pm
by chrisbrobs
Vignette with RGB color and intensity parameters.

requested by @blurymind

Image

https://dl.dropboxusercontent.com/u/22173473/VignetteColor%20fx.rar

You can find a similar solution posted by @Funky Koval on the original request forum posted by blurymind.

Re: [EFFECT] VignetteColor

PostPosted: Thu Jul 14, 2016 9:54 pm
by blurymind
@chrisbrobs You are the man! Thank you sir! Amazingly fast :)

Re: [EFFECT] VignetteColor

PostPosted: Tue Jul 19, 2016 4:59 pm
by justifun
@chrisbrobs - Does this only work on a sprite? or can it be applied to a whole layer edge?

Re: [EFFECT] VignetteColor

PostPosted: Thu Jul 21, 2016 1:08 pm
by chrisbrobs
@justifun

Does this only work on a sprite? or can it be applied to a whole layer edge?

I made the effect using only a sprite object to test ( so probably not).

If I get time I will try to get it working for layers..i will update you if I can sort it out.

Re: [EFFECT] VignetteColor

PostPosted: Fri Jul 22, 2016 1:36 pm
by chrisbrobs
@justifun

I added a couple of lines to the fx file so that it works on layers now.
-------------------------------------------------------------
Insert the following 2 lines below line 6 -

uniform mediump float pixelHeight;
uniform mediump float pixelWidth;
--------------------------------------------------------------
The RAR file in the first post has been updated.

Note-
You must have sprite/back ground objects on the the layer that the effect is applied to,In order for you to see the effect.