Commit graph

316 commits

Author SHA1 Message Date
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
hunterk 4e49d48bfd better port of metacrt 2019-12-19 16:36:25 -06:00
hizzlekizzle 65e60b9f5d
fix typo in crt-guest-dr-venom 2019-12-19 09:04:21 -06:00
hunterk 492951eb55 update crt-guest-dr-venom shaders and presets 2019-12-18 16:00:23 -06:00
hunterk ef7bbb1b82 move simple scanline shaders out of misc and fix hlsl function name collision 2019-12-16 11:19:39 -06:00
hunterk e192994089 add crt-guest-sm shader and preset 2019-12-16 11:10:27 -06:00
hunterk 5aac649754 update crt-guest to avoid scanline spikes 2019-12-11 10:50:00 -06:00
hunterk fc0d4519f7 fix no-aa mode in royale 2019-09-27 16:15:14 -05:00
hunterk 8537d7b8de fix royale geom tilt angles 2019-09-16 09:35:12 -05:00
hunterk e19f75abf9 omg fix stupid error that broke royale geom modes 2019-09-15 09:33:35 -05:00
Trond Haugland 9b5ed669be add missing crt-pi preset 2019-09-05 14:24:05 +02:00
hizzlekizzle 4904f5c9c8
fix phosphorFeedback in geom-deluxe 2019-08-13 13:35:32 -05:00
hunterk bf33cd281b rename 'retro' to 'interpolation' and move bevel and retro to handheld 2019-07-31 16:21:41 -05:00
Olivier PARRA 2382731e34 added yo6 CRT shader based on KV-M1420B 2019-06-20 00:25:06 +02:00
hizzlekizzle daa0e8ff3d
move geom interlacing detection toggle to param 2019-06-17 10:21:17 -05:00
hizzlekizzle f281a47e5c
return early when LUT Colors == 0
closes #100
2019-06-06 22:10:54 -05:00
hunterk fc28962ff5 fix a few more stragglers 2019-06-03 10:20:05 -05:00
hunterk b23a0c215a remove 1x scaling caused by #104's fix 2019-06-02 22:12:28 -05:00
hizzlekizzle 9e5dd3148e
replace out-of-spec comments 2019-05-28 20:42:08 -05:00
LazyBumHorse 0a2b35ec11 replace invalid scale_type_<number> with scale_type<number> 2019-05-28 22:35:49 +02:00
hunterk 32fd51f679 one more 2019-05-22 14:29:39 -05:00
hunterk e9dfc8143e fix broken paths and add edge-detect shader; closes #101 2019-05-22 14:24:40 -05:00
hunterk e6d6393744 add cgwg-famicom-geom and move all raw palette shaders into a new subdir 2019-05-20 14:58:19 -05:00
hunterk 7e8d978fcd add cgwg's geom-deluxe shaders and preset 2019-05-16 14:49:39 -05:00
hunterk 932fe31f55 add saturation parameter to crt-guest 2019-05-07 08:16:43 -05:00
hunterk 96c592851a update crt-guest-dr-venom 2019-05-03 12:31:31 -05:00
hunterk 456d7f3c5d move mame_hlsl port into crt directory; I guess it's as good as it's gonna get right now 2019-04-19 15:52:09 -05:00
hunterk caac993e37 update crt-aperture and mame-hlsl 2019-03-28 15:10:40 -05:00
hunterk 4a30ee25db wrap lottes clamp fix in ifdef to keep code identical to GLSL version 2019-02-20 15:05:21 -06:00
hunterk 52db21c079 fixes for various compiler nits 2019-01-29 16:32:54 -06:00
hunterk 0513ebd358 update crt-guest to match latest glsl 2019-01-28 10:49:52 -06:00
hunterk 983375531b add some license text to crt-torridgristle's passes 2019-01-17 15:24:04 -06:00
hunterk ea23a0ab49 use feedback in crt-guest to smooth bloom transitions 2019-01-16 16:21:29 -06:00
hunterk 6ffa629671 some formatting cleanups and add torridgristle's mask to dotmask 2019-01-16 16:12:04 -06:00
hunterk d81d82ef48 add crt-torridgristle shaders and preset 2019-01-15 11:29:07 -06:00
hunterk 969a763d35 add some parameters and remove distortion from crt-mattias 2019-01-14 10:22:03 -06:00
hunterk 488bcf4038 add crt-guest shaders and presets and LUTify two presets 2019-01-08 16:21:34 -06:00
hunterk 7e796317de fix lottes-fast on d3d10/11/12 and increase blendoverlay max parameter sizes 2018-12-05 11:35:35 -06:00
hunterk 9b12a840f8 add GritsScanlines shader and preset 2018-10-04 20:44:05 -05:00
hunterk 1035b1b04d delete old, unused and redundant files, update lottes-multipass 2018-08-27 13:58:32 -05:00
hizzlekizzle e6ae09b6b1
fix crt-lottes-multipass-interlaced-glow paths 2018-08-22 08:32:49 -05:00
hunterk 935d21ed3a add crt-mattias based on the 'crt emulation' shadertoy 2018-08-13 20:40:03 -05:00
hizzlekizzle 33129be84e
prevent issues on picky GPUs/compilers 2018-07-19 09:33:42 -05:00
Stuart Carnie 5ad108c3fc fix(crt): Rename param -> params for SPIRV-Cross compatibility 2018-07-14 15:43:01 -07:00
Stuart Carnie 1e9ed9423d fix(sinc): kernel is a reserved word for Metal shaders
* SPIRV-Cross should handle this
2018-07-14 15:40:56 -07:00
Stuart Carnie 93d3c10cd0 fix(crt-lottes): Rename param -> params for SPIRV-Cross compat 2018-07-14 15:17:50 -07:00
Stuart Carnie 2526a85e14 fix(crt-lottes-multipass): Rename param -> params for SPIRV-Cross compat 2018-07-14 15:13:25 -07:00
Stuart Carnie f9681bccf4 fix(crt-easymode): SPIRV-Cross compatibility
* likely a bug in SPIRV-Cross as it declared a local variable named
  param that conflicted with the fragment shader input parameter named
  param
