How to edit Shaders

Ask for help with ScummVM problems

Moderator: ScummVM Team

Post Reply
LavaDrop
Posts: 14
Joined: Sat Apr 01, 2006 11:21 pm

How to edit Shaders

Post by LavaDrop »

How do I open shaders.dat?
How do I save whatever shader I modify back into shaders.dat?

I'm on macOS, btw.

Thanks.
User avatar
Praetorian
ScummVM Developer
Posts: 797
Joined: Tue May 08, 2007 8:54 am
Location: Greece
Contact:

Re: How to edit Shaders

Post by Praetorian »

LavaDrop wrote: Thu Apr 13, 2023 4:37 pm How do I open shaders.dat?
How do I save whatever shader I modify back into shaders.dat?

I'm on macOS, btw.

Thanks.
The info in this thread might be useful, especially starting from: viewtopic.php?p=98198#p98198

Basically the shaders.dat file is simply zipped so you should be able to open it using an app like 7-zip (or whatever MacOS has for unzippng anyway).

But you don't really have to open it; you can find the shaders in the link that sev provides (https://github.com/scummvm/scummvm-shaders).

And you also shouldn't have to recreate a shaders.dat since you can point ScummVM to use an individual file (with .glslp extension) as a shader, with the "Pick file instead..." button.

See here for the official documenation (section: "Shaders")
https://docs.scummvm.org/en/latest/sett ... phics.html
LavaDrop
Posts: 14
Joined: Sat Apr 01, 2006 11:21 pm

Re: How to edit Shaders

Post by LavaDrop »

Thank you for the advice about the DAT file. Now, according to the CRT-Royale readme, the shader is either edited by changing the runtime parameters within retroarch menus (which is impossible here) or via the user-settings.h file, which is missing for GLSL shaders converted from CG because it has been deprecated in favor of Slang shaders which require a Vulkan backend.
Post Reply