Changes

Jump to: navigation, search

MAME

245 bytes added, 15:39, 14 July 2016
/* CRT simulation */
==CRT simulation==
[[File:MAME BGFX Linux detail.png|thumb|BGFX output with default shader settings on Linux]]
[[File:Cpc hlsl shader mess detail.png|thumb|HLSL "1980s" shader (Windows); MAME config used is on image description page]]
MAME can use shaders to simulate typical CRT graphics artifacts such as scanlines, colors bleeding into each other, jitter, and display curvature.
 
===BGFX===
The easiest way to do this (works on Windows, OS X, and Linux) in recent versions of MAME is to enable [https://github.com/bkaradzic/bgfx BGFX] video output: Put this in your mame.ini:
Also, if you press the tilde (~) and then cursor up/down, you can adjust the shader settings. These are not saved at the moment though.[http://docs.mamedev.org/advanced/bgfx.html]
If you edit bgfx/chains/hlsl.json in a text editor, you can change the default values. E.g., to reduce the Moiré pattern, search for "Shadow Mask Amount" and change it to:  "default": 0.20 ===HLSL and GLSL===[[File:Cpc hlsl shader mess detail.png|thumb|HLSL "1980s" shader (Windows); MAME config used is on image description page]] Older methods for CRT simulation are manual HLSL and GLSL configurations, here are some examples:
*Windows (using HLSL shaders)
**A scripted setup with separate "1980s" and "1990s" CRT configs: [http://shmups.system11.org/viewtopic.php?f=6&t=45026&start=240] (huge post is halfway down the page)
1,544
edits