Changes

Jump to navigation Jump to search

CRT shaders

3 bytes added, 15:08, 22 August 2018
grammar
[[File:Retroarch_2013-07-22_17-21-17-60.png|thumb|298px|CRT-Geom-Flat, with default settings]]
Many of these replicate aperture grille CRTs, which have sharp images and strong scanlines. If you find that this doesn't look a damn thing like your old TV, it's probably because you owned a shadow-mask (Slot mask or dot mask) style CRT, which has less noticeable scanlinesscan lines. The easiest way to tell the difference is to feel the curve of the screen; aperture grilles only curve horizontally if at all, or look at the left and right sides of the glass against the frame. If those sides are curved, it's a shadow mask. If they're straight, it's an aperture grille. Old TVs usually had slot masks, whereas monitors usually had dot masks. Unfortunately, shadow masks require resolutions of upwards of 4K UHD to emulate accurately with no downsampling of the phosphor grid, so all we have for the time being are aperture grille shaders for current display resolutions.
Use integer scaling. This means either using windowed mode (x2,x3,x4) or setting an integer scaling option in the video options. The reason is that non-integer scaled scanlines will result in uneven lines with artifacts, though some shaders use oversampling to try to avoid this.
*[https://github.com/libretro/common-shaders/blob/master/crt/shaders/crt-hyllian-fast.cg crt-hyllian-fast.cg]
Aims only for picture quality, so it avoids things that degrades degrade the image just for accuracy. It , however , uses far less power to run, so it is possible to run this shader on lower end systems than CRT-Geom.
Another version, crt-hyllian-lq.cg is specifically aimed at even lower end systems.
*[https://github.com/hunterk/interpolation-shaders/raw/master/GTUv050test.tar.gz GTUv50 Test program]
A CRT shader that focuses more on simulating blur and blending effects and color levels of CRT screens rather than the physical attributes like phosphors and curvature. Highly configurable, can be really sharp, or really blurry or anywhere in between, with optional scanlines and contrast and gamma settings. Settings are stored in a separate "config.h" file for easy editing. GTU-Famicom is a variant that takes an image from an NES with "raw" colors and processes it to output a an NTSC image much like an actual NES PPU.
The test program is a program that can adjust various attributes, such as horizontal and vertical blur, scanlines, etc. It is useful for testing settings to use with the shader, and also to understand how CRT shaders work in general.
1,809
edits

Navigation menu