v.2024-08-25
Parent Page

Shaders

Links

  1. gregs qna2

Controls

In order to do analysis on shaders we need to remap controls temporarily for next shader/previous shader.
Loading one at a time takes to long to really notice major differences.
Look in here
\\DonkeyKong\configs\all\retroarch.cfg
We see thos
# Applies next and previous shader in directory.
input_shader_next = "m"
input_shader_prev = "n"
So just hook up a USB Keyboard
And press 5+n to cycle through them
5 is the Hot Key

Results

On such a small screen shaders are kind are not easy to see.
Still shader upscale is noticible and kind of nice on the small screen.
The following scripts all work.
I cycled throug many using keys and MOST are worse than no shader so just stick to the ones with turned on with the scripts.

Shader Scripts

shader-none.sh

#!/bin/bash
cd /opt/retropie/configs/all/retroarch/config
if test -f "global.glslp"; then
    echo "file exists, removing"
    rm global.glslp
fi

shader-scanlines_horizontal.sh

#!/bin/bash
cd /opt/retropie/configs/all/retroarch/config
if ! test -f "global.glslp"; then
    echo "file exist does not exist adding"
    echo "#reference \"../shaders/global.glslp\"" > global.glslp
fi
cd /opt/retropie/configs/all/retroarch/shaders
cp -f zfast_crt_standard.glslp global.glslp

shader-scanlines_vertical.sh

#!/bin/bash
cd /opt/retropie/configs/all/retroarch/config
if ! test -f "global.glslp"; then
    echo "file exist does not exist adding"
    echo "#reference \"../shaders/global.glslp\"" > global.glslp
fi
cd /opt/retropie/configs/all/retroarch/shaders
cp -f zfast_crt_standard_vertical.glslp global.glslp

shader-upscale.sh

#!/bin/bash
cd /opt/retropie/configs/all/retroarch/config
if ! test -f "global.glslp"; then
    echo "file exist does not exist adding"
    echo "#reference \"../shaders/global.glslp\"" > global.glslp
fi
cd /opt/retropie/configs/all/retroarch/shaders
cp -f xbr-lv1-noblend.glslp global.glslp