libretro / common-shaders

Collection of commonly used Cg shaders. These shaders are usable by either HLSL and/or Cg runtime compilers. The cg2glsl script will translate most of these into GLSL shaders.
http://www.libretro.com
1.03k stars 250 forks source link

[Request] Opacity for imgborder.cgp #90

Closed shinra358 closed 7 years ago

shinra358 commented 7 years ago

I would like to request an opacity option for the images used for the imgborder.cgp. Thanks.

hizzlekizzle commented 7 years ago

How would that work? You want the border to be able to cover the game screen but with the screen visible behind it?

shinra358 commented 7 years ago

It would be for unconventional uses like, normal overlays such as watermarks on gameplay vids to save on reencoding time. Or custom overlays like mame and snes9x can use. One of which could be loading a scanline png and the opacity can lighten the effect so it wouldnt appear too dark. Things like that.

hizzlekizzle commented 7 years ago

Oh, I see. Well, in that case, is there a reason you want to use a shader instead of an overlay?

shinra358 commented 7 years ago

Using this on a few other emus other than retroarch. For retroarch, it already has all that built in. When I asked about using overlays in the snes9x github as a new feature, the author recommended me to use the shader stated in the initial post. And that is what brought me here. Because not all emus have overlay support.

hizzlekizzle commented 7 years ago

Ah, ok then. Yeah, sure, I can add it. I'll post back here when it's done.

shinra358 commented 7 years ago

Thx bud, much appreciated.

hizzlekizzle commented 7 years ago

Ok, you should be all set: https://github.com/libretro/common-shaders/commit/296c17638ecc314939080584c9cbb7d624e7468d Feel free to reopen this if it doesn't act like you expect, etc.

shinra358 commented 7 years ago

works perfect. all is well ;)

shinra358 commented 7 years ago

Thx bud. Appreciate it.

On Oct 21, 2016 9:55 AM, "hizzlekizzle" notifications@github.com wrote:

Ah, ok then. Yeah, sure, I can add it. I'll post back here when it's done.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/libretro/common-shaders/issues/90#issuecomment-255383503, or mute the thread https://github.com/notifications/unsubscribe-auth/ADy0M-F8RTVsDd9hSm-8HeeJJDw_Nyn4ks5q2MRngaJpZM4KcXgy .