Can this shader be imported to ReShade? On Github

  • Posts: 4
4 years 5 months ago #1 by scoodidabop
Hello to you ancient code masters from the land of binary. I implore you to aid me on this quest. A quest for delicious CRT shading, ported anywhere across this great land.

The shader in question is "CRT-Royale" and it is the fruit of the Gods. This shader comes to us packed in the "RetroArch" emulator, created by one, Troggle of Monkey. He is a legendary warrior who hath since vanished from this world. What he leaves behind is something I wish to import posthaste into ReShade, showering it across other executables to supply our humble friends with electron beam emulating goodness, rife with unparalleled shadow-of-masking, heretofore only matched by the real cathode ray tubes of yesteryear.

Here's the shader on github. I desperately this can be imported; github.com/TroggleMonkey/common-shaders/...aster/crt/crt-royale

My humblest gratitude to you, mighty code master.
The following user(s) said Thank You: Qsimil

Please Log in or Create an account to join the conversation.

  • Posts: 4
4 years 5 months ago #2 by scoodidabop
Bump? Is there anyone that can even just confirm if this is possible or not?

Please Log in or Create an account to join the conversation.

  • Posts: 105
4 years 5 months ago #3 by JPulowski
I have stated in the past that I will port entire libretro shaders to ReShade some time in the future. But it requires extra work for each shader. The syntax and internal structure is quite different from ReShade's. So yeah it is possible, but one needs to understand how libretro and ReShade works, it is not simple as copy + pasting the code. :)
The following user(s) said Thank You: Constantine PC, PasserBy, scoodidabop

Please Log in or Create an account to join the conversation.

  • Posts: 4
4 years 5 months ago #4 by scoodidabop
That port will be much appreciated! In the meantime I guess I better start learning how each system works, maybe I can help.

Please Log in or Create an account to join the conversation.

  • Posts: 4
4 years 2 months ago #5 by GlobalShader

JPulowski wrote: I have stated in the past that I will port entire libretro shaders to ReShade some time in the future. But it requires extra work for each shader. The syntax and internal structure is quite different from ReShade's. So yeah it is possible, but one needs to understand how libretro and ReShade works, it is not simple as copy + pasting the code. :)


Is porting of these shaders still in the plans?

Please Log in or Create an account to join the conversation.

  • Posts: 4
4 years 2 months ago #6 by scoodidabop
I sure hope so! I'll have some time in a few weeks to sit down with it and learn the coding enough to make an attempt. I have zero experience but I'm willing to learn for the sake of getting this port done.

Please Log in or Create an account to join the conversation.

  • Posts: 4
4 years 1 month ago - 4 years 1 month ago #7 by GlobalShader

scoodidabop wrote: I sure hope so! I'll have some time in a few weeks to sit down with it and learn the coding enough to make an attempt. I have zero experience but I'm willing to learn for the sake of getting this port done.

If you are trying to port CRT-Royale to reshade could you also try to port it to Ishiiruka Dolphin? It seems to have even more advanced post-processing than reshade so porting this shader to Ishiiruka may be easier. You can make a pull request to Ishiiruka on github.

Please Log in or Create an account to join the conversation.

  • Posts: 292
4 years 1 month ago #8 by matsilagi
Bumping this.
Really want to see this on ReShade, seems even more precise than the shader i have.

Please Log in or Create an account to join the conversation.

  • Posts: 42
4 years 1 month ago - 4 years 1 month ago #9 by WLHM15
This is a lot of shader files. It is possible to do, but someone need to understand how that shader works before porting it into Reshade.. and that is took a long time..

Please Log in or Create an account to join the conversation.

  • Posts: 292
4 years 1 month ago - 4 years 1 month ago #10 by matsilagi
Actually, no , crt-royale.cgp is the main shader (with most effects) and the h is the parameters, rest is the passes.

Rest is all textures, all that really needs to be ported is that cgp + its CGs.

The other ones are just the shader for weaker PCs, since most of us have beefy PCs, we won't need those.
The following user(s) said Thank You: WLHM15

Please Log in or Create an account to join the conversation.

  • Posts: 40
4 years 1 month ago - 4 years 1 month ago #11 by Iddqd
Shader have 12 passes, and fake bloom version 9 passes
I Start work on porting shader
The following user(s) said Thank You: matsilagi, jelbo

Please Log in or Create an account to join the conversation.

  • Posts: 292
4 years 1 month ago - 4 years 1 month ago #12 by matsilagi
Nice. Remember to keep us updated.

EDIT:His HD died, so i guess we will have to wait a bit more, maybe for another person.
I decided to pack the shader (based on the last RetroArch revision): mega.nz/#!1ZlzmAYb!RHk1Ehj0GLP54p_TEGvGdWhLupldFXBq3TkBoeQABQc

This includes only the files you will need to port the shader.

Please Log in or Create an account to join the conversation.

  • Posts: 4
4 years 1 month ago - 4 years 1 month ago #13 by GlobalShader

matsilagi wrote: Nice. Remember to keep us updated.

EDIT:His HD died, so i guess we will have to wait a bit more, maybe for another person.
I decided to pack the shader (based on the last RetroArch revision): mega.nz/#!1ZlzmAYb!RHk1Ehj0GLP54p_TEGvGdWhLupldFXBq3TkBoeQABQc

This includes only the files you will need to port the shader.

The thing is do we really know for sure if a complex shader like CRT-Royale can be ported to Reshade? JPulowski mentiond some limitations in the Reshade itself. Maybe it would be easier if reshade got some new features?

Please Log in or Create an account to join the conversation.

  • Posts: 292
4 years 1 month ago - 4 years 1 month ago #14 by matsilagi
While reading, the only limitations i found was the tex2D_Linearize and the frame counter thing, both which can use workarounds (first one is defined on other .h file i guess, second one can use Timer with the time elapsed to take that frame).

There's probably others, but those are the main ones, there's too much comments which kinda confuses me when reading, but im pretty sure that someone with skill and patience can pull this up on 25 min.

Please Log in or Create an account to join the conversation.