Editing gameboy.slangp to create gameboy-color.slangp

I am trying to edit the awesome gameboy.slangp shader to (probably) only take out the color palette and turn it into a GameBoy Color (or general handheld) shader. I am editing stuff around the file, but as soon as there’s some syntax error within it, RA won’t load it any more, making it really difficult for me to figure out how to do it.

Any way, here’s the lines. Would appreciate any help:

shaders = 5

shader0 = shaders/gameboy/shader-files/gb-pass0.slang
filter_linear0 = false
scale_type0 = viewport
scale0 = 1.0
alias0 = "PASS0"

shader1 = shaders/gameboy/shader-files/gb-pass1.slang
filter_linear1 = false
scale_type1 = source
scale1 = 1.0
alias1 = "PASS1"

shader2 = shaders/gameboy/shader-files/gb-pass2.slang
filter_linear2 = false
scale_type2 = source
scale2 = 1.0
alias2 = "PASS2"

shader3 = shaders/gameboy/shader-files/gb-pass3.slang
filter_linear3 = false
scale_type3 = source
scale3 = 1.0
alias3 = "PASS3"

shader4 = shaders/gameboy/shader-files/gb-pass4.slang
filter_linear4 = false
scale_type4 = source
scale4 = 1.0
alias4 = "PASS4"


textures = COLOR_PALETTE;BACKGROUND
COLOR_PALETTE = shaders/gameboy/resources/sample-palettes/gbp-palette.png
COLOR_PALETTE_linear = false
BACKGROUND = shaders/gameboy/resources/sample-bgs/paper-bg.png
BACKGROUND_linear = true
1 Like

This is something i’ve tried to do in the past and not been successful. The way the gameboy shader works is really dependent on the 4-tone mono palette of the original gameboy.

2 Likes

What the hell! I’d never imagine it’d be so complicated. Even editing the colors of that COLOR_PALETTE image doesn’t alter anything :disappointed: