Shaders guide?

Support and general discussion.
Post Reply
User avatar
resle
Posts: 51
Joined: Mon 23 Feb, 2015 8:00 am

Shaders guide?

Post by resle » Fri 19 Jan, 2018 12:46 pm

I just noticed that with V13 shaders can be loaded once Opengl 3.0 has been selected as renderer.
I had no idea about this! Was the feature unannounced or am I missing or something, some manual or readme file or else?

Anyway, I have been trying to load crt-royale.glslp to no avail.
Upon selecting it, and then clicking "Apply", I get a popup saying

Pcem Error
file '', line 1: '=' expected.

for about 2 seconds, after which pcem crashes and closes.
Attachments
crt-royale.zip
The shader
(16.15 KiB) Downloaded 38 times
386-40.cfg
My configuration
(1.41 KiB) Downloaded 33 times

User avatar
leilei
Posts: 599
Joined: Fri 25 Apr, 2014 4:47 pm

Re: Shaders guide?

Post by leilei » Sat 20 Jan, 2018 1:10 am

CRT-Royale's infamous for making many shader compilers (in video drivers) upset. I'd suggest starting with CRT-Easymode-Halation instead.

I have a personal cache of shaders here:
https://github.com/leilei-/someshaders

Most of it are presets on a crt-easymode-halation (and that shader itself is tweaked further with some hacks here and there)

User avatar
resle
Posts: 51
Joined: Mon 23 Feb, 2015 8:00 am

Re: Shaders guide?

Post by resle » Sat 20 Jan, 2018 7:38 am

Thanks a lot, very useful.

I am surprised that such a game changer as adding shaders has gone pretty much unannounced/undocumented (but maybe again, it's just me having missed something..)

A. Naim
Posts: 103
Joined: Thu 09 Jul, 2015 5:06 pm

Re: Shaders guide?

Post by A. Naim » Sat 20 Jan, 2018 10:38 am

resle wrote:
Fri 19 Jan, 2018 12:46 pm
I just noticed that with V13 shaders can be loaded once Opengl 3.0 has been selected as renderer.
I had no idea about this! Was the feature unannounced or am I missing or something, some manual or readme file or else?

Anyway, I have been trying to load crt-royale.glslp to no avail.
Upon selecting it, and then clicking "Apply", I get a popup saying

Pcem Error
file '', line 1: '=' expected.

for about 2 seconds, after which pcem crashes and closes.
Google says you're trying to load a RetroArch shader preset file as a shader:

https://forums.libretro.com/t/cfg-cgp-g ... ces/3691/2

Not the same thing. :) What you have there is an html file that, I guess, RetroArch processes to find presets. This is the GitHub repository for crt-royal, AFAICT:

https://github.com/libretro/common-shad ... crt-royale

You'd have to compile it from cg to glsl. "cg" is a sort-of "meta-shader language". It's not used directly; you compile it to hlsl (DirectX) or glsl (OpenGL) and use those. It'll take some amount of fiddling with code files, as well, as I don't know how compatible it is with PCem.

User avatar
leilei
Posts: 599
Joined: Fri 25 Apr, 2014 4:47 pm

Re: Shaders guide?

Post by leilei » Sat 20 Jan, 2018 4:35 pm

A. Naim wrote:
Sat 20 Jan, 2018 10:38 am
Google says you're trying to load a RetroArch shader preset file as a shader:

Not the same thing. :) What you have there is an html file that, I guess, RetroArch processes to find presets.
PCem can load them.

Post Reply