Commit Graph

119 Commits

Author SHA1 Message Date
PlainOldPants
b9e012f25c
Patchy NTSC - Bunch of last minute improvements (#629)
* Patchy NTSC - Fix hue offset on 2C02E

* Patchy NTSC - Fully update patchy-color.slang

Updated Patchy Color to have all of Patchy NTSC's features.

* Add slangp file for Patchy Color

Now, Patchy Color is officially usable, instead of being hidden and unfinished.

* Patchy NTSC - Add NES real hardware video capture colors

* Patchy NTSC - Fix bizzare incorrect smearing levels

Seriously, why did I leave it like that?

* Patchy NTSC - Don't apply Gen/MD palette on test patterns

* Patchy NTSC - Add chromatic adaptation for some D93 LUTs

* blah

blah

* Patchy NTSC - Set default LUT to Trinitron

* Patchy NTSC - Update presets based on fixed smearing behavior

Returned the hue rotations and saturations to defaults, and increased the threshold for smearing. The defaults don't show the smear out-of-the-box anymore; you will only see it if you turn up your contrast and/or saturation.

* Patchy NTSC - Use video-captured NES color by default
2024-08-29 09:44:23 -05:00
fishcu
05a41341be
Fix input TF bug & large refactoring; Add box filter AA (#613)
* Initial refactoring, pixel AA xform and bf xform still show the problem

* Heavy refactoring and debugging; bf xform first working version

* Clean up code

* Fix pixel aa xform

* Fix average fill; Slight cleanup

* Remove special FinalViewportScaling handling in input_xf; Fix blur fill

* Bump version
2024-07-11 17:02:31 -05:00
Hyllian
3796d44482
Update geom.slang (#606)
* Update geom.slang

- Change some var names to not conflict with other shaders.

* FIx for Geom shader

- Fix moire artifacts;
- Rename all vars using 'geom_' prefix to not conflict with other shaders vars;
- Added geom-append preset.
2024-06-23 09:04:06 -05:00
Hyllian
89dfd9bbd0
Add Geom shader (#605)
- A modified CRT-Geom without CRT features made to be appended/integrated into any other shaders and provide curvature/warping/oversampling features.
2024-06-22 08:11:10 -05:00
fishcu
693c632bdd
Add ray traced curvature shader (#604)
* Ray-sphere intersection

* Implement spherical mapping with AA; Found mip-mapping bug

* Implement screen tilt

* Implement camera offset with tilt

* Clean up code a bit

* Implement perfect zoom; tweak params

* Add zero curvature

* Implement rounded corner

* Add aspect ratio forcing; Add bilinear filtering compile time switch

* Make rounded corner AA more generous

* Implement cylinder shape

* Implement ortho view

* Implement proper trilinear filtering

* Add LOD bias option

* Better sampling

* Initial cleanup

* Apply simplification that curvature_o = 0

* Compress code; Replace shape branching with multiplication

* Move stuff to the vert shader

* Inline update_frustum; Simplify cyl_ax = plane_v

* Separate out vertex shader

* Separate out ray tracing part of frag shader

* Make hq preset default

* Rename to rt curvature; Fix curv = 0 bug

* Fix rotated games; Finalize simplifications and comments

* Move to CRT folder; Add append preset

* Longer comment

* Add additional runtime switch for reducing aliasing when appending
2024-06-14 17:48:23 -05:00
fishku
31caee64df Rename files that are included but no proper shader on their own to .inc 2024-04-29 22:59:57 +02:00
Hyllian
40f5d882c8 Add n64 3-point and relief shaders
- Known N64 3-point texture filter, now in slang;
- Relief shader. Gives some bump to pixel art games.
2024-04-17 15:11:12 -03:00
hizzlekizzle
d7e15b9c05
Merge pull request #571 from fishcu/fishcu/minor-fixes
Minor fixes to input transformation library and blur fill
2024-04-09 08:54:47 -05:00
fishku
5831505f0d Minor fixes found during GLSL porting of code 2024-04-09 18:39:53 +09:00
HyperspaceMadness
b6b3792816 Added drez and improved print-resolution 2024-04-07 22:12:29 -04:00
Matt Akins
9461889a04 Added 'Invert Colors' parameter to 'image-adjustment' 2024-02-06 23:14:20 -08:00
metallic77
099215af54
update simple_color_controls (#522)
fix conflicting parameter names
2023-12-15 18:29:21 -06:00
metallic77
61b00e773a
glsl to slang update (#517)
* glsl to slang update

* Update crt-gdv-mini.slang

* Update fake-crt-geom-potato.slang

* Update fakelottes.slang

* Update fakelottes.slang

* Update zfast_crt_impl.inc

finemask wasn't working properly

* Delete crt/shaders/crt-consumer/bezel2.png

* Update crt-Cyclon.slang

* Update crt-Cyclon.slangp

* Delete crt/shaders/crt-consumer/bezel.png

* Add files via upload

* Delete crt/shaders/crt-consumer/bezel3.png

* Update crt-consumer.slang
2023-12-03 09:13:27 -06:00
metallic77
58ea67a83b
update gdv-mini-ultra, port convergence (#515)
* Update crt-gdv-mini-ultra.slang

* Add files via upload

* Add files via upload

* Update ntsc-simple.slang
2023-11-30 10:47:52 -06:00
metallic77
2a4f904bfd
Update simple_color_controls.slang (#512) 2023-11-17 07:58:23 -06:00
metallic77
b722025b69
Update simple_color_controls.slang (#509)
* Update simple_color_controls.slang

* Update crt-Cyclon.slang

* Update crt-Cyclon.slangp

* Add files via upload

* Add files via upload

* Rename crt/shaders/bogus.slang to crt/shaders/crt-consumer/bogus.slang

* Add files via upload

* Delete crt/shaders/crt-consumer/bogus.slang

* Update crt-Cyclon.slang

* Update crt-Cyclon.slang

* Update crt-Cyclon.slangp

* Add files via upload

* Update crt-Cyclon.slang

* Update simple_color_controls.slang

* Update crt-Cyclon.slang

* Update crt-Cyclon.slangp

* Delete crt/shaders/bezel.png
2023-11-15 15:20:22 -06:00
Isaac
8173887709 Make parameter order consistent 2023-10-14 16:59:50 +02:00
Isaac
fd0539a477 Add input translation option to blur fill and average fill 2023-10-14 16:56:12 +02:00
fishcu
c1488579ee
Scaling: Add overscale option (#482)
* Scaling: Add overscale option

* Bump versions
2023-09-14 19:55:13 -05:00
Dogway
5620bb1dc6
Grade - Update + Features + Fixes. Click for log
- Automatic compensation for black lift in 1886a gamma function, use instead "Black Level" to raise or lower blacks as usual
- Automatic gamma compensation given the new normalized black
- "Black Level" now is deterministic and given in 8-bit values. +10 means blacks will be lifted 10 point values for any gamma output
- Optimization. Now if signal type is RGB, phosphors + color space are sRGB and temperature ~6500K then the wp_adjust() function will be bypassed
2023-09-11 19:46:48 +01:00
fishcu
e366c7524c
Correctly account for screen rotation in several shaders (#478)
* Refactor scaling into include library

Add separate H and V integer scale forcing

Fix blur_fill; average fill still TODO

Clean up and fix blur_fill; Initial docs; Avg fill TODO

Mostly fix avg. fill; sampling TODO; Bump versions, add docs

Fix H/V extension; Tweak default params

Fix avg. fill

Remove defines, create functions

Reorder params

Clean up

Fix pixel_aa subpx sampling with rotation

* Minor docs fix
2023-09-10 09:15:41 -05:00
metallic77
69417bb472
Update chromaticity.slang 2023-08-25 21:56:35 +03:00
Dogway
d53796bc26
Add files via upload 2023-08-13 03:25:48 +01:00
fishcu
259ff81f4b
Repo reorg: edge smoothing, interpolation, and pixel art scaling (#469)
* Move initial batch of shaders and presets to smoothing subdirectory

* Rename smoothing to edge enhancement

* Move cubic and windowed into interpolation

* Fix some presets

* Fix rest of presets

* Rename edge-enhancement to edge-smoothing

* Move pixel art scalers into separate directory separate from 'interpolation'

* Flatten interpolation/cubic into interpolation/
2023-08-12 18:09:28 -05:00
Dogway
6485e4c610
Grade - Formatting + Notes + Cosmetics (#465)
* Grade - Formatting + Notes + Cosmetics

- Adopted some GLES related type consistency and formatting (still not compatible with GLES and not planned)
- Some notes on Phosphors
- Cosmetics

* Grade - Formatting + Notes + Cosmetics

- Adopted some GLES related type consistency and formatting (still not compatible with GLES and not planned)
- Some notes on Phosphors
- Cosmetics
2023-07-19 21:08:28 -05:00
HyperspaceMadness
401c12d6a4 Print Resolution Text preset and shaders
Fixes
2023-06-22 13:22:05 -04:00
metallic77
a638508dbe
improve mono mode 2023-06-18 11:44:27 +03:00
Dogway
5f64d80b7f
Grade - Update + Cosmetics (#451)
* Grade - Update + Cosmetics

- P3-D65 now uses 1886 EOTF
- Mask for GamutCompression is now CRT Gamma adjusted instead of 2.4 constant
- Fix uninitialized 'm_in' variable
- Cosmetics

* Update grade-no-LUT.slang

* Update grade.slang
2023-06-17 16:28:47 -05:00
metallic77
2e55f27f30
Add files via upload 2023-06-15 10:32:02 +03:00
metallic77
5d66f73041
Add files via upload 2023-06-15 10:31:40 +03:00
metallic77
4a2ab835fe
Update chromaticity.slang
improve accuracy
2023-06-11 18:03:04 +03:00
metallic77
9baa8162a5
Update chromaticity.slang
automate color modes
2023-06-11 12:03:00 +03:00
Dogway
6f97a8e547
Grade 2023 - Update
- Bugfixes and code optimizations
2023-06-03 22:07:43 +01:00
metallic77
584f18b1c6
add chromaticity (#435)
* Add files via upload

* add chromaticity
2023-05-28 12:45:59 -05:00
metallic77
a6305a1789
Update ega.slang (#426)
add CGA mode
2023-05-13 07:21:57 -05:00
metallic77
954467430c
Update fake-crt-geom-potato.slang (#425)
* Update fake-crt-geom-potato.slang

* add retro-palettes

* Add EGA filter with dithering
2023-05-12 21:42:31 -05:00
Dogway
7ee946ee62
glass - update 2023-05-11 14:52:31 +01:00
Dogway
d425ae89f2
grade - refactor 2023-05-11 14:52:24 +01: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
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
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
hunterk
b814c58f44 fix path in comment 2022-09-23 23:12:04 -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
3f67e1870d
fix #255
works around rounding differences on different GPUs/drivers
2022-07-23 07:45:56 -05:00
hunterk
582b9fe1ec move the HDR shaders to their own directory, since they have specific requirements 2021-12-30 17:41:07 -06: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
hunterk
d052454535 update bob-deinterlacing and remove now-redundant bob-and-ghost 2021-10-13 19:20:23 -05:00
hunterk
70256e15f6
add more blurs, ss-gamma-ramp, updated nds color (#176)
* add updated NDS color, Super Sleuth gamma ramp and more trogglemonkey blurs
2021-05-27 21:41:42 -05:00
Dogway
ba36486cb2
Add glass.slang (#169)
Glass shader for CRT related artifacts
2021-02-17 12:20:18 -06:00