Commit graph

313 commits

Author SHA1 Message Date
fishcu a6e11453ad
Add bloom based on dual filter blur (#367)
* Update CRT-1tap to v1.2

* update default param

* Update default param

* Add bloom based on dual filter blur

Previously squashed commits:
WIP:Dual filtering bloom effect
Add scale level weighting; Comment out debug code; Simplify tonemap
Debug:Show bloom contrib
Tweak defaults; Small bugfixes
Organize shaders into subfolder
Refactor tonemap into separate file
Tweak parameters
Greatly simplify exposure to intensity mapping; Clean up
Fix faster preset
Change luma pass size to 1 pixel
Lots of polishing
Add combined presets
Add docs; Refactor params a bit; Cleanup
Update combined presets
Rename presets for better ordering
2023-02-11 17:19:43 -06:00
hunterk 356678ec53
update guest's crt shaders to include some last-minute changes (#365) 2023-02-05 12:17:01 -06:00
hunterk 7fce262721 update guest's crt shaders 2023-02-05 09:21:45 -06:00
metallic77 cbc1b9d5f4
fix gdv-mini mask 9 2023-02-01 15:45:51 +02:00
BearOso 316b234b09 crt-royale: Fix division by zero when border is 0.
When border size is 0, a division by zero causes the border to
become infinitely large. Special-case this.
2023-01-29 18:40:20 -06:00
BearOso 4d97229d22 newpixie: Don't flip geometry coordinates, flip texcoords. 2023-01-29 17:18:48 -06:00
Jean 4bd7386a33
feat: add "Vignette" parameter for shader newpixie-crt
An option to control the vignetting of one of my favorite crt shader newpixie-crt

based on CybeREX works from the libretro forum:
https://forums.libretro.com/t/remove-wavy-distortion-newpixie-crt-shader/28929
https://forums.libretro.com/u/CybeREX
2023-01-28 16:05:37 -05:00
HyperspaceMadness 7dbf7a51db Added zfast_crt_curvature
This is z-fast with curvature added, requested by lasly
2023-01-25 13:14:22 -05:00
Isaac aa215b821e Small updates 2023-01-22 21:50:29 +01:00
metallic77 574bd6438e
Update gdv-mini
Update gdv-mini, clean up , closer to glsl version.
2023-01-22 20:58:46 +02:00
hizzlekizzle 196b89c709
fix minor visual artifact in crt-consumer
closes #352
2023-01-20 19:55:08 -06:00
fishcu 3f62172bcb
Add crt-1tap shader (#347)
* Add crt-1tap shader

* Add comment block
2023-01-14 08:35:38 -06:00
hunterk 4f801b764b
Fix GTU-v50 to function like GLSL/Cg versions (#346)
* fix gtu-v50 to function like Cg/GLSL versions

* fix gtu-v50 to function like Cg/GLSL versions

* quick cleanup of dead/commented code
2023-01-12 15:26:21 -06:00
hizzlekizzle 4254160b7b
reduce phase modulo to prevent periodic hitching 2023-01-06 19:22:27 -06:00
hizzlekizzle 39ee09ceb2
initialize variable to 0.0
to prevent undefined values on some GPUs.
2023-01-01 21:09:33 -06:00
hunterk c10a40e656
Replace "Original" texture with stock reference pass (#343)
* update shaders that use Original to use a reference pass instead for append/prepend readiness

* remove some extraneous files

* fix super-xbr preset that was already broken apparently
2022-12-23 23:31:11 -06:00
rz5 feb1fcaee0
Port crt-consumer to slang (#338)
* Add crt-consumer slang preset

* Port crt-consumer to slang
2022-12-09 20:15:06 -06:00
hizzlekizzle ff2cc5eb1f
Merge pull request #312 from gregoricavichioli/master
Add Zfast Composite shader
2022-09-28 12:11:26 -05:00
hizzlekizzle 98e37ea643
Merge pull request #313 from Hyllian/master
Mitigates moire on some crt-hyllian presets
2022-09-28 12:10:55 -05:00
Hyllian 915e789560 Mitigates moire on some crt-hyllian presets
- Using linear sampling mitigates moire in later curvature shaders.
2022-09-28 12:02:31 -03:00
Gregori Francisco Cavichioli 5dc2001f4b Add Zfast Composite shader 2022-09-28 08:37:33 -03:00
hizzlekizzle 044a870c0c
Merge pull request #309 from Hyllian/master
Add crt-super-xbr new version
2022-09-26 12:41:31 -05:00
Hyllian 6f9cb5800f Add crt-super-xbr new version
Thought it's matured enough to deserve it's own release.
- Delete old preset in preset folder;
- Add crt-super-xbr new edition.
2022-09-26 14:35:07 -03:00
hunterk 7f34fc7469
clean up blurs directory (#307)
* clean up blurs

* fix some paths and prune some dead presets

* fix ntsc path
2022-09-26 12:18:44 -05:00
hizzlekizzle 168d4ceaec
Merge pull request #308 from Hyllian/master
Update some crt-hyllian variants
2022-09-26 11:05:05 -05:00
Hyllian da0a242d61 Update some crt-hyllian variants
- Add crt-hyllian-sinc-curvature;
- Update crt-hyllian-curvature-ntsc;
- Update crt-hyllian-sinc
- Update crt-hyllian-curvature
2022-09-26 12:44:07 -03:00
hunterk a5322b1478 correct some broken paths 2022-09-23 23:09:50 -05:00
hunterk bc55ed1f7b move all of the misc shaders into a subdir and give them presets to be in-line with the rest of the repo 2022-09-23 23:04:05 -05:00
hizzlekizzle 3cad2a69c1
Merge pull request #304 from Hyllian/master
Add crt-nobody shader
2022-09-22 17:57:11 -05:00
Hyllian 2348712f39 Add crt-nobody
- A fast crt shader intended for potato devices.
2022-09-22 19:08:53 -03:00
HyperspaceMadness 77d71a609a Added Slang version of crt-gdv-mini 2022-09-18 11:48:59 -04:00
DigiDwrf 3259885be7
Merge branch 'libretro:master' into master 2022-09-03 22:55:38 -05:00
Carlos O'Connor 858404b1db CRT Maximus Royale filter added
Based on CRT Royale, this filter includes a lot of cool features:

- Horizontal ringing (produced by low pass filters e.g. SNES video output)
- CVBS / S-VIDEO / RGB filter modes
- Accurate pixel perfect dimensions (for 1080 resolutions and up)
- TV frames that reminds the 90's experience
- PC monitor frame also available
- New adjustable scale system to fix image size and overscans
- Ambient lighting and rear LED simulation modes
- Reflections over the screen borders
- Nice bulged screen finish
- Auto scales to any resolution, preserving 4:3 ratio
- 3 shaders available: normal mode, fast mode and doubled outputs mode

Glcore and d3d11 drivers supported at the moment.
2022-09-03 22:52:33 -05:00
hizzlekizzle df289e0682
Merge pull request #290 from Hyllian/master
Fix gamma on crt-hyllian-curvature-ntsc preset
2022-09-03 21:11:21 -05:00
Hyllian 56618af7c0 Fix gamma on crt-hyllian-curvature-ntsc preset 2022-09-03 19:54:13 -03:00
hizzlekizzle 5db9b4e6b5
Merge pull request #289 from Hyllian/master
Update crt-hyllian and variants
2022-09-03 14:43:34 -05:00
Hyllian ffaf9fe8b7 Update crt-hyllian and variants
- Fix sinc vertical scanlines;
- Add curvature-ntsc and dedither presets;
- Some param tweaks.
2022-09-03 13:32:42 -03:00
Matheus Silagi 914543309f
CRt-Yee64 and yeetron now uses RSDK Decompilation code (#283)
* CRt-Yee64 and yeetron now uses RSDK Decompilation code

Which means its now humanly readable!

Hooray for reverse engineer!

* I think i got those mixed up so, here
2022-08-25 07:59:11 -05:00
hizzlekizzle d1a344c1ca
Merge pull request #279 from Hyllian/master
Update crt-hyllian
2022-08-21 07:42:28 -05:00
Hyllian cab648079a Update crt-hyllian
- Fix vertical scanlines;
- new anti-ringing;
2022-08-20 18:01:09 -03:00
whkrmrgks0 b87b944642
Create advanced_crt_whkrmrgks0.slangp 2022-08-18 02:41:58 +09:00
whkrmrgks0 44ae1005d2
Add files via upload 2022-08-18 01:23:57 +09:00
whkrmrgks0 44ff304048
Delete Advanced_CRT_shader_whkrmrgks0.slang 2022-08-18 01:22:44 +09:00
whkrmrgks0 9d45dc6b9d
Add files via upload 2022-08-18 01:21:40 +09:00
hunterk 2fa3156606 big update to crt-guest shaders 2022-07-28 19:48:28 -05:00
mudlord 2322a3fe48 Losslessly compress LUTs 2022-04-16 18:56:18 +10:00
hunterk cef60e5e1a
add MajorPainInTheCactus' slot mask to subpixel mask function (#225)
* add MajorPainInTheCactus' slot mask to subpixel mask function

* add 2xbrz shader by request
2022-03-15 21:40:34 -05:00
Stuart Kenny ab5d7681c1 Display 480p content at full res with interlacing off 2022-02-10 16:33:40 +00:00
Nikos Chantziaras fc7d957e50
zfast-crt: add preset for the coarse mask, suitable for HD displays
To avoid duplicating the whole shader implementation, the needed define
has been split into its own file, and the shader implementation is now
in an include file.
2022-01-16 08:21:42 +02:00
hizzlekizzle fad35a9129
Merge pull request #218 from realnc/zfast-fix
zfast-crt: fix compilation error when undefining FINEMASK
2022-01-15 10:15:48 -06:00
Nikos Chantziaras 97c2c3ef4c
zfast-crt: fix compilation error when undefining FINEMASK 2022-01-15 14:22:20 +02:00
hunterk 582b9fe1ec move the HDR shaders to their own directory, since they have specific requirements 2021-12-30 17:41:07 -06:00
hizzlekizzle d332281c03
Merge pull request #212 from MajorPainTheCactus/master
Made default shader more like a Sony PVM 2730
2021-12-30 16:52:19 -06:00
majorpainthecactus 1e433f2c25 Made default shader more like a Sony PVM 2730 with a slightly softer image than the 20L4 Added two new slangp configs that represent a Sony PVM 2730 and a Sony PVM 20L4 Removed defunct shader parameters Added sharpness parameter Cleaned up shader a little 2021-12-30 22:09:44 +00:00
hizzlekizzle b243ceb426
Merge pull request #211 from MajorPainTheCactus/master
v1.0 of Sony PVM 4K HDR shader that tries to emulate a Sony PVM 20L4
2021-12-29 15:49:07 -06:00
majorpainthecactus e2036576a2 v1.0 of Sony PVM 4K HDR shader that tries to emulate a Sony PVM 20L4 CRT. Again requires a HDR capable screen typically of at least 700 nits (but may need less for OLEDs) This version adds support for different resolution patterns see shader for more details 2021-12-29 20:38:19 +00:00
Autechre f8651de0f5
Merge pull request #209 from MajorPainTheCactus/master
Added HDR shader chain to be used with associated pull request 'Added…
2021-12-22 02:17:33 +01:00
majorpainthecactus 46cbd81131 Added HDR shader chain to be used with associated pull request 'Added support for HDR shaders #13390' in the RetroArch repository 2021-12-22 00:25:08 +00:00
Nikos Chantziaras 5bdd44bbd9
crt-geom-deluxe: finer grained overscan and scanline weight parameters 2021-12-19 09:07:05 +02:00
hizzlekizzle 7e4d798705
use linear filtering with crt-pi
closes #206
2021-11-28 08:56:55 -06:00
hunterk 7d1fcb9735
fix some paths in old mame_hlsl 2021-11-26 13:24:24 -06:00
Bennett Rennier 72d89fbd2c
Change interlace_detect to a bool when using hardcoded settings
Fixes a compliation error that occurs if `RUNTIME_SHADER_PARAMS_ENABLE' is turned off. The inline function `is_interlaced' in the file `src/scanline-functions.h' expects `interlace_detect' to be a bool, not a float.
2021-10-21 13:11:41 -05:00
barbudreadmon b0c288b141
fix zfast_crt for rotated games 2021-08-18 17:11:38 +02:00
hunterk 8524a42da5
Add crt-guest-advanced, update other crt-guest, update ntsc-adaptive (#183)
* update crt-guest, add advanced

* re-add some prematurely deleted GDV passes

* fix ntsc res behavior

* disable field-merging on 2-phase to allow MD rainbow artifacting

* remove unused function
2021-07-30 08:24:20 -05:00
hunterk 7c1a778f4f
changes to ntsc-adaptive, more blurs, NDS color, gamma ramp (#178)
* add updated NDS color, Super Sleuth gamma ramp and more trogglemonkey blurs

* whoops, remove debug workaround

* remove reference to Cg shaders

* make ntsc-adaptive more custom, add RF preset, move some ntsc presets to 'presets'
2021-06-04 17:51:24 -05:00
Tatsuya79 c2b113411f
Update crt-geom.slang 2021-05-22 15:21:57 +02:00
Tatsuya79 fa3321fbd7
crt-geom: add vertical mode, tate preset 2021-05-21 19:09:55 +02:00
hizzlekizzle e5f2818021
fix crt-guest-dr-venom-fast smoothing pass 2021-04-04 08:52:46 -05:00
hizzlekizzle 12fdb6562f
update crt-geom-deluxe to add brightness compensation; add bright pix… (#170)
* update crt-geom-deluxe to add brightness compensation; add bright pixel counts to subpixel masks; delete extraneous preset

* forgot to update geom-deluxe preset

* fix various preset spec nits

* try to mellow out the raster bloom

Co-authored-by: hunterk <hunter_kaller@yahoo.com>
2021-03-01 15:11:53 -06:00
hunterk 35c2d7064e
add crt-hyllian and crt-guest updates (#166)
* add TATE mode to mame_hlsl

* add crt-guest-dr-venom2 shaders and presets

* get rid of weird character in filename

* add updated crt-hyllian shaders and presets

* update guest's deconvergence to latest

* more gdv updates

* forgot one
2021-01-16 09:31:32 -06:00
hizzlekizzle d26ad30362
Merge pull request #155 from hunterk/master
move/add stereoscopic-3D shaders to match glsl repo
2020-12-16 12:54:59 -06:00
hunterk 83485c6983 add an option to freeze the newpixie scanlines and fix the bezel image 2020-10-26 16:17:08 -05:00
Oriol Ferrer Mesia 78aad452f7 rm old stale code 2020-10-22 02:11:17 +02:00
Oriol Ferrer Mesia 1407c30f51 add crt-blurPi slang shader variants 2020-10-22 01:50:50 +02:00
hunterk 375c6220d7 add zfast-crt shader and preset 2020-07-14 16:24:42 -05:00
hunterk 67f934f56f remove unneeded passes 2020-06-26 16:21:12 -05:00
hunterk 5db5e6572d archive mame_hlsl and update to version based on bgfx code 2020-06-26 16:18:00 -05:00
hunterk 603be636dc only round corners when curved 2020-06-25 10:50:09 -05:00
hunterk 0dfcbfb18a replace noise and curvature with simpler, faster versions 2020-06-25 10:47:39 -05:00
hunterk 9a8b4a70fc add interference toggle 2020-06-16 14:40:05 -05:00
hunterk 5fd80ad7ea make res-independent scanlines better, add built-in res control to geom 2020-04-27 14:45:44 -05:00
hunterk 3b6d56f496 add newpixie-crt 2020-04-23 20:09:51 -05:00
hizzlekizzle 900b171dd9
latest updates from guest 2020-04-13 22:46:18 -05:00
hizzlekizzle 5e509df3ec
more updates to crt-guest-dr-venom
"Unfortunately or fortunately i found a conflict of settings in the shader. With low scanline saturation the ‘PVM colors’ aren’t applied or applied very weakly. I needed to fix this.

In the process i also decided to make the shader even better. I wasn’t completely satisfied with some types of filtering, as it turns out, using an even number of pixels fixes many issues with the shader. I’m also very pleased how the anti-ringing, mask reference color and scanline color turned out."
2020-03-29 15:37:36 -05:00
hizzlekizzle 4ddf327c85
last minute changes from guest 2020-03-28 22:16:41 -05:00
hizzlekizzle 5f5b51ada5
update crt-guest-dr-venom to guest's latest 2020-03-28 16:19:09 -05:00
hunterk 1883ed12b7 add vt220 shader and preset 2020-02-19 11:23:13 -06:00
hunterk 2a48ab3052 update crt-guest-sm 2020-02-18 12:27:53 -06:00
hunterk fbc0e7a9fa update crt-guest-sm to latest 2020-02-17 13:43:39 -06:00
hunterk df9b480805 add ntsc-adaptive, move some presets to it and remove redundant presets 2020-02-16 23:11:31 -06:00
hunterk 10708236b1 update crt-guest-dr-venom to latest from guest 2020-02-06 11:44:53 -06:00
hunterk 4cff7c2c23 update crt-guest-dr-venom with interlacing support 2020-02-02 13:18:25 -06:00
hunterk ee0ce4c140 add luminance param to geom, add some params to geom-deluxe 2020-01-30 16:02:47 -06:00
hunterk b38342095a switch geom-deluxe to use generated subpixel masks instead of LUTs 2020-01-25 13:24:52 -06:00
hunterk 66bda5d3b8 delete mistakenly committed file 2019-12-31 15:09:34 -06:00
hunterk ab43d6c913 make royale's interlacing detection toggle-able at runtime 2019-12-31 15:08:28 -06:00
hunterk 360280c54b update crt-guest-dr-venom to latest 2019-12-30 13:21:47 -06:00
hunterk b3067103a6 update crt-guest-sm 2019-12-28 12:56:54 -06:00
hunterk bdb8077f6a add subpixel masks and customize metacrt 2019-12-20 11:47:12 -06:00
hunterk fe002c6f3b better port of metacrt pt 2 2019-12-19 16:38:17 -06:00