Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
free example screen shader overlay project

2023-06-01 06:26:57


Warning: this is an OpenGL project. No DirectX.

Did some tests taking a shader from Shadertoy and adding it to a plane to use as an overlay like you see in most of the horror games on itch (they don't use planes tho probably). Figured I'd give it away to anyone who is interested. It's very hacked together and I spent no time on it but it's certainly possible to do something interesting with this. My main objective was to learn shaders and help some people do away with ReShade if possible. The code part wasn't too bad at all. It could still use some polish and artistry but that is up to you if interested. Hope someone learns something from this. Cheers.

2023-06-01 09:10:59

Thanks for sharing @Guest,

since I'm also into CopperCube OpenGL/GLSL shader programming, I'd like to test your example, but the shader won't compile on my system (maybe my graphics setup might just be weird). Could you please check if your uploaded version is correct from your side?

Since CopperCube Windows target publishing is limited to OpenGL v3.0/GLSL v130 (not to be confused with Android, iOS, WebGL GLSL ES), getting more modern examples found on platforms like shadertoy to work with CC is no easy task because of backwards compatibility issues regarding outdated GLSL syntax & features, but I like the better performance over DirectX.

Registered User
2023-06-01 11:08:17

Thanks for shareing.

2023-06-01 14:43:15

Nice one, works fine on my side, you can create more cool screenspace shaders with RTT, @josh has also created some nice screenspace shader, glad that people are diving and exploring more areas of the engine :)

2023-06-01 18:57:41


I just tested it on an old laptop and it didn't compile either. Said something about not being able to convert a vec4 to vec2. Can you confirm that is your error as well? I've looked over the code and nothing sticks out to me as the issue just yet but I will look into it.




Now to see if I can convert one to DirectX without pulling my hair out.

2023-06-01 20:30:58


Believe I found the issue and this one should work on version 120 and up. It worked on my old laptop with no errors. Let me know if it works for you. Thanks.

Create reply:

Posted by: (you are not logged in)

Enter the missing letter in: "Inter?ational" (you are not logged in)




Possible Codes

Feature Code
Link [url] [/url]
Bold [b]bold text[/b]
Image [img][/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]



Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact