Page 1 of 1
RadialBlur - how to apply?
Posted: Wed Sep 12, 2012 3:08 am
by darkhog
I've found this cool RadialBlur shader online:
http://www.gamerendering.com/2008/12/20 ... ur-filter/ - but I don't know how to apply it to whole screen. Can you help me?
Posted: Wed Sep 12, 2012 10:22 am
by Kjell
Hi darkhog,
You need to render your scene to a RenderTarget component and then apply the shader to that. Attached is a simple example ( the shader isn't all that cool though ).
K
Posted: Wed Sep 12, 2012 12:16 pm
by darkhog
OK, but how do I make it so canvasMesh and cnavas target would be used only in specified AppState? I need this effect in only one appstate and AppStates doesn't have OnBeginRenderPass...
Posted: Wed Sep 12, 2012 12:52 pm
by Kjell
Hi darkhog,
There are a number of ways you can do that. You can for instance put the SetRenderTarget located in OnBeginRenderPass in a Condition component, or change the RenderTarget property of SetRenderTarget at run-time. Attached is a example using the second method.
K
Posted: Wed Sep 12, 2012 1:55 pm
by darkhog
Doesn't work for me, but that's most likely my fault. I'll send you project file via PM, as I don't want to reveal my demo publicly just yet.