MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

SoltanGris42
MAME Fan
Reged: 11/16/13
Posts: 134
Send PM
Re: Slot Mask
07/12/14 12:59 AM Attachment: Modified_CRT-geom_GLSL_Shader.zip 11 KB (6 downloads)


Here you go.

It's a little weird because the shader was close to the maximum length. I had to shorten some variable names and calculate a couple things in the vertex shader.

There are probably errors in the shader code too since I don't know what I'm doing...

Anyway, there are a couple of new things to set in the CRT-geom.vsh:

saturation
tint

They do what they say. I have it set to 150% saturation (too much!) and 0 degrees of tint but you should fiddle with it.

The rest of the options are in the pixel shaders. I think most drivers will be using the CRT-geom_rgb32_dir.fsh so try changing that file first. An easy way to tell if you have the correct file is by disabling "YUV" because the drop in saturation is easy to notice. Here are the new options:

YUV: enables the tint and saturation changes
APER: enables the aperture grill effect
RGB_M: enables an RGB striped mask instead of Magenta/Green. APER still needs to be set.
LUM_VAR_M: enable to fade out the aperture mask for high luminance colors. Keeps whites looking white.
LUM_MAG: Sets the strength of the previous effect. 0.0-1.0

Note that if you have an older version of sdlmame/sdlmess that the aperture grill won't show up. I don't know what svn revision (or official release version) the needed glsl change made it into.

I assume you know how to set up the mame.ini to get the shader working. Let me know if it works ok for you.







