Converting a Unity shader to Godot shader

Godot Version

4.2.2.stable.official

Question

Hi once more,

So since I got my PSX shader to work properly, I now need a CRT shader and VHS shader (trying to go for the style of puppet combo games). I have searched endlessly for a decent CRT shader for my project and have not found it.

Instead, Unity has this really nice CRT shader available that would perfectly capture the style I am looking for. Problem is that, it’s for Unity not Godot.

So here I am wondering, is it possible to adapt this Unity shader for Godot? If so, how would I do this? (first time trying out shaders, so I am really new to this). Any help would be appreciated!

代码呢?
没有代码怎么调整?

1 Like

抱歉,在我这里Github没有网络

1 Like

Unity uses HLSL, so it’s not trivial to convert such a shader to the Godot shading language that is based on GLSL.
Maybe you can try another solution, like this one:

1 Like

Wow, thank you so much! At first it did not look right, but then did a few adjustments and now it is look pretty much like the Unity CRT shader, maybe even a bit better!