2018-07-14 15:03:59 -07:00
Stuart Carnie c915193e82 fix(crt-royale): Ensures output location is defined for Metal support
* error after SPIRV-Cross is that output locations are not defined
2018-07-14 14:42:33 -07:00
hunterk a5ffea7278 add yee64 and yeetron shaders ported from reshade 2018-06-12 12:29:38 -05:00
hunterk 8f26d985e6 add curvature and moire compensation to crtglow 2018-06-06 16:17:10 -05:00
hunterk 68577a2af7 add crt-hyllian-3d shader and preset 2018-06-06 13:02:53 -05:00
hizzlekizzle 020a59e745
Create moire-resolve.slang 2018-06-01 16:24:32 -05:00
hunterk 36db5c17cb fix pal-r57shell and remove unnecessary multipass version, add royale ntsc/pal presets 2018-05-02 14:26:13 -05:00
hunterk a501be6211 add fakelottes shader and preset 2018-04-09 11:52:32 -05:00
hunterk 75090978fb update snes-hires-blend to match glsl; make image-adjustment play nicer with others 2018-02-14 10:44:24 -06:00
hunterk fa0b02bf66 add snes-hires-blend shader 2018-02-12 12:41:33 -06:00
hunterk 6dddf979ea add crt-lottes-fast shader and preset 2018-01-22 12:52:36 -06:00
hunterk 2f74b5fd1f whoops, delete extraneous file 2018-01-09 11:21:36 -06:00
hunterk bf78706305 add crt-potato 2018-01-09 11:20:52 -06:00
hunterk b4203c5f8c fix disabled runtime parameters code path 2017-12-28 20:34:39 -06:00
hunterk 202d0c7684 crt-royale fixes 2017-11-30 09:03:34 -06:00
hunterk eaf306f550 temporary fix for royale being too dark 2017-11-29 20:27:50 -06:00
hunterk 760d334b53 massive overhaul of crt-royale and all associated shaders 2017-11-29 13:40:28 -06:00
hunterk bd3f8eff56 Merge branch 'master' of https://github.com/libretro/slang-shaders 2017-11-09 20:29:48 -06:00
hunterk f89dc71d76 add ambient-glow border and apply dotmask in linear gamma 2017-11-09 12:34:25 -06:00
hunterk 8ad32974b1 add crt-royale fake-bloom shaders and preset; intel version is broken so no preset for it yet 2017-10-20 23:34:10 -05:00
hunterk 444f4772d3 add crt-hyllian-glow shaders and preset 2017-10-06 09:26:48 -05:00
hunterk 1a73032cfd fix typo in gtu-famicom that made the combfilter super-dark 2017-09-25 13:57:45 -05:00
hunterk 5ce80162de fix mask artifacts with phosphorlut and add spec doc as README 2017-08-29 15:34:14 -05:00
hunterk 0822605b7e add metacrt and pal-r57shell shaders 2017-06-12 16:17:53 -05:00
hunterk bada8fb234 update crt-lottes-multipass preset 2017-06-01 21:18:32 -05:00
hunterk 578ae7faa2 add crt-frutbunn and add shadertoy link to artifact-colors 2017-05-25 08:24:36 -05:00
hunterk f9c47b074a add ntsclut-phosphorlut preset and tweak crtsim ntsc setting 2017-05-04 21:36:39 -05:00
hunterk 6f47464db3 fix beam_horiz_filter, update kurozumi, add fallback to fix my AMD crash 2017-05-04 16:34:39 -05:00
hunterk 8590410b30 try to get some more params working with royale 2017-05-03 16:34:58 -05:00
hunterk b196ec57df add crt-caligari 2017-05-01 15:41:26 -05:00
hunterk 740edfbd12 some crtsim tweaks and new preset 2017-04-28 16:08:52 -05:00
hunterk 46172167c9 add crtsim shader 2017-04-27 10:38:48 -05:00
hunterk 5b18ba052f add runtime phosphor layout selection 2017-03-15 12:25:37 -05:00
hunterk a450ac1b2f add crt-nes-mini 2017-03-14 21:03:52 -05:00
hunterk 523aceef44 rework lottes-multipass to be nicer/slower; old version is moved to 'old' subdir 2017-03-08 10:32:29 -06:00
hunterk b03fd92d81 fix simple_linear_gamma switch in crt-lottes 2017-03-07 16:02:23 -06:00
hunterk 8243af2064 fix oversampling 2017-03-02 10:35:59 -06:00
hunterk eedf3a8c09 fix crash when curvature isn't defined 2017-03-02 10:20:49 -06:00
hunterk 81faa39b3f add crt-interlaced-halation and quilez shaders and presets 2017-02-28 14:50:17 -06:00
hunterk b21a18bc5f add phosphorlut shader 2017-01-26 16:08:16 -06:00
hunterk ef130f1a00 fix for weird issue on nvidia shield 2017-01-24 20:30:32 -06:00
hunterk 16f670e623 fix weird issue on nvidia shield 2017-01-24 20:20:24 -06:00
hunterk ec86a37a4e add tvout-tweaks shader 2017-01-23 16:56:16 -06:00
hunterk f8fac3677b add crt-hyllian-multipass 2017-01-17 10:16:54 -06:00
hunterk 8009dea4d7 break glow-trails to its own shader and add vector-glow presets 2016-12-20 15:36:43 -06:00
Arzed Five b8f930c86b (glow) Enforce the R8G8B8A8_SRGB format from within the shaders 2016-12-08 17:49:41 +00:00
hunterk 0640cc2cca force srgb framebuffers in crt-royale passes 2016-12-07 21:14:21 -06:00
hizzlekizzle 588bccd4a8 switch to 16-bit float framebuffer instead of 32
looks the same to me.
2016-12-07 12:05:05 -06:00
Arzed Five 5fdb0ee25d (gtu-famicom) Style nits, changed div by 2 with mul by 0.5 2016-12-07 01:12:14 +00:00
hunterk 9ee5eb1eb4 move gtu-famicom out of nonfunctional 2016-12-06 18:31:13 -06:00
hunterk 26bccd4bdc add NTSC-colors option to lottes-glow 2016-10-31 22:48:15 -05:00