Page 1 of 1

Combining Shaders

Posted: Sun May 05, 2013 5:33 pm
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.

Re: Combining Shaders

Posted: Sun May 05, 2013 7:11 pm
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

Re: Combining Shaders

Posted: Sun May 05, 2013 7:32 pm
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 :)