Help Please Shader for MAME core

Im using the Retroarch MAME core (Raspberry Pi 2) with the default shader on a 15khz monitor the problem is its too dark I need one with slightly higher brightness, none of the preset ones seem to suit and are still too dark. Im a total newbie at this sort of thing would anyone be able to please upload a shader for me or at least point me in the right direction it would be much appreciated.

Many Thanks

You can add the image-adjustment shader (in shaders_glsl/hunterk/misc/) alone or on top of anything else to provide a lot of control over things like brightness, contrast, cropping, etc.

Thanks for replying hunterk much appreciated where can I download the image-adjustment shader from?

You can get all of the glsl shaders from RetroArch’s online updater or you can get just that shader from here: https://raw.githubusercontent.com/hizzlekizzle/glsl-shaders/master/misc/image-adjustment.glsl

Thanks Hunterk will give it a try tomorrow, its so frustrating im actually happy with the default shader I only just need to increase the brightness slightly you would of thought they would of included an option in the main menu to adjust it

That’s sort of a philosophical choice in RetroArch’s design: graphical stuff is done through the programmable shader pipeline whenever possible.

Ok ive entered all the text into a glsl file ive then run Retroarch selected the quick menu and loaded and applied the shader but nothing changes, sorry to be a complete noob do I need to change a particular value to increase the brightness?

Can anyone please help?

Yes, once you’ve loaded and applied the shader, go into the ‘preview shader parameters’ and you can change the brightness, etc. there.

Once you find settings you like, you can hardcode them in the shader by changing the default value in the parameters list at the top of the file. The first number after the name is the default value. In this example, the bold, italicized number is the default: #pragma parameter brightness “Brightness” 1.0 0.0 2.0 0.1

Thanks for the reply, ive uploaded a youtube video link below (im using a Raspberry PI 2 Retroarch build, ive edited the retroach.gpsl file ive deleted all the lines and swapped them for your new lines and saved it. I can select the new shader but have no preview shader parameter options, also in the video I select a different CRT shader as a test and also I have no preview shader options, am I missing something?

[QUOTE=hunterk;33035]Yes, once you’ve loaded and applied the shader, go into the ‘preview shader parameters’ and you can change the brightness, etc. there.

Once you find settings you like, you can hardcode them in the shader by changing the default value in the parameters list at the top of the file. The first number after the name is the default value. In this example, the bold, italicized number is the default: #pragma parameter brightness “Brightness” 1.0 0.0 2.0 0.1[/QUOTE]

Ok, your shader isn’t actually loading. The image-adjustment shader isn’t a preset, but rather an individual shader (individual shaders end in *.glsl and presets end in *.glslp). The individual shaders are written in GLSL shader language while the presets are just plaintext files that tell RetroArch how to combine a series of individual shaders.

When a shader preset is loaded successfully, you’ll see the number of shader passes tick up and the individual shader files will be displayed, like this:

Once they’re actually loaded, you should be able to access the parameters.

If you already have a preset that you like except that it’s too dark, you can increment the number of passes by 1 (i.e., 3 to 4 or whatever) and then put the image-adjustment shader in that additional slot, hit ‘apply’ and then its parameters will be added to the list of available options.

Hunterk, many many thanks thats where I was going wrong ive now got it all working perfectly :slight_smile:

Awesome. Glad you got it going :slight_smile: