Combining Shaders

If you're having problems with Snes9x, or think you've found a bug, this is the place to be.
Post Reply
WalMartCartPusher
Snes9x White Belt
Posts: 32
Joined: Thu May 02, 2013 2:33 pm

Combining Shaders

Post by WalMartCartPusher »

I know that the code for making MetaShaders in a .cgp format in the form of the following code already was shown:

shaders = 1
shader0 = xBR-v3.8c-gamma.cg
scale_type0 = source
scale0 = 5
filter_linear0 = false


But what if I wanted to add another one to it...what would the syntax look like or how would it be written so that the code could inject properly? I have read all the readme on the GitHub Repository, but it does not show and example of how to actually combine two at once...the other example show in these forums only showed one example of how to use bilinear filtering in xBR but the same method is used to combine two different shaders according to teh readme.

So in short my goal is to have the combined two different shaders.
User avatar
OV2
Official Win32 Porter/Dev
Posts: 679
Joined: Thu Aug 30, 2007 10:15 pm

Re: Combining Shaders

Post by OV2 »

Code: Select all

shaders = 2
shader0 = xBR-v3.8c-gamma.cg
scale_type0 = source
scale0 = 5
filter_linear0 = false
shader1 = second_shader.cg
scale_type1 = source
scale1 = 2
filter_linear1 = false
WalMartCartPusher
Snes9x White Belt
Posts: 32
Joined: Thu May 02, 2013 2:33 pm

Re: Combining Shaders

Post by WalMartCartPusher »

OV2 wrote:

Code: Select all

shaders = 2
shader0 = xBR-v3.8c-gamma.cg
scale_type0 = source
scale0 = 5
filter_linear0 = false
shader1 = second_shader.cg
scale_type1 = source
scale1 = 2
filter_linear1 = false


Thanks :)
Post Reply