Increasing the size of the GameBoy DMG Handheld shader?

I know the Gameboy DMG shader has preset scaling size (x1 to x6) but I would like to ‘zoom’ in even more and thus increase the screen size for this shader. How do I go about editing this shader so I could add x7 and x8 cpg preset shader settings?

Anyone?

I think the biggest issue is going to be the background/overlay, which is hardcoded for the scale factors, AFAIK. You’ll have to spend some time in Photoshop.

Thanks for the info. That would be alot work to carry out.

Ok then, is it possible to extract just the shader used as it looks more authentic than the other Gameboy shader thats in the handhelds folder??

Looks like you can just take the pass5 shader out of the mix (it’s just maister’s old border shader) and then set the hardcoded scale factor in pass0 to match whatever scale you’re going to use.

You could then make a quick overlay using the gameboy image that was being used by the border shader and tweak its size on the fly using the overlay scale. (theoretically; I haven’t actually tried it)

1 Like

Thanks, or though i can see the correctly line in pass0 for the scaling??

it’s line 101, but you should probably skip the hardcoded scale altogether and switch back to the original shader’s auto-configured max-scale-the-screen-will-hold method: floor(IN.output_size.y / IN.video_size.y)

1 Like

Hmm so if i have a native res of 1440p what should i set this too?

I did just try changing the screen size with the ‘Custom Aspect Ratio’ option within RGUI but didnt seem to work

i saw this, so i added 7x and 8x shaders, as requested:

viewtopic.php?f=6&t=811&p=17159#p17159

1 Like

Thank you!