How can I adjust Shaders?

Hi friends!

Pls, I would like to know if there is possibility of adjust brightness or light to shader “gbc-2x.cgp” ?

This is the path: “shaders_cg\handheld\console-border\gbc-2x.cgp”

I wonder if I have to edit some files (?). I’m still a newbie. As you well know, the shader it has low backlight.

Pls, see the snapshot :

Appreciate any help …

Thank you in advance!

You can put the misc/image-adjustment shader as a first pass by editing the gbc-2x cgp. That will let you boost the brightness of the image before the LCD effect gets applied.

First of all, many thanks for replying, hunterk. I value your comment, but I also confess to not entirely understand respect what you say …

Pls, could you clarify this for me once more? Could show me how to do that ?

P.S. I’m just starting …

Many thanks in advance!

The cgp files are just plaintext files that tell RetroArch how to combine different shaders. If you open the gbc-2x.cgp in a text editor (notepad++ is good and free), you’ll see a number of shaders (shaders = 2 or whatever) and then a bunch of lines labeled “whatever0” (shader0, filter_linear1, etc.). That number tells which shader pass it applies to.

So, to add in a new shader at the beginning, change shaders = 2 to shaders = 3, change all of the shader1 stuff to shader2, all of the shader0 stuff to shader1 and then add in a new shader0 = “…/…/misc/image-adjustment.cg”.

Sorry for the delay, Mr. Hunterk!

Once again, thanks for your time. Pls, see the shader:

shaders = "2"


shader0 = "../lcd_cgwg/lcd-grid.cg"

filter_linear0 = "false"

wrap_mode0 = "clamp_to_border"

scale_type_x0 = "source"

scale_x0 = "4.000000"

scale_type_y0 = "source"

scale_y0 = "4.000000"


shader1 = "shader-files/gb-pass-5.cg"

filter_linear1 = "true"

wrap_mode1 = "clamp_to_border"


parameters = "SCALE;OUT_X;OUT_Y;GRID_STRENGTH"

GRID_STRENGTH = "0.150000"

SCALE = "0.5"

OUT_X = "1600.0"

OUT_Y = "800.0"


textures = "BORDER"

BORDER = "resources/gba-border-square-4x.png"

BORDER_linear = "true"

BORDER_wrap_mode = "clamp_to_border"

BORDER_mipmap = "false"

Pls, I wonder how it would change …(?)

I simply want to know how to adjust brightness or light of shader. I really cannot understand what he means with “misc/image-adjustment.cg” (?)

Thanks so much for everything.

something like this:

shaders = "3"
shader0 = "../../misc/image-adjustment.cg"
filter_linear0 = false

shader1 = "../lcd_cgwg/lcd-grid.cg"

filter_linear1 = "false"

wrap_mode1 = "clamp_to_border"

scale_type_x1 = "source"

scale_x1 = "4.000000"

scale_type_y1 = "source"

scale_y1 = "4.000000"


shader2 = "shader-files/gb-pass-5.cg"

filter_linear2 = "true"

wrap_mode2 = "clamp_to_border"


parameters = "SCALE;OUT_X;OUT_Y;GRID_STRENGTH"

GRID_STRENGTH = "0.150000"

SCALE = "0.5"

OUT_X = "1600.0"

OUT_Y = "800.0"


textures = "BORDER"

BORDER = "resources/gba-border-square-4x.png"

BORDER_linear = "true"

BORDER_wrap_mode = "clamp_to_border"

BORDER_mipmap = "false"

Then you can go into the shader menu and mess with the parameters to make it brighter.

Your help is greatly appreciated Hunterk!

All is OK!

Many thanks to you all for your support.