[Solved]Combine multiple shader blur together

Posted By: djfeeler

[Solved]Combine multiple shader blur together - 08/13/14 13:51

Hello !

I'm new to shaders, I try to combine multiple shader blur together. I added that I programmed. Please help me by providing me with a small example.

Thank you in advance.

Djfeeler

link file
Posted By: DLively

Re: Combine multiple shader blur together - 08/13/14 14:56

Hi, you should put more details into what you are asking for.
Furthermore, I believe the wiki has what what you are looking for laugh

http://opserver.de/qwik8/index.php?title=Shaders
Posted By: djfeeler

Re: Combine multiple shader blur together - 08/13/14 16:05

Hello,

I would like to see a blur shader and over another shader blur and over another shader blur and over an hour and gauss over a gauss V.

I use the render target, I just happen to do a shader to blur my scene, I actually would display multiple shader blur to better blur my scene but I do not know how.

Thanks in advance.
Posted By: sivan

Re: Combine multiple shader blur together - 08/14/14 06:47

maybe using more passes?
Posted By: djfeeler

Re: Combine multiple shader blur together - 08/14/14 10:35

Thanks for your response ^^

Here is the shader blur with multipass. Is it well realized ?

link file

Thanks in advance.

Djfeeler
Posted By: MasterQ32

Re: Combine multiple shader blur together - 08/14/14 22:32

I haven't looked into the code but this sounds like a job for multiple postprocessing shader stages (look into mtlView.c, stage, MATERIAL, VIEW in the manual)
Posted By: djfeeler

Re: Combine multiple shader blur together - 08/15/14 05:19

Thanks for your response ^^

I found how to do this.

Code:
#include <acknex.h>
#include <default.c>
#include <mtlView.c>

//****** Function main ******

void main()
{
	video_set(1920,1080,0,1);
	level_load("level.wmb");
	
	mtl_blur.skill11 = 25;
	pp_set(camera,mtl_blur);
	
	pp_add(mtl_sepia);
}

© 2024 lite-C Forums