Entire thread
Subject Posted by Posted on
* Use custom shaders on windows?? tjcbs 06/08/14 04:15 AM
. * Custom files (The link is here.) Dullaron  07/14/14 09:06 AM
. * Re: Custom files (The link is here.) Traso  07/15/14 07:49 AM
. * Re: Custom files (The link is here.) Dullaron  07/15/14 08:11 AM
. * Re: Custom files (The link is here.) lamprey  07/16/14 12:00 AM
. * Re: Custom files (The link is here.) Dullaron  07/16/14 12:04 AM
. * Re: Custom files (The link is here.) lamprey  07/23/14 08:10 AM
. * Re: Custom files (The link is here.) Dullaron  07/23/14 08:38 AM
. * Re: Custom files (The link is here.) lamprey  07/23/14 06:24 PM
. * Re: Custom files (The link is here.) Dullaron  07/25/14 05:04 AM
. * Re: Custom files (The link is here.) lamprey  07/25/14 08:02 AM
. * Re: Custom files (The link is here.) Dullaron  07/25/14 08:16 AM
. * Re: Custom files (The link is here.) lamprey  07/23/14 04:34 AM
. * Re: Custom files (The link is here.) Dullaron  07/23/14 06:10 AM
. * I bet you can't do this. Dullaron  06/22/14 04:54 AM
. * Re: I bet you can't do this. Traso  06/22/14 06:59 AM
. * Re: I bet you can't do this. Dullaron  06/22/14 08:31 AM
. * Re: I bet you can't do this. Traso  06/24/14 03:25 AM
. * Re: I bet you can't do this. Vas Crabb  06/24/14 05:10 AM
. * Re: I bet you can't do this. Dullaron  06/24/14 06:20 AM
. * Re: I bet you can't do this. lamprey  06/24/14 05:16 PM
. * Re: I bet you can't do this. Traso  06/25/14 07:51 PM
. * I'm seeing shades of Driver Man..... Traso  06/19/14 08:35 AM
. * Here is dkong. :) Dullaron  06/17/14 12:57 AM
. * Re: Here is dkong. :) lamprey  07/08/14 09:20 PM
. * Re: Here is dkong. :) evh347  07/08/14 06:51 PM
. * Re: Here is dkong. :) lamprey  07/10/14 05:18 AM
. * Re: Here is dkong. :) CiroConsentino  06/17/14 02:30 AM
. * Re: Here is dkong. :) Dullaron  06/17/14 05:17 AM
. * Here are some mods that I done. Dullaron  06/14/14 03:02 AM
. * Slot Mask lamprey  07/11/14 05:53 AM
. * Re: Slot Mask SoltanGris42  07/11/14 06:50 AM
. * Re: Slot Mask R. Belmont  07/16/14 05:41 PM
. * Re: Slot Mask SoltanGris42  07/17/14 09:14 PM
. * Re: Slot Mask tjcbs  07/19/14 12:17 AM
. * Re: Slot Mask R. Belmont  07/22/14 08:40 PM
. * Re: Slot Mask tjcbs  07/24/14 08:12 PM
. * Re: Slot Mask lamprey  07/11/14 10:16 PM
. * Re: Slot Mask SoltanGris42  07/12/14 12:59 AM
. * Re: Slot Mask R. Belmont  07/16/14 05:45 PM
. * Re: Slot Mask Dullaron  07/17/14 11:40 PM
. * Re: Slot Mask lamprey  07/12/14 07:58 PM
. * One more. I call this one a TV. Edit: New changes. Dullaron  06/14/14 10:23 AM
. * Re: One more. I call this one a TV. Edit: New changes. Heihachi_73  06/15/14 06:32 AM
. * my shader. tjcbs  06/16/14 03:41 PM
. * More Monstrosities tjcbs  06/17/14 11:08 PM
. * Re: More Monstrosities AWJ  06/18/14 12:47 AM
. * Re: More Monstrosities tjcbs  06/18/14 01:45 AM
. * More Monstrosities tjcbs  06/17/14 11:05 PM
. * Re: More Monstrosities Vas Crabb  06/18/14 02:25 AM
. * Re: More Monstrosities tjcbs  06/18/14 02:45 AM
. * It looks terrible Sune  06/21/14 02:37 AM
. * Re: It looks terrible B2K24  06/21/14 03:43 AM
. * Re: It looks terrible Dullaron  06/21/14 06:32 AM
. * Re: More Monstrosities Anonymous  06/21/14 12:54 AM
. * More Monstrosities tjcbs  06/17/14 11:03 PM
. * Re: More Monstrosities CiroConsentino  07/12/14 12:40 PM
. * Re: More Monstrosities tjcbs  07/14/14 04:36 AM
. * Re: More Monstrosities MooglyGuy  07/12/14 12:53 PM
. * Re: More Monstrosities CiroConsentino  07/12/14 06:55 PM
. * Re: More Monstrosities CiroConsentino  06/18/14 12:51 AM
. * Thanks! (nt) tjcbs  06/18/14 01:45 AM
. * Re: my shame. Tomu Breidah  06/17/14 06:50 AM
. * Re: my shader. Ramirez  06/16/14 10:29 PM
. * Re: my shader. MooglyGuy  06/16/14 07:57 PM
. * Re: my shader. tjcbs  06/16/14 08:40 PM
. * Re: my shader. bigbluefe  06/20/14 04:38 PM
. * Re: my shader. CiroConsentino  06/20/14 07:38 PM
. * Re: my shader. Vas Crabb  06/17/14 03:22 AM
. * Re: One more. I call this one a TV. Edit: New changes. RetroRepair  06/15/14 06:45 AM
. * Re: One more. I call this one a TV. Edit: New changes. Dullaron  06/16/14 03:01 AM
. * Re: Use custom shaders on windows?? SoltanGris42  06/08/14 07:22 AM
. * Re: Use custom shaders on windows?? tjcbs  06/08/14 09:42 AM
. * Re: Use custom shaders on windows?? MooglyGuy  06/08/14 02:24 PM
. * Re: Use custom shaders on windows?? tjcbs  06/08/14 10:07 PM
. * Re: Use custom shaders on windows?? SoltanGris42  06/08/14 11:55 PM
. * Re: Use custom shaders on windows?? tjcbs  06/10/14 09:26 AM
. * Re: Use custom shaders on windows?? R. Belmont  06/10/14 04:57 PM
. * Re: Use custom shaders on windows?? tjcbs  06/10/14 11:54 PM
. * Re: Use custom shaders on windows?? SoltanGris42  06/11/14 12:01 AM
. * Re: Use custom shaders on windows?? tjcbs  06/11/14 01:54 AM
. * Re: Use custom shaders on windows?? SoltanGris42  06/11/14 09:12 AM
. * Re: Use custom shaders on windows?? tjcbs  06/11/14 01:14 PM
. * Re: Use custom shaders on windows?? MooglyGuy  06/13/14 04:06 PM
. * Re: Use custom shaders on windows?? SoltanGris42  06/11/14 11:52 PM
. * Re: Use custom shaders on windows?? CiroConsentino  06/20/14 02:02 PM
. * Re: Use custom shaders on windows?? R. Belmont  06/20/14 05:07 PM
. * Re: Use custom shaders on windows?? CiroConsentino  06/20/14 07:36 PM
. * Re: Use custom shaders on windows?? Dullaron  06/20/14 12:33 PM
. * Re: Use custom shaders on windows?? etabeta  06/20/14 10:28 AM
. * Re: Use custom shaders on windows?? R. Belmont  06/20/14 05:09 PM
. * Re: Use custom shaders on windows?? etabeta  06/20/14 06:01 PM
. * Re: Use custom shaders on windows?? R. Belmont  06/20/14 10:11 PM
. * Re: Use custom shaders on windows?? tjcbs  06/12/14 05:02 AM
. * Re: Use custom shaders on windows?? Dullaron  06/11/14 11:54 AM
. * Re: Use custom shaders on windows?? TafoidAdministrator  06/11/14 12:52 PM
. * Re: Use custom shaders on windows?? Vas Crabb  06/11/14 01:18 PM
. * Re: Use custom shaders on windows?? Dullaron  06/11/14 01:21 PM
. * Re: Use custom shaders on windows?? Vas Crabb  06/11/14 01:38 PM
. * Re: Use custom shaders on windows?? TafoidAdministrator  06/11/14 01:47 PM
. * Re: Use custom shaders on windows?? R. Belmont  06/11/14 06:57 PM
. * Re: Use custom shaders on windows?? Dullaron  06/12/14 02:30 PM
. * Re: Use custom shaders on windows?? SoltanGris42  06/11/14 02:11 AM
. * Re: Use custom shaders on windows?? R. Belmont  06/11/14 06:58 PM
. * People who sweetheart the hip leap and chat culture Sune  06/12/14 03:40 AM
. * Re: Use custom shaders on windows?? Dullaron  06/09/14 12:39 AM
. * Re: Use custom shaders on windows?? SoltanGris42  06/09/14 01:12 AM
. * Re: Use custom shaders on windows?? Dullaron  06/09/14 05:08 AM
. * Re: Use custom shaders on windows?? SoltanGris42  06/09/14 06:04 AM
. * Re: Use custom shaders on windows?? Dullaron  06/10/14 09:32 AM
. * Re: Use custom shaders on windows?? Sune  06/08/14 10:10 PM
. * Re: Use custom shaders on windows?? tjcbs  06/08/14 11:39 PM
. * Re: Use custom shaders on windows?? CiroConsentino  06/08/14 02:01 PM

Extra information Permissions
Moderator:  Robbbert, Tafoid 
1 registered and 23 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 18092