Commit graph

68 commits

Author SHA1 Message Date
Arzed Five 70d30ead4b A couple of MAD optimizations, some formatting and ensure the shader
works a little bit better.
If the blending_mode macro on gb-pass1 is set to 0, we'll get only the
green background color.
2016-07-24 03:59:55 +01:00
hunterk 11f0af188c move crtglow presets into the correct directory 2016-07-23 15:08:51 -05:00
hizzlekizzle fecb12e766 Merge pull request #17 from rz5/patch-1
Update pal-singlepass.slang
2016-07-22 18:43:00 -05:00
rz5 263ebb4bc2 Update pal-singlepass.slang
Add BSD 2-Clause license text.
2016-07-22 23:35:26 +01:00
hizzlekizzle 6457233cff Merge pull request #16 from rz5/master
(pal) Port @svofski's CRT shader to libretro.
2016-07-22 14:56:04 -05:00
Arzed Five c2e4647849 (pal) Port @svofski's CRT shader to libretro.
Tried to add the phase noise feature found in his crt.py software
version.
2016-07-22 19:32:09 +01:00
hizzlekizzle e518f8fae0 Merge pull request #15 from rz5/patch-1
Update crt-easymode.slang
2016-07-21 13:27:31 -05:00
rz5 7a624837c7 Update crt-easymode.slang
Optimize a bit more. There is still some chromatic aberration going on: R, G and B are slightly offset from each other horizontally on my screen.
2016-07-21 16:10:09 +01:00
hizzlekizzle 14c6533193 remove extraneous originalhistorysizes 2016-07-21 08:43:59 -05:00
hizzlekizzle 354d0b8b43 couple of changes related to previous pass
currently broken but whatever
2016-07-21 08:42:22 -05:00
hunterk 762dfe1cb5 add lcd-cgwg and dot shaders to handheld 2016-07-21 08:39:08 -05:00
hunterk 2a48c2148c add scalehq and supereagle 2016-07-21 08:37:37 -05:00
hunterk 16dc63625e add broken 2xBR-multipass 2016-07-21 08:35:13 -05:00
hizzlekizzle fd674e97bd Merge pull request #14 from rz5/master
(crtglow) Translated the glow set of shaders and their associated
2016-07-20 21:07:45 -05:00
Arzed Five efd79721cb (crtglow) Translated the glow set of shaders and their associated
presets.
2016-07-21 03:01:53 +01:00
hizzlekizzle 41769642e4 Merge pull request #13 from rz5/master
gb shader formatting quality assurance
2016-07-20 18:43:07 -05:00
Arzed Five a61f86864f More MAD optimizations 2016-07-20 23:25:20 +01:00
Arzed Five 18a6182b0d Some MAD optimizations.
Style nits: Replaced tabs with spaces, 4-space tabs, 80 char general
limit, etc.
2016-07-20 22:50:07 +01:00
hizzlekizzle 95fce03925 whoops, missed one 2016-07-20 11:11:36 -05:00
hizzlekizzle b4c5c648ce fix the black dot in crt-geom
a rounding or divide by zero problem, IIRC.
2016-07-20 11:10:37 -05:00
hizzlekizzle 9c30c6dc03 access pass 1 correctly 2016-07-19 19:52:03 -05:00
hunterk c1de320e4e fix interlacing shader; i think framecount might be b0rk3n 2016-07-19 16:18:36 -05:00
hunterk e060625eef add broken gameboy shader 2016-07-19 15:17:23 -05:00
hizzlekizzle 08ba6f835f Merge pull request #11 from rz5/patch-1
Update aann.slang
2016-07-19 13:24:53 -05:00
hizzlekizzle 161eff4b09 Merge pull request #12 from rz5/master
Translated all of the shaders to allow the super-xbr-2p preset to work.
2016-07-19 13:22:48 -05:00
Arzed Five 5de3ce96a2 Translated all of the shaders to allow the super-xbr-2p preset to work.
Final image doesn't seem to be quite right - horizontal lines are bumpy.
2016-07-19 18:04:16 +01:00
rz5 a0608ed481 Update aann.slang
Notable changes:
* As per https://www.opengl.org/wiki/GLSL_Optimizations, I tried replacing divisions with multiplications.
* All the color space conversion functions accept (and work on) vectors instead of single.

