Changes

Jump to navigation Jump to search

Shader Presets

941 bytes removed, 18 April
m
External Links
{{WIP}}
Shader Presets are combinations of one or more shaders. The Shader Chain which is a stack of shader passes each one pointing to a specific shader file.<ref>[https://docs.libretro.com/guides/shaders/#shader-presets Libretro docs: Shaders]</ref> There is a misconception about shaders; Generally, you really can't copy+paste shaders between two different programs even if they support same extension like .glsl, not unless they know how their shaders are structured and what kind of input they need and output they give.<ref>[https://forums.dolphin-emu.org/Thread-possible-to-create-a-ntsc-s-video-shader-for-dolphin?pid=450879#pid450879 Shonumi's comment about shader extensions and using with different programs]</ref>
 
;Before diving in;
;*Some of the [[Shader Presets]] mentioned below include [[shaders and filters]] that are already available as enhancement/adjustment option (such as [https://www.nvidia.com/content/Control-Panel-Help/vLatest/en-us/mergedProjects/nvdsp/To_use_Digital_Vibrance_to_make_your_desktop_colors_richer.htm digital vibrance]) in your [https://www.pcgamingwiki.com/wiki/Category:Graphics_Adaptor GPU driver control panel] or from your digital [[displays|display]] OSD. Some of those things may cause color clipping, exposure issues (due to using excessive digital adjustments to image) and [[Input lag]]. It's recommended to avoid usage of color or excessive image options/filters. But you can use [[Displays|analog device/CRT]]'s OSD adjustments. Another proper option for this using the RTX Dynamic Vibrance option (See [[Shaders and filters#AI-powered filters]]) to avoid color crashing and top of that using a HDR device with [[High_dynamic_range#Inverse_tone_mapping|Inverse tone mapping]].
==RetroArch/Libretro==
===[https://forums.libretro.com/t/sonkun-s-crt-guest-advanced-slot-mask-presets-thread/39091 Sonkun’s crt-guest-advanced-hd presets]===
[[File:Sonkun megadrive.jpeg|thumb|298px|ntsc 2-phase preset Megadrive version]]A mix of basic crt attributes that invokes a nostalgic vibe with a modern twist, based on [https://forums.libretro.com/t/new-crt-shader-from-guest-crt-guest-advanced-updates/25444 @guest.r’s crt advanced hd and ntsc shader] combined with a variation of [https://forums.libretro.com/t/dogways-grading-shader-slang/27148/442 @Dogway’s grade shader].
3 shader preset folders for 3 monitor types: 1080p, 1440p and 4k so whichever monitor you have, you can choose the right shader resolution for your monitor type. These presets were designed to be used on these three resolution types only. Not OLED, 720p or other random resolutions, if you use it on any type of display besides those 3 standard displays [http://forums.libretro.com/u/sonkun Sonkun] may not be able to help if you run into any issues. If they end up looking ok to you on your display regardless then game on. 64 shader presets to choose from per folder with 3 different phosphor types for USA, Japan and PAL that come in both color temp and multiple cable types to choose from included (representing 4 cable types to choose from: rf, composite, s-video and rgb).[httpand 3 composite types to choose from://forums.libretro.com/u/sonkun Sonkun] created two different types of rf/composite connectionsstandard, one for ntsc 2-phase artifacts and one for ntsc 3-phaseMegadrive rainbow. Most systems used the 2Also S-phase output but a few systems used the 3-phase output as well.<br/> Video presets includes [httphttps://forums.libretrogithub.com/u/sonkun SonkunHyllian Hyllian] created a list ’s “sgenpt-mix multpass” shader to take care of the common retro systems on RetroArch to choose the right connection for the right system; <small><div style="max-width:100%; overflow:auto;">{| class="wikitable" style="text-align:center;"! scope="col"|ntsc 2-phase! scope="col"|ntsc 3-phase|-! colspan="2"||-|Amstrad GX4000, Arcade, Atari 5200, Atari 7800, Atari Jaguar/CD, Atari ST, Commodore CDTV, Commodore Amiga CD32, Fairchild Channel F, Magnavox Odyssey 2, Mattel Intellivision, MS-DOS, MSX2, MSX2+, MSXturboR, Nintendo 64/DD, Nintendo GameCube, NEC PC Engine(Turbo Grafx)/CD, NEC SuperGrafx, Panasonic 3DO, Philips CD-i, SNK Neo Geo AES, SNK Neo Geo CD, Sega Megadrive(Genesischeckerboard dithering and lite vertical line dithering)/CD/32X, Sega Dreamcast, Sega Pico, Sega Saturn, Sharp X68000, Sony PlayStation, Sony PlayStation 2|Atari 2600, ColecoVision, MSX, NEC PC-FX, Nintendo Famicom/Nintendo Entertainment System, Sega Master System, Sega SG-1000, Super Famicom/Super Nintendo Entertainment System|}</div></small>
Only a few systems used the 3-phase output as you can see but that output produced a different diagonal dithering colorRecommended to use with these shaders is rf/artifact effect on the screen composite for those specific all systems that from the 24th generation consoles and below (nes, snes, genesis, atari, turbografx etc.), s-phase output didn’t video for 5th and 6th generation consoles (ps1, saturn, n64, dreamcast, ps2, gamecube) and [http://forumsrgb for arcade. Also for NES cores Sonkun recommend changing the Palette setting.libretroThe two most popular cores are mesen and nestopia.com/u/sonkun For Mesen you should use the “Original Hardware (by FirebrandX)” setting, for Nestopia use the “NTSC hardware FBx” setting as Sonkun] wanted to recreate composite presets were designed with those outputs pallets settings. Also with these two types of ntsc shader presetsMesen you should change both the top and bottom overscan settings to 8px to avoid harsh moire patterns on the screen. [http://forums.libretro.com/u/sonkun For Nintendo 64 mupen64plus-next core with Parallel-rdp settings enabled Sonkun] also created a rf/composite ntsc 2-phase preset strictly for Megadrive/Genesis recommend changing the “crop overscan” setting to 8 to help reduce moire patterns that recreates appear on the accurate rainbow dithering effects so you have two options for rf/composite dithering/rainbows screen with that you can choose fromsetting at default 0.
===[https://forums.libretro.com/t/mega-bezel-reflection-shader-feedback-and-updates/25512 HSM's Mega Bezel]===
</small>
====Extra Presets Other notable presets for HSM project====
These presets are tested and developed for use in conjunction with the HSM's Mega Bezel.
[[File:Duimon's NGP-NGPC preset.jpeg|thumb|298px|Duimon's Neo Geo Pocket/Color preset]]
<div style="height:20em; width:500px; overflow:auto; border:2px solid black;">
{| class="wikitable" style="text-align:center;"
! scope="col"|Features
|-
|
Back-Ups Arcade relies of three pieces of software to make it work:
 
<small>
<div style="height:8em; width:500px; overflow:auto; border:2px solid black;">
{| class="wikitable" style="text-align:center;"
|-
|
* Attract Mode Plus: The front end.
* RetroArch: The back end.
* RocketLauncher: The intermediary software used for game fades and pause menu.
|}
</div>
</small>
'''For more information;'''
==[https://reshade.me/#download ReShade]==
ReShade is a '''generic post-processing injector''' for games and video software developed by [https://github.com/crosire crosire]. Similar to libretro, shader effects are saved with a special extension:".fx", and again similar to libretro you can tweak them to fit your needs or create your own custom preset. '''For preset file location look for ReShade.ini and "CurrentPresetPath=", and it will tell you the location'''. Latest [[Duckstation]] release builds comes with [[PlayStation_emulators#Enhancements|ReShade .fx shader support]].
.fx'''h''' for '''fx'''
 
And again similar to libretro you can tweak them to fit your needs or create your own custom preset. '''For preset file location look for ReShade.ini and "CurrentPresetPath=", and it will tell you the location'''.<br/>
Latest [[Duckstation]] release builds comes with [https://github.com/stenzek/duckstation/commit/8a40c7bf944b3a4209d90134a379c9d1f0cc7e20 ReShade .fx shader support].
 
===Notable presets for ReShade===
====[https://github.com/MajorPainTheCactus/SonyMegatron-ReShade Sony Megatron ReShade Port (HDR)]====
:For using this preset you need [[#Notable_shaders_for_using_with_ReShade_Presets|AutoHDR]] add-on for ReShade.
====[https://disk.yandex.ru/d/JO3NUIa0r1X45w Vasiliy.M.'s PCSX2 CRT]====
:<small>[https://youtu.be/dpSi5yn2emY?t=18 (Demonstration)]</small>
====[https://github.com/frankschoeman/kyubus-shader kyubus Retro CRT]====
:<small>[https://www.youtube.com/@kyubus7814/videos (Demonstration)]</small>
::Kyubus Retro CRT is a collection of Reshade and RetroArch retro CRT presets using existing shaders such as [[CRT_shaders#CRT-Guest-Advanced|CRT-Guest]], [[CRT_shaders#CRT-Royale|CRT-Royale]] and [[CRT_shaders#CRT-Lottes|CRT-Lottes]]. ::These presets are mainly developed on a monitor resolution of 1440p but presets for 1080p and 4k monitors are included.
::To make the lower resolution shader display correctly RetroArch (or any emulator) integer scaling needs to be switched ON (Settings>video>scaling). GaussianBlur, LumaSharpen and Deband(range) are probably the first parameters you might want to adjust depending on the resolution of the content and your preferences. [https://github.com/frankschoeman frankschoeman] also recommend trying RetroArch shaders underneath such as "/xbr/super-xbr-fast.slangp"(Set Input and Output gamma to 1.0 in shader parameters) and "/cubic/catmull-rom-fast.slangp". In case those aren't available [https://github.com/frankschoeman frankschoeman] suggest setting the preset to one where GaussianBlur is enabled.
====[https://1drv.ms/u/s!Akfc1OCPWC-sg9BB3R1LG2SjK66Cvg?e=nxVGTe AirCon's Retro CRT]====
:<small>[https://www.youtube.com/watch?v=wp_ha411BgY (Demonstration)]</small>
::Mimics blurry, lightbleeding, uncalibrated inexpensive 8~90's CRT.
====Notable shaders for using with ReShade Presets====
These are not shader presets. But you can create your own custom preset using these .fx shadersSee [[Shaders_and_filters#Notable_ReShade_shaders|this section]].
<small><div style="height:25em; width:500px; overflow:auto; border:2px solid black;">{| class="wikitable" styleSpecial K="text-align:center;"|-|[https://www.patreon.com/mcflypg Pascal Gilcher's <abbr title="Screen-Space Ray Traced Global Illumination shader">RTGI shader</abbr>] ($):Developed by [https://twitter.com/mcflypg Pascal "Marty McFly" Gilcher], RTGI & '''Screen-Space''' Ray Traced Global Illumination is an upcoming shader for ReShade which make use of Path Tracing to bring Real Time Global Illumination to every games. Global Illumination is certainly not something new for games but unlike conventional Baked / Precomputed Realtime GI, Marty McFly's Path Traced solution can provide a way more realistic and physically correct Global Illumination for every game. <ref>See [https://www.youtubepcgamingwiki.com/watch?v=ZOPgXRZSvzQ Ray Tracing Revolution's video about RTGI]<wiki/ref>:Special_K PCGamingWiki:Reshade needs [https://www.youtube.com/watch?v=zMceMD9OzIE '''depth buffer access'''Special K page] to make the RTGI shader work properly.[https://github.com/MajorPainTheCactus/AutoHDR-ReShade AutoHDR]:This add on is ideally intended to be used with the Sony Megatron ReShade Port Presets.[https://github.com/Matsilagi/RSRetroArch/ matsilagi's RSRetroArch]:Repository of RetroArch and retro-related shaders / shaders from programs, ported for ReShade[https://github.com/akgunter/crt-royale-reshade akgunter's crt-royale-reshade]:This is a port of the crt-royale shader by TroggleMonkey from RetroArch/libretro to ReShade 4.9+.[https://forums.libretro.com/t/crt-guest-advanced-hd-and-ntsc-for-reshade/41880 DevilSingh's CRT-Guest-Advanced, HD and NTSC for ReShade]|}</div></small>
==[https://github.com/mausimus/ShaderGlass/releases ShaderGlass]==
:You can find [https://github.com/SnowflakePowered/librashader librashader on GitHub].
:Reddit thread: [https://old.reddit.com/r/emulation/comments/17tgpqf/has_there_been_any_interest_in_librashader_support/ Has there been any interest in librashader support?]
::with v137 version, [[Ares]] emulator integrated librashader support thanks to [https://github.com/ares-emulator/ares/pull/1397 this pull request].
==Future==
*[https://www.youtube.com/watch?v=otNKBqxOLPE EmuVR with <abbr title="Screen-Space Ray Traced Global Illumination shader">RTGI</abbr> example demonstration #1]
*[https://www.youtube.com/watch?v=snBg45ES-II EmuVR with <abbr title="Screen-Space Ray Traced Global Illumination shader">RTGI</abbr> example demonstration #2]
 
==See also==
*[[CRT_shaders|CRT shaders]]
*[[Shaders_and_filters|Shaders and filters]]
*[[NTSC_filters|NTSC filters]]
*[[High dynamic range]] (HDR)
==External Links==
<small>
<div style="height:17em; width:620px; overflow:auto; border:2px solid black;">
{| class="wikitable" style="text-align:center;"
|-
|
*[https://forums.libretro.com/c/retroarch-additions/retroarch-shaders RetroArch Additions - Shaders]
*[https://reshade.me/forum/shader-discussion/6140-reshade-shaders-repository-index Reshade Shaders Repository Index]
*[https://www.youtube.com/watch?v=OIagIphxSwg "Integrum Retro" showcasing shader presets and overlays]
*"Retro Crisis" showcasing [https://www.youtube.com/watch?v=vDcmPpDUZwA Sonkun's presets], [https://www.youtube.com/watch?v=rEcUOEK8j3c Sonkun's NEW presets with new guest.r shaders], [https://www.youtube.com/watch?v=qhjXeo6e44Q CyberLab's NEW version of CRT-Royale], [https://www.youtube.com/watch?v=VghduLw79-E CyberLab Megatron 4K HDR], [https://www.youtube.com/watch?v=yNmJ0n-QMCY CyberLab's NEW Megatron presets for Death To Pixels Shader preset packs], [https://www.youtube.com/watch?v=_oM1SCv48-E Retro-Crisis-GDV-NTSC NEW PlayStation presets] and podcasts with [https://www.youtube.com/watch?v=9jtpXtJbRps Hyperspace Madness - Creator of Mega Bezel] and [https://www.youtube.com/watch?v=hu3mtPbfMTk CyberLab - Creator of Mega Bezel Death To Pixels Shader Preset Pack]
|}<*[https:/div></small>forums.libretro.com/t/please-show-off-what-crt-shaders-can-do/19193?page=303 libretro forum: what crt shaders can do]
[[Category:FAQs]]
[[Category:Shaders/Filters]]
11,046
edits

Navigation menu