Commit graph

1526 commits

Author SHA1 Message Date
hizzlekizzle 50d97746c8
Merge pull request #416 from gizmo98/blur
Add gizmo-blur shader
2023-05-04 16:22:46 -05:00
gizmo98 f66bc9a065 Add gizmo-blur shader
Features:
- uniform-nearest shader with parameterizable horizontal and vertical blur
- can be used to mimic horizontal composite effects and vertical software blur
- has a parameterizable colour bleeding option

https://forums.libretro.com/t/gizmo-blur-shader/41514
2023-05-04 20:22:20 +02:00
gizmo98 5fc0d5396b Add uniform-nearest shader
Features:
- produces nearest neighbor look with fractional scales.
- uses texture AA shader code.
- uses hotizontal subpixel scaling.
- due to different pixel sizes, moving sprites change dimension if nearest neighbor is used with fractional scaling. This looks unsteady. This shader uniforms pixel dimensions. Output looks much quieter.

https://forums.libretro.com/t/uniform-nearest-interpolation-shader/41492
2023-05-04 20:10:58 +02:00
metallic77 d114c41686
add night-mode (#414)
* Update crt-consumer.slang

Removed NTSC as it conflicts with saturation/hue, and can be used as a separate pass anyway. Fixed some mistakes. Massive speed-up from 120 fps to 450 fps on Intel HD630.

* Update crt-gdv-mini-ultra.slang

Removed NTSC,  some corrections too.

* Update zfast_crt_composite.slang

* Update fake-crt-geom.slang

* Add files via upload

* add night_mode

* Update lanczos16.slang

fix minor artifacts

* Brightness fix scanline.slang

Permanent Brightness fix. No need to adjust "SCANLINE_BASE_BRIGHTNESS.

* fix scanlines misalignment
2023-05-01 08:27:13 -05:00
Stefan b14a5b6ab1
Add gizmo-crt shader (#413)
* Add gizmo-crt shader

This shader tries to reproduce a CRT-like output without replicating mask or RGB patterns.

It has the following features:
- allows fractional scaling
- uses texture AA shader and subpixel scaling for evenly placed sharp pixels
- has a horizontal blur function which mimics bad signal quality of some systems (megadrive, psx)
- has a vertical blur function which mimics n64 vertical software blur
- adds some noise to mimic restless CRT colors
- has a curvator function
- looks good with resolutions <= 1080p
- has modest system requirements

https://forums.libretro.com/t/gizmo-crt-shader/41409
https://github.com/gizmo98/gizmo-crt-shader
2023-04-30 09:25:44 -05:00
metallic77 2b0ae3e422
updates (#412)
* Update crt-consumer.slang

Removed NTSC as it conflicts with saturation/hue, and can be used as a separate pass anyway. Fixed some mistakes. Massive speed-up from 120 fps to 450 fps on Intel HD630.

* Update crt-gdv-mini-ultra.slang

Removed NTSC,  some corrections too.

* Update zfast_crt_composite.slang

* Update fake-crt-geom.slang
2023-04-29 12:25:34 -05:00
metallic77 aaf83724d3
add fake-crt-geom-potato (#409)
* add fake-crt-geom-potato

* add fake-crt-geom-potato

* Update fake-crt-geom.slang

Add cheap Color Temperature Control
2023-04-28 22:20:58 -05:00
hizzlekizzle a61e445a4d
Merge pull request #410 from kokoko3k/master
Koko-aio: update to 4.1
2023-04-28 22:17:59 -05:00
Antonio Orefice b9aed4a2cd Koko-aio: update to 4.1 2023-04-28 10:03:23 +02:00
hizzlekizzle 29e7cdab41
Merge pull request #407 from metallic77/master
Update bilinear-adjustable.slang
2023-04-27 16:29:50 -05:00
metallic77 bc1ac8ff16
Update scanline.slang
Fix rounding issues
2023-04-27 18:11:20 +03:00
metallic77 c85d5765e1
Update bilinear-adjustable.slang
Fix rounding issues in some devices.
2023-04-27 18:07:40 +03:00
hizzlekizzle d001ba266c
Merge pull request #406 from metallic77/master
Update res-independent-scanlines.slang
2023-04-26 16:26:01 -05:00
metallic77 8b299c5a89
fake crt-geom speed-up
Removed unwanted code, simplified, added speed-up option. Gained 10% speed-up on normal operation and 30% on speed-up option enabled.
2023-04-26 22:36:59 +03:00
metallic77 bd3cbebeee
Update res-independent-scanlines.slang 2023-04-26 09:18:55 +03:00
metallic77 aaca9c96aa
add bilinear-adjustable (#401)
* add bilinear-adjustable

* add bilinear-adjustable
2023-04-25 07:59:48 -05:00
metallic77 c4a15d2c26
add crt-potato-BVM (#400)
* add crt-potato-BVM
2023-04-22 10:13:11 -05:00
metallic77 277521abcb
improved glow (#398)
* integrate NTSC-colors

* Integrate NTSC-colors

* Integrate NTSC-colors, some fixes too

* additions

Added hue shift from grade, improved glow, added scanlines downscale to interlace mode. Some other touches too

* Update crt-consumer.slang

* fix scanlines misalignment

* add protect white on masks parameter

* improve glow

* add palette fixes

Sega, and PUAE Atari ST dark palettes
2023-04-21 10:28:42 -05:00
metallic77 b28d910c29
add protect white on masks parameter (#397)
* integrate NTSC-colors

* Integrate NTSC-colors

* Integrate NTSC-colors, some fixes too

* additions

Added hue shift from grade, improved glow, added scanlines downscale to interlace mode. Some other touches too

* Update crt-consumer.slang

* fix scanlines misalignment

* add protect white on masks parameter
2023-04-20 09:26:54 -05:00
metallic77 91eb05f136
fix scanlines misalignment/excessive moire (#396)
* integrate NTSC-colors

* Integrate NTSC-colors

* Integrate NTSC-colors, some fixes too

* additions

Added hue shift from grade, improved glow, added scanlines downscale to interlace mode. Some other touches too

* Update crt-consumer.slang

* fix scanlines misalignment
2023-04-19 12:30:14 -05:00
metallic77 396a2ed753
additions-touch ups (#395)
* integrate NTSC-colors

* Integrate NTSC-colors

* Integrate NTSC-colors, some fixes too

* additions

Added hue shift from grade, improved glow, added scanlines downscale to interlace mode. Some other touches too

* Update crt-consumer.slang
2023-04-19 09:25:36 -05:00
hizzlekizzle 0b33b2cf9c
add img-flip param to metaCRT
for use with hardware-rendered cores
2023-04-18 08:27:18 -05:00
metallic77 5cc1d51b8e
Integrate NTSC-Colors plus some fixes (#394)
* integrate NTSC-colors

* Integrate NTSC-colors

* Integrate NTSC-colors, some fixes too
2023-04-18 08:25:46 -05:00
metallic77 06266c3d61
fix darken in interlace, interlace off works again (#391)
* improvements/additions

* improvements/additions

* add prescale sharpening

* add prescale sharpening

* fix darken in interlace, interlace off works again
2023-04-17 15:41:23 -05:00
metallic77 f4d1d7ce55
crt-consumer add prescale sharpening (#389)
* improvements/additions

* improvements/additions

* add prescale sharpening

* add prescale sharpening
2023-04-16 17:39:21 -05:00
hizzlekizzle 3270cbffdc
Merge pull request #390 from kokoko3k/master
Koko-aio: Re-enable mipmaps for bezel and wrap_mode in shader.
2023-04-16 17:38:33 -05:00
Antonio Orefice 1f3fbd2edc Koko-aio: Re-enable mipmaps for bezel and wrap_mode in shader.
The first correct a glitch on amd+vulkan and the second seems still needed by preset creators
2023-04-16 19:29:57 +02:00
metallic77 34852ceca5
improvements/additions (#388)
* improvements/additions

* improvements/additions
2023-04-16 09:36:08 -05:00
hizzlekizzle b9b21e61b1
Merge pull request #386 from kokoko3k/master
Update koko-aio to 4.0
2023-04-13 22:50:41 -05:00
Antonio Orefice 7d77b9d146 Update koko-aio to 4.0 2023-04-13 17:16:48 +02:00
metallic77 e0d753c22e
gdv-mini-ultra more additions (#385)
* additions

* more additions
2023-04-13 09:33:09 -05:00
metallic77 7d64554c36
various changes/additions (#384)
* Update crt-consumer.slangp

* change default parameters

* add mono display option & fix interlacing

* fix interlacing
2023-04-11 08:01:12 -05:00
hizzlekizzle 6c3249c63b
Merge pull request #382 from metallic77/master
hyllian-fast add sharper "hermite" filter option
2023-04-09 06:49:03 -05:00
metallic77 3318511ed2
Add sharper hermite filter option 2023-04-09 10:21:36 +03:00
metallic77 5ed39804bc
port fake-crt-geom & hyllian-fast (#380)
* Add files via upload

* Add files via upload

* port fake-crt-geom

* port fake-crt-geom

* port crt-hyllian-fast

* port crt-hyllian-fast
2023-04-07 09:10:33 -05:00
metallic77 4ab9e232f3
Add another more rich version of gdv-mini (#378)
* Add files via upload

* Add files via upload
2023-04-03 10:00:04 -05:00
hizzlekizzle a7ddbe002f
Merge pull request #377 from metallic77/master
add post brightness option
2023-03-29 07:44:26 -05:00
metallic77 8ff461edee
add post brightness option 2023-03-29 15:17:30 +03:00
hizzlekizzle 1d7629fd67
fix scaling on easymode-halation 2023-03-27 09:04:33 -05:00
LibretroAdmin 3ba8b4c87f
Merge pull request #376 from metallic77/master
fix some errors to work as on GLSL
2023-03-21 13:21:17 +01:00
metallic77 5d5fd86aff
fix some errors to work as on GLSL 2023-03-21 09:00:58 +02:00
hunterk 2b30c6089f
Make a bunch of implicit scaling settings explicit (#375)
* make a bunch of implicit scaling rules explicit and move color shaders before scaling shaders in the handheld directory

* remove extraneous file

* switch vhs from viewport to source scaling
2023-03-20 10:03:42 -05:00
hizzlekizzle 7d4ce160c9
Merge pull request #374 from HyperspaceMadness/master
Mega Bezel V1.12.0_2023-03-11
2023-03-14 08:29:28 -05:00
HyperspaceMadness 6fdb0796b4 Mega Bezel V1.12.0_2023-03-11
Changes:
  * Improved Performance
    * Fixed a performance issue  where we were rendering more than we needed to
    * This should increase performance across most presets
  * Fixed color rainbowing in reflection for Guest-Advanced and LCD-GRID
  * Updated to crt-guest-advanced-2023-03-11-release1
  * Updated GDV-MINI from @ROBMARK85's request
2023-03-13 21:23:28 -04:00
Antonio Orefice 8b35477a93
Update koko-aio to 3.9.1 (#373)
* Update koko-aio to 3.8

* Missing files from previous commit

* Still missing files

* Fix full presets, hopefully ready for merging
2023-03-08 11:13:42 -06:00
hizzlekizzle f3ec2864ba
Merge pull request #371 from HyperspaceMadness/master
Mega Bezel V1.11.0_2023-02-25
2023-02-28 07:47:30 -06:00
HyperspaceMadness 7cdc185f8c Mega Bezel V1.11.0_2023-02-25
Changes:
  * Guest Advanced updated to crt-guest-advanced-2023-02-25-release1
    * Improvements to the new Magic Glow feature
      * Turn Magic Glow on and Increase the Glow amount to see the effect
    * New Slot Mask Mitigation option to reduce moire
  * Added/Restored Guest's Raster Bloom as well as Overscan control
  * Updated Comments in presets to use # instead of // as per @hunterk's request
  * Added rotation option for Rotate CRT Tube:
    * -1 = 90 Degrees Clockwise (or 270 Counter Clockwise)
    * 0 = No Rotation
    * 1 = 90 Degrees Counter Clockwise
  * Added groundwork for the wildcard replacement feature so presets will auto rotate and not flip in the future
  * Added DREZ presets which keep the horizontal resolution
    * Helpful for applying to modern games, these two are good to try
        * `Presets\Base_CRT_Presets_DREZ\MBZ__3__STD__GDV__DREZ_X-VIEWPORT_Y-240p.slangp`
        * `Presets\Base_CRT_Presets_DREZ\MBZ__3__STD__GDV__DREZ_X-VIEWPORT_Y-480p.slangp`
    * Also looks good on MVC2, try `Presets\Base_CRT_Presets_DREZ\MBZ__3__STD__GDV__DREZ_X-VIEWPORT_Y-240p.slangp`
  * Updated preset capability and performance table
  * Added contrast for signal noise
  * Added some more Sinden presets for SCREEN-ONLY and POTATO
  * Added Screen Region to Resolution Debug text
    * Good for getting the screen region pixel coordinates if you need them
  * Adjusted Ambient Lighting Scaling when using the Inherit Zoom scale mode
    * Now when you zoom out it is much less likely to generate a black frame covering the outer parts of the background image
    * The minimum size of the lighting texture will be close to the height of the current viewport
    * This reduces the likelihood that we will see the cutoff
  * ScaleFx: Exposed more of the settings so they can be tweaked
    * Default Settings changed:
      * ScaleFx Threshold: now 0.43 (was 0.5)
      * ScaleFx Filter Corners: now 0 (was 1)
      * These settings result in a slighly clearer picture and less rounding of square corners
  * SMOOTH-ADV ntsc presets: ntsc_scale adjusted so it visually matches the regular ADV ntsc presets
2023-02-28 08:11:50 -05:00
hunterk 37a46fd102
fix malformed presets (#370)
* fix preset parsing issues from https://github.com/libretro/slang-shaders/issues/369

* one more preset fixed

* fix some malformed preset directives

* fix preset lines erroneously ending in semicolons

* fix another malformed preset directive

* make sure grade and glass at least load properly

* comment one more bad path
2023-02-24 07:35:58 -06:00
hizzlekizzle 890a1e95b2
remove spurious FragCoord input
fixes https://github.com/libretro/slang-shaders/issues/368
2023-02-20 11:21:13 -06:00
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