This part is subjective, but I formatted the code all around based on my idea of what looks most legible  .

@wareya, @Monroe88: Hi, could you both take a quick glance at my multiply-add optimizations? The wiki says it would make it faster, dunno by how much but it was easy to change and it didn't hinder legibility too much.
2016-07-19 14:20:30 +01:00
hizzlekizzle 27efe97300 Merge pull request #9 from rz5/patch-1
Create crt-cgwg-fast.slang
2016-07-18 21:53:04 -05:00
hizzlekizzle df9382876d Merge pull request #10 from Monroe88/patch-2
(AANN) Update to latest version
2016-07-18 21:52:52 -05:00
Monroe88 6a6fc86cf3 (AANN) Update to latest version 2016-07-18 21:08:02 -05:00
rz5 c593a895a8 Create crt-cgwg-fast.slang 2016-07-19 02:44:24 +01:00
hizzlekizzle 454e1ac131 Merge pull request #7 from rz5/patch-1
Update crt-geom.slang
2016-07-18 13:18:57 -05:00
rz5 b4a3d72ca5 Update crt-geom.slang
CURVATURE is now working. The problem was due to the replacement of ´´´IN.video_size / IN.texture_size´´´ (a small number representing the scale between the two sizes) with ´´´global.SourceSize.xy ´´´ (much bigger than the previous number).

SHARPER was made to work too.

@hizzlekizzle: I deleted your vec2 angle variable, which was hardcoded to (0, 0) while I was trying to fix the curvature stuff. Feel free to revert that.
2016-07-18 19:16:56 +01:00
hizzlekizzle cfa2d35646 Merge pull request #6 from rz5/master
Translated gba-color.cg.
2016-07-18 11:14:31 -05:00
hunterk 402940a6be add dotmask and fix some things with crt-geom 2016-07-18 11:09:14 -05:00
Arzed Five d0ef0cc60c Translated gba-color.cg.
No obvious bugs were spotted.
2016-07-18 15:28:57 +01:00
hizzlekizzle c1b2f02bf5 Merge pull request #5 from rz5/patch-2
Update crt-hyllian.slang
2016-07-18 09:06:00 -05:00
rz5 54fb6ee4b2 Update crt-hyllian.slang
Cg/HLSL have row major matrices. In GLSL/slang shaders, we have to reverse the operand order around.
This shader should now be completely fixed.
2016-07-18 14:35:00 +01:00
hizzlekizzle 4a1bd3d938 Merge pull request #4 from rz5/patch-2
Create crt-hyllian.slang
2016-07-16 08:06:42 -05:00
rz5 163c32c3a3 Create crt-hyllian.slang
I got it to compile.
But the final image is not correct yet.
2016-07-16 13:19:56 +01:00
hizzlekizzle 41f065993e Merge pull request #3 from rz5/patch-1
Update crt-easymode.slang
2016-07-15 21:04:11 -05:00
rz5 29e6c68d4f Update crt-easymode.slang
Unbreak the translation.
There's still too much chromatic aberration going.
2016-07-16 00:45:50 +01:00
hizzlekizzle 4109082682 Merge pull request #2 from rz5/patch-2
Create crt-easymode.slang
2016-07-15 18:29:34 -05:00
rz5 04bc4a257e Create crt-easymode.slang
Broken translation that at least compiles
2016-07-16 00:28:48 +01:00
hizzlekizzle da0536cf88 Merge pull request #1 from rz5/patch-1
Update crt-geom.slang
2016-07-15 18:25:53 -05:00
rz5 c864dbb2d4 Update crt-geom.slang
Changed the formatting, tab size is 4 spaces.
Based on the discussion in IRC, I carefully deleted every instance of global.SourceSize.zw, because z = 1/x and w = 1/y and zw is NOT the same as IN.video_size.
2016-07-16 00:01:38 +01:00
hunterk f14ba96715 update still-broken crt-geom 2016-07-15 14:24:05 -05:00
hunterk fb4f5d002b add aann and sharp-bilinear and broken pixellate 2016-07-14 15:54:54 -05:00
hunterk 0b9f0f2c20 fix image-adjustment shader 2016-07-14 09:54:58 -05:00
hunterk 51ea79d9ba add a stock shader to work from and start porting misc shaders 2016-07-14 09:46:04 -05:00