Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
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. https://files.catbox.moe/mnnuoz.... |
||||
|
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. |
||||
|
Thanks for shareing. |
||||
|
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 :) |
||||
|
@Hadoken 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. @Sven Welcome! @JIC Now to see if I can convert one to DirectX without pulling my hair out. |
||||
|
@Hadoken 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. https://files.catbox.moe/goe7mw.... |
|