Advertisement
ICEknigh7

crt-geom-deluxe home generic

Jul 12th, 2021 (edited)
1,053
0
Never
11
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 12.82 KB | None | 0 0
  1. {
  2.     "name": "crt-geom-deluxe home generic",
  3.     "author": "cgwg, ICEknight",
  4.     "sliders": [
  5.         { "type": "float",
  6.           "name": "aperture_strength",
  7.           "text": "Shadow mask strength",
  8.           "default":  0.25,
  9.           "max"    :  1.0,
  10.           "min"    :  0.0,
  11.           "step"   :  0.05,
  12.           "format": "%1.2f",
  13.           "screen": "raster" },
  14.         { "type": "float",
  15.           "name": "aperture_brightboost",
  16.           "text": "Shadow mask brightness boost",
  17.           "default":  0.5,
  18.           "max"    :  4.0,
  19.           "min"    :  0.0,
  20.           "step"   :  0.05,
  21.           "format": "%1.2f",
  22.           "screen": "raster" },
  23.         { "type": "float",
  24.           "name": "spot_size",
  25.           "text": "Spot size minimum",
  26.           "default":  0.4,
  27.           "max"    :  0.5,
  28.           "min"    :  0.1,
  29.           "step"   :  0.01,
  30.           "format": "%1.2f",
  31.           "screen": "raster" },
  32.         { "type": "float",
  33.           "name": "spot_growth",
  34.           "text": "Spot size dilation",
  35.           "default":  0.175,
  36.           "max"    :  0.4,
  37.           "min"    :  0.0,
  38.           "step"   :  0.01,
  39.           "format": "%1.2f",
  40.           "screen": "raster" },
  41.         { "type": "float",
  42.           "name": "spot_growth_power",
  43.           "text": "Spot dilation onset power",
  44.           "default":  0.5,
  45.           "max"    :  4.0,
  46.           "min"    :  0.2,
  47.           "step"   :  0.1,
  48.           "format": "%1.1f",
  49.           "screen": "raster" },
  50.         { "type": "float",
  51.           "name": "lowpass_cutoff",
  52.           "text": "Lowpass cutoff pixels/scanline",
  53.           "default": 230.0,
  54.           "max"    : 400.0,
  55.           "min"    : 100.0,
  56.           "step"   :  10.0,
  57.           "format": "%1.0f",
  58.           "screen": "raster" },
  59.         { "type": "float",
  60.           "name": "lowpass_width",
  61.           "text": "Lowpass width",
  62.           "default": 160.0,
  63.           "max"    : 300.0,
  64.           "min"    :   0.0,
  65.           "step"   :  10.0,
  66.           "format": "%1.0f",
  67.           "screen": "raster" },
  68.         { "type": "intenum",
  69.           "name": "x_interpolation",
  70.           "text": "Horizontal interpolation",
  71.           "default":  2,
  72.           "max"    :  5,
  73.           "min"    :  0,
  74.           "step"   :  1,
  75.           "format": "%s",
  76.           "strings": [ "box", "linear", "Lanczos", "Catmull-Rom", "Mitchell-Netravali", "B-spline" ],
  77.           "screen": "raster" },
  78.         { "type": "float",
  79.           "name": "phosphor_power",
  80.           "text": "Phosphor decay power",
  81.           "default":  1.1,
  82.           "max"    :  3.0,
  83.           "min"    :  0.5,
  84.           "step"   :  0.01,
  85.           "format": "%1.2f",
  86.           "screen": "raster" },
  87.         { "type": "float",
  88.           "name": "phosphor_cutoff",
  89.           "text": "Phosphor decay cutoff frames",
  90.           "default":  300.0,
  91.           "max"    : 1000.0,
  92.           "min"    :   10.0,
  93.           "step"   :   10.0,
  94.           "format": "%1.0f",
  95.           "screen": "raster" },
  96.         { "type": "float",
  97.           "name": "phosphor_amplitude",
  98.           "text": "Phosphor persistence amplitude",
  99.           "default":  0.012,
  100.           "max"    :  0.2,
  101.           "min"    :  0.0,
  102.           "step"   :  0.0005,
  103.           "format": "%1.2f",
  104.           "screen": "raster" },
  105.         { "type": "float",
  106.           "name": "rasterbloom_smooth",
  107.           "text": "Raster bloom temporal smoothing",
  108.           "default":  0.2,
  109.           "max"    :  0.99,
  110.           "min"    :  0.0,
  111.           "step"   :  0.01,
  112.           "format": "%1.2f",
  113.           "screen": "raster" },
  114.         { "type": "float",
  115.           "name": "rasterbloom",
  116.           "text": "Raster bloom amplitude",
  117.           "default":  0.045,
  118.           "max"    :  0.1,
  119.           "min"    :  0.0,
  120.           "step"   :  0.001,
  121.           "format": "%1.3f",
  122.           "screen": "raster" },
  123.         { "type": "float",
  124.           "name": "halation",
  125.           "text": "Halation amplitude",
  126.           "default":  0.014,
  127.           "max"    :  1,
  128.           "min"    :  0.0,
  129.           "step"   :  0.001,
  130.           "format": "%1.2f",
  131.           "screen": "raster" },
  132.         { "type": "float",
  133.           "name": "blurwidth",
  134.           "text": "Halation blur width",
  135.           "default":  4.0,
  136.           "max"    :  20.0,
  137.           "min"    :  0.1,
  138.           "step"   :  0.1,
  139.           "format": "%1.1f",
  140.           "screen": "raster" },
  141.         { "type": "float",
  142.           "name": "curvature",
  143.           "text": "Enable curvature",
  144.           "default":  1.0,
  145.           "max"    :  1.0,
  146.           "min"    :  0.0,
  147.           "step"   :  1.0,
  148.           "format": "%1.0f",
  149.           "screen": "raster" },
  150.         { "type": "float",
  151.           "name": "R",
  152.           "text": "Radius of curvature",
  153.           "default":  2.0,
  154.           "max"    : 10.0,
  155.           "min"    :  0.5,
  156.           "step"   :  0.1,
  157.           "format": "%1.1f",
  158.           "screen": "raster" },
  159.         { "type": "float",
  160.           "name": "d",
  161.           "text": "Distance to screen",
  162.           "default":  3.0,
  163.           "max"    : 10.0,
  164.           "min"    :  0.1,
  165.           "step"   :  0.1,
  166.           "format": "%1.1f",
  167.           "screen": "raster" },
  168.         { "type": "vec2",
  169.           "name": "angle",
  170.           "text": "Tilt ",
  171.           "default": [ 0.0, 0.0 ],
  172.           "max"    : [ 1.0, 1.0 ],
  173.           "min"    : [-1.0,-1.0 ],
  174.           "step"   : 0.01,
  175.           "format": "%1.2f",
  176.           "screen": "raster" },
  177.         { "type": "float",
  178.           "name": "cornersize",
  179.           "text": "Rounded corner size",
  180.           "default":  0.0,
  181.           "max"    :  0.10,
  182.           "min"    :  0.00,
  183.           "step"   :  0.01,
  184.           "format": "%1.2f",
  185.           "screen": "raster" },
  186.         { "type": "float",
  187.           "name": "cornersmooth",
  188.           "text": "Border smoothness",
  189.           "default":  1000,
  190.           "max"    :  2000,
  191.           "min"    :  100,
  192.           "step"   :  100,
  193.           "format": "%1.0f",
  194.           "screen": "raster" },
  195.         { "type": "vec2",
  196.           "name": "overscan",
  197.           "text": "Overscan ",
  198.           "default": [ 1.0, 1.0 ],
  199.           "max"    : [ 1.2, 1.2 ],
  200.           "min"    : [ 0.8, 0.8 ],
  201.           "step"   : 0.005,
  202.           "format": "%1.2f",
  203.           "screen": "raster" },
  204.         { "type": "float",
  205.           "name": "CRTgamma",
  206.           "text": "Gamma of simulated CRT",
  207.           "default": 3.25,
  208.           "max"    :  4.0,
  209.           "min"    :  0.7,
  210.           "step"   :  0.05,
  211.           "format": "%1.2f",
  212.           "screen": "raster" },
  213.         { "type": "intenum",
  214.           "name": "monitorsRGB",
  215.           "text": "Gamma of output display",
  216.           "default":  1,
  217.           "max"    :  1,
  218.           "min"    :  0,
  219.           "step"   :  1,
  220.           "format": "%s",
  221.           "strings": [ "custom", "sRGB" ],
  222.           "screen": "raster" },
  223.         { "type": "float",
  224.           "name": "monitorgamma",
  225.           "text": "Custom display gamma",
  226.           "default":  2.2,
  227.           "max"    :  4.0,
  228.           "min"    :  0.7,
  229.           "step"   :  0.05,
  230.           "format": "%1.2f",
  231.           "screen": "raster" },
  232.         { "type": "vec2",
  233.           "name": "aspect",
  234.           "text": "Aspect ratio ",
  235.           "default": [ 1.0, 0.75 ],
  236.           "max"    : [ 1.0, 1.0 ],
  237.           "min"    : [ 0.3, 0.3 ],
  238.           "step"   : 0.01,
  239.           "format": "%1.2f",
  240.           "screen": "raster" }
  241.     ],
  242.     "targets": [
  243.         { "name": "internal1",
  244.           "mode": "guest"
  245.         },
  246.         { "name": "internal2",
  247.           "mode": "guest"
  248.         },
  249.         { "name": "mipmap",
  250.           "mode": "guest"
  251.         },
  252.         { "name": "blur",
  253.           "mode": "guest"
  254.         },
  255.         { "name": "phosphor",
  256.           "mode": "guest"
  257.         }
  258.     ],
  259.     "passes": [
  260.         {
  261.             "effect": "crt-geom/lowpass",
  262.             "name": "lowpass",
  263.             "uniforms": [
  264.                 { "uniform": "u_lowpass_cutoff", "slider": "lowpass_cutoff" },
  265.                 { "uniform": "u_lowpass_width",  "slider": "lowpass_width" }
  266.             ],
  267.             "input": [
  268.                 { "sampler": "s_screen",   "target": "screen" }
  269.             ],
  270.             "output": "internal2"
  271.         },
  272.         {
  273.             "effect": "crt-geom/mipmap8",
  274.             "name": "mipmap",
  275.             "uniforms": [
  276.                 { "uniform": "u_smooth",   "slider": "rasterbloom_smooth" }
  277.             ],
  278.             "input": [
  279.                 { "sampler": "s_screen",   "target": "internal2" },
  280.                 { "sampler": "s_mipmap",   "target": "mipmap" }
  281.             ],
  282.             "output": "mipmap"
  283.         },
  284.         {
  285.             "effect": "crt-geom/phosphor_apply",
  286.             "applytint": true,
  287.             "name": "phosphor apply",
  288.             "uniforms": [
  289.                 { "uniform": "u_phosphor_power",    "slider": "phosphor_power" },
  290.                 { "uniform": "u_phosphor_amplitude","slider": "phosphor_amplitude" },
  291.                 { "uniform": "u_phosphor_cutoff",   "slider": "phosphor_cutoff" },
  292.                 { "uniform": "u_gamma",             "slider": "CRTgamma" }
  293.             ],
  294.             "input": [
  295.                 { "sampler": "s_screen",   "target": "internal2" },
  296.                 { "sampler": "s_phosphor", "target": "phosphor" }
  297.             ],
  298.             "output": "internal1"
  299.         },
  300.         {
  301.             "effect": "crt-geom/phosphor_update",
  302.             "name": "phosphor update",
  303.             "uniforms": [
  304.                 { "uniform": "u_phosphor_power",    "slider": "phosphor_power" },
  305.                 { "uniform": "u_phosphor_amplitude","slider": "phosphor_amplitude" },
  306.                 { "uniform": "u_phosphor_cutoff",   "slider": "phosphor_cutoff" },
  307.                 { "uniform": "u_gamma",             "slider": "CRTgamma" }
  308.             ],
  309.             "input": [
  310.                 { "sampler": "s_screen",   "target": "internal2" },
  311.                 { "sampler": "s_phosphor", "target": "phosphor" }
  312.             ],
  313.             "output": "phosphor"
  314.         },
  315.         {
  316.             "effect": "crt-geom/gaussx",
  317.             "name": "Gaussian blur x",
  318.             "uniforms": [
  319.                 { "uniform": "u_width", "slider": "blurwidth" },
  320.                 { "uniform": "u_aspect","slider": "aspect" },
  321.                 { "uniform": "u_gamma", "slider": "CRTgamma" }
  322.             ],
  323.             "input": [
  324.                 { "sampler": "s_tex",   "target": "internal1" }
  325.             ],
  326.             "output": "internal2"
  327.         },
  328.         {
  329.             "effect": "crt-geom/gaussy",
  330.             "name": "Gaussian blur y",
  331.             "uniforms": [
  332.                 { "uniform": "u_width", "slider": "blurwidth" },
  333.                 { "uniform": "u_aspect","slider": "aspect" },
  334.                 { "uniform": "u_gamma", "slider": "CRTgamma" }
  335.             ],
  336.             "input": [
  337.                 { "sampler": "s_tex",   "target": "internal2" }
  338.             ],
  339.             "output": "blur"
  340.         },
  341.         {
  342.             "effect": "crt-geom/crt-geom-deluxe",
  343.             "name": "CRT",
  344.             "uniforms": [
  345.                 { "uniform": "curvature",   "slider": "curvature" },
  346.                 { "uniform": "R",           "slider": "R" },
  347.                 { "uniform": "d",           "slider": "d" },
  348.                 { "uniform": "angle",       "slider": "angle" },
  349.                 { "uniform": "cornersize",  "slider": "cornersize" },
  350.                 { "uniform": "cornersmooth","slider": "cornersmooth" },
  351.                 { "uniform": "overscan",    "slider": "overscan" },
  352.                 { "uniform": "aspect",      "slider": "aspect" },
  353.                 { "uniform": "CRTgamma",    "slider": "CRTgamma" },
  354.                 { "uniform": "monitorsRGB", "slider": "monitorsRGB" },
  355.                 { "uniform": "monitorgamma","slider": "monitorgamma" },
  356.                 { "uniform": "aperture_strength","slider": "aperture_strength" },
  357.                 { "uniform": "aperture_brightboost","slider": "aperture_brightboost" },
  358.                 { "uniform": "spot_size",   "slider": "spot_size" },
  359.                 { "uniform": "spot_growth", "slider": "spot_growth" },
  360.                 { "uniform": "spot_growth_power", "slider": "spot_growth_power" },
  361.                 { "uniform": "u_interp",    "slider": "x_interpolation" },
  362.                 { "uniform": "halation",    "slider": "halation" },
  363.                 { "uniform": "blurwidth",   "slider": "blurwidth" },
  364.                 { "uniform": "rasterbloom", "slider": "rasterbloom" }
  365.             ],
  366.             "input": [
  367.                 { "sampler": "mpass_texture", "target": "internal1" },
  368.                 { "sampler": "mask_texture", "texture": "bgfx/chains/crt-geom/aperture_1_2_bgr.png", "selection": "Shadow mask" },
  369.                 { "sampler": "blur_texture", "target": "blur" },
  370.                 { "sampler": "mipmap_texture", "target": "mipmap" }
  371.             ],
  372.             "output": "output"
  373.         }
  374.     ]
  375. }
  376.  
Advertisement
Comments
  • ICEknigh7
    261 days (edited)
    # text 0.20 KB | 0 0
    1. Save as a .json file to the bgfx\chains folder, then make these changes in mame.ini:
    2. video bgfx
    3. bgfx_backend opengl
    4. bgfx_screen_chains "crt-geom-deluxe home generic"
  • ICEknigh7
    257 days
    Comment was deleted
  • ICEknigh7
    255 days
    Comment was deleted
  • ICEknigh7
    253 days
    Comment was deleted
  • ICEknigh7
    250 days
    Comment was deleted
  • ICEknigh7
    249 days
    1
    Comment was deleted
  • ICEknigh7
    249 days
    Comment was deleted
  • ICEknigh7
    220 days
    Comment was deleted
  • ICEknigh7
    139 days
    Comment was deleted
  • ICEknigh7
    81 days
    Comment was deleted
  • ICEknigh7
    47 days
    # text 0.09 KB | 0 0
    1. Recommended screen settings for this shader:
    2. -Brightness: 1.15
    3. -Contrast: 0.875
    4. -Gamma: 0.75
Add Comment
Please, Sign In to add comment
Advertisement