MAMEWorld >> EmuChat
View all threads Index   Flat Mode Flat  

Dullaron
Diablo III - Dunard #1884
Reged: 07/22/05
Posts: 6125
Loc: Fort Worth, Tx
Send PM
Here is dkong. :)
06/17/14 12:57 AM Attachment: dkong.png 719 KB (4 downloads)



Code:


// START of parameters

// gamma of simulated CRT
CRTgamma = 2.4;
// gamma of display monitor (typically 2.2 is correct)
monitorgamma = 2.2;
// overscan (e.g. 1.02 for 2% overscan)
overscan = vec2(0.98,0.98);
// aspect ratio
aspect = vec2(1.0, 0.75);
// lengths are measured in units of (approximately) the width of the monitor
// simulated distance from viewer to monitor
d = 2.0;
// radius of curvature
R = 3.5;
// tilt angle in radians
// (behavior might be a bit wrong if both components are nonzero)
const vec2 angle = vec2(-0.60,0.0);
// size of curved corners
cornersize = 0.03;
// border smoothness parameter
// decrease if borders are too aliased
cornersmooth = 1000.0;

// END of parameters

// Do the standard vertex processing.
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;

// Precalculate a bunch of useful values we'll need in the fragment
// shader.
sinangle = sin(angle);
cosangle = cos(angle);
stretch = maxscale();

// Texture coords.
texCoord = gl_MultiTexCoord0.xy;

// The size of one texel, in texture-coordinates.
one = 1.0 / color_texture_pow2_sz;
}



As for Popeye paste this over the other one.

const vec2 angle = vec2(0.0,-0.60);

Maybe someday HLSL will do this as well. For now only the GLSL can do this.

What I'm doing is looking at the snapshots of the machines to see what view those are showing in. Then trying to get the view matches on what the machines is showing.

[ATTACHED IMAGE - CLICK FOR FULL SIZE]

Attachment


W11 Home 64-bit + Nobara OS / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 64 GB







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 
0 registered and 158 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 18269