diff options
author | Vas Crabb <vas@vastheman.com> | 2021-08-20 05:47:40 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2021-08-20 05:52:27 +1000 |
commit | 0c49c74ada4fee63f0bfd14710a437b23fe57991 (patch) | |
tree | f24d8b14d52ce0efac60e744651e3e0ec3d8f9d1 | |
parent | 59c4e5fed6f40e9234a46451dc255266101757cb (diff) |
srcclean: Added JSON cleaning support, and some cleanup.
Made pbobble parent of bublbust, as it seems to be more widespread and
more complete. Also fixed some ROM labels for bublbust.
Made tbyahhoo parent of mtwinbee as the latter has substantial content
removed rather than being localised, making it less complete.
Applied srcclean to JSON files in bgfx subtree.
142 files changed, 4334 insertions, 4032 deletions
diff --git a/bgfx/chains/Fighters.json b/bgfx/chains/Fighters.json index ec5aa3b83d0..e7a8f8340ff 100644 --- a/bgfx/chains/Fighters.json +++ b/bgfx/chains/Fighters.json @@ -1,154 +1,154 @@ { - "name": "CRT-geom", - "author": "cgwg", - "sliders": [ - { "type": "float", - "name": "aperture_strength", - "text": "Shadow mask strength", - "default": 0.13, - "max" : 1.0, - "min" : 0.0, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "phosphor_power", - "text": "Phosphor decay power", - "default": 1.9, - "max" : 3.0, - "min" : 0.5, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "phosphor_amplitude", - "text": "Phosphor persistence amplitude", - "default": 0.04, - "max" : 0.2, - "min" : 0.0, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "halation", - "text": "Halation amplitude", - "default": 0.0, - "max" : 0.3, - "min" : 0.0, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "blurwidth", - "text": "Halation blur width", - "default": 0.0, - "max" : 4.0, - "min" : 0.1, - "step" : 0.1, - "format": "%1.1f", - "screen": "raster" }, - { "type": "float", - "name": "curvature", - "text": "Enable curvature", - "default": 0.0, - "max" : 1.0, - "min" : 0.0, - "step" : 1.0, - "format": "%1.0f", - "screen": "raster" }, - { "type": "float", - "name": "R", - "text": "Radius of curvature", - "default": 3.5, - "max" : 10.0, - "min" : 0.5, - "step" : 0.1, - "format": "%1.1f", - "screen": "raster" }, - { "type": "float", - "name": "d", - "text": "Distance to screen", - "default": 2.0, - "max" : 10.0, - "min" : 0.1, - "step" : 0.1, - "format": "%1.1f", - "screen": "raster" }, - { "type": "vec2", - "name": "angle", - "text": "Tilt ", - "default": [ 0.0,-0.05 ], - "max" : [ 1.0, 1.0 ], - "min" : [-1.0,-1.0 ], - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "cornersize", - "text": "Rounded corner size", - "default": 0.00, - "max" : 0.10, - "min" : 0.00, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "cornersmooth", - "text": "Border smoothness", - "default": 1000, - "max" : 2000, - "min" : 100, - "step" : 100, - "format": "%1.0f", - "screen": "raster" }, - { "type": "vec2", - "name": "overscan", - "text": "Overscan ", - "default": [ 1.0, 1.0 ], - "max" : [ 1.2, 1.2 ], - "min" : [ 0.8, 0.8 ], - "step" : 0.02, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "CRTgamma", - "text": "Gamma of simulated CRT", - "default": 2.4, - "max" : 4.0, - "min" : 0.7, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "monitorgamma", - "text": "Gamma of output display", - "default": 2.2, - "max" : 4.0, - "min" : 0.7, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "vec2", - "name": "aspect", - "text": "Aspect ratio ", - "default": [ 1.0, 0.75 ], - "max" : [ 1.0, 1.0 ], - "min" : [ 0.3, 0.3 ], - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" } - ], + "name": "CRT-geom", + "author": "cgwg", + "sliders": [ + { "type": "float", + "name": "aperture_strength", + "text": "Shadow mask strength", + "default": 0.13, + "max" : 1.0, + "min" : 0.0, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "phosphor_power", + "text": "Phosphor decay power", + "default": 1.9, + "max" : 3.0, + "min" : 0.5, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "phosphor_amplitude", + "text": "Phosphor persistence amplitude", + "default": 0.04, + "max" : 0.2, + "min" : 0.0, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "halation", + "text": "Halation amplitude", + "default": 0.0, + "max" : 0.3, + "min" : 0.0, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "blurwidth", + "text": "Halation blur width", + "default": 0.0, + "max" : 4.0, + "min" : 0.1, + "step" : 0.1, + "format": "%1.1f", + "screen": "raster" }, + { "type": "float", + "name": "curvature", + "text": "Enable curvature", + "default": 0.0, + "max" : 1.0, + "min" : 0.0, + "step" : 1.0, + "format": "%1.0f", + "screen": "raster" }, + { "type": "float", + "name": "R", + "text": "Radius of curvature", + "default": 3.5, + "max" : 10.0, + "min" : 0.5, + "step" : 0.1, + "format": "%1.1f", + "screen": "raster" }, + { "type": "float", + "name": "d", + "text": "Distance to screen", + "default": 2.0, + "max" : 10.0, + "min" : 0.1, + "step" : 0.1, + "format": "%1.1f", + "screen": "raster" }, + { "type": "vec2", + "name": "angle", + "text": "Tilt ", + "default": [ 0.0,-0.05 ], + "max" : [ 1.0, 1.0 ], + "min" : [-1.0,-1.0 ], + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "cornersize", + "text": "Rounded corner size", + "default": 0.00, + "max" : 0.10, + "min" : 0.00, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "cornersmooth", + "text": "Border smoothness", + "default": 1000, + "max" : 2000, + "min" : 100, + "step" : 100, + "format": "%1.0f", + "screen": "raster" }, + { "type": "vec2", + "name": "overscan", + "text": "Overscan ", + "default": [ 1.0, 1.0 ], + "max" : [ 1.2, 1.2 ], + "min" : [ 0.8, 0.8 ], + "step" : 0.02, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "CRTgamma", + "text": "Gamma of simulated CRT", + "default": 2.4, + "max" : 4.0, + "min" : 0.7, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "monitorgamma", + "text": "Gamma of output display", + "default": 2.2, + "max" : 4.0, + "min" : 0.7, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "vec2", + "name": "aspect", + "text": "Aspect ratio ", + "default": [ 1.0, 0.75 ], + "max" : [ 1.0, 1.0 ], + "min" : [ 0.3, 0.3 ], + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" } + ], "targets": [ - { "name": "internal1", + { "name": "internal1", "mode": "guest" }, - { "name": "internal2", + { "name": "internal2", "mode": "guest" }, - { "name": "blur", + { "name": "blur", "mode": "guest" }, - { "name": "phosphor", + { "name": "phosphor", "mode": "guest" } @@ -158,13 +158,13 @@ "effect": "crt-geom/phosphor_apply", "name": "phosphor apply", "uniforms": [ - { "uniform": "u_phosphor_power", "slider": "phosphor_power" }, - { "uniform": "u_phosphor_amplitude","slider": "phosphor_amplitude" }, - { "uniform": "u_gamma", "slider": "CRTgamma" } + { "uniform": "u_phosphor_power", "slider": "phosphor_power" }, + { "uniform": "u_phosphor_amplitude","slider": "phosphor_amplitude" }, + { "uniform": "u_gamma", "slider": "CRTgamma" } ], "input": [ - { "sampler": "s_screen", "target": "screen" }, - { "sampler": "s_phosphor", "target": "phosphor" } + { "sampler": "s_screen", "target": "screen" }, + { "sampler": "s_phosphor", "target": "phosphor" } ], "output": "internal1" }, @@ -172,13 +172,13 @@ "effect": "crt-geom/phosphor_update", "name": "phosphor update", "uniforms": [ - { "uniform": "u_phosphor_power", "slider": "phosphor_power" }, - { "uniform": "u_phosphor_amplitude","slider": "phosphor_amplitude" }, - { "uniform": "u_gamma", "slider": "CRTgamma" } + { "uniform": "u_phosphor_power", "slider": "phosphor_power" }, + { "uniform": "u_phosphor_amplitude","slider": "phosphor_amplitude" }, + { "uniform": "u_gamma", "slider": "CRTgamma" } ], "input": [ - { "sampler": "s_screen", "target": "screen" }, - { "sampler": "s_phosphor", "target": "phosphor" } + { "sampler": "s_screen", "target": "screen" }, + { "sampler": "s_phosphor", "target": "phosphor" } ], "output": "phosphor" }, @@ -186,12 +186,12 @@ "effect": "crt-geom/gaussx", "name": "Gaussian blur x", "uniforms": [ - { "uniform": "u_width", "slider": "blurwidth" }, - { "uniform": "u_aspect","slider": "aspect" }, - { "uniform": "u_gamma", "slider": "CRTgamma" } + { "uniform": "u_width", "slider": "blurwidth" }, + { "uniform": "u_aspect","slider": "aspect" }, + { "uniform": "u_gamma", "slider": "CRTgamma" } ], "input": [ - { "sampler": "s_tex", "target": "internal1" } + { "sampler": "s_tex", "target": "internal1" } ], "output": "internal2" }, @@ -199,12 +199,12 @@ "effect": "crt-geom/gaussy", "name": "Gaussian blur y", "uniforms": [ - { "uniform": "u_width", "slider": "blurwidth" }, - { "uniform": "u_aspect","slider": "aspect" }, - { "uniform": "u_gamma", "slider": "CRTgamma" } + { "uniform": "u_width", "slider": "blurwidth" }, + { "uniform": "u_aspect","slider": "aspect" }, + { "uniform": "u_gamma", "slider": "CRTgamma" } ], "input": [ - { "sampler": "s_tex", "target": "internal2" } + { "sampler": "s_tex", "target": "internal2" } ], "output": "blur" }, @@ -212,24 +212,24 @@ "effect": "crt-geom/crt-geom-deluxe", "name": "CRT", "uniforms": [ - { "uniform": "curvature", "slider": "curvature" }, - { "uniform": "R", "slider": "R" }, - { "uniform": "d", "slider": "d" }, - { "uniform": "angle", "slider": "angle" }, - { "uniform": "cornersize", "slider": "cornersize" }, - { "uniform": "cornersmooth","slider": "cornersmooth" }, - { "uniform": "overscan", "slider": "overscan" }, - { "uniform": "aspect", "slider": "aspect" }, - { "uniform": "CRTgamma", "slider": "CRTgamma" }, - { "uniform": "monitorgamma","slider": "monitorgamma" }, - { "uniform": "aperture_strength","slider": "aperture_strength" }, - { "uniform": "halation", "slider": "halation" } + { "uniform": "curvature", "slider": "curvature" }, + { "uniform": "R", "slider": "R" }, + { "uniform": "d", "slider": "d" }, + { "uniform": "angle", "slider": "angle" }, + { "uniform": "cornersize", "slider": "cornersize" }, + { "uniform": "cornersmooth","slider": "cornersmooth" }, + { "uniform": "overscan", "slider": "overscan" }, + { "uniform": "aspect", "slider": "aspect" }, + { "uniform": "CRTgamma", "slider": "CRTgamma" }, + { "uniform": "monitorgamma","slider": "monitorgamma" }, + { "uniform": "aperture_strength","slider": "aperture_strength" }, + { "uniform": "halation", "slider": "halation" } ], - + "input": [ - { "sampler": "mpass_texture", "target": "internal1" }, - { "sampler": "mask_texture", "texture": "bgfx/chains/crt-geom/aperture_2_4_rgb.png", "selection": "Shadow mask" }, - { "sampler": "blur_texture", "target": "blur" } + { "sampler": "mpass_texture", "target": "internal1" }, + { "sampler": "mask_texture", "texture": "bgfx/chains/crt-geom/aperture_2_4_rgb.png", "selection": "Shadow mask" }, + { "sampler": "blur_texture", "target": "blur" } ], "output": "output" diff --git a/bgfx/chains/crt-geom-deluxe.json b/bgfx/chains/crt-geom-deluxe.json index eb29ba0b538..5e20b5f8aa4 100644 --- a/bgfx/chains/crt-geom-deluxe.json +++ b/bgfx/chains/crt-geom-deluxe.json @@ -1,364 +1,364 @@ { - "name": "CRT-geom", - "author": "cgwg", - "sliders": [ - { "type": "float", - "name": "aperture_strength", - "text": "Shadow mask strength", - "default": 0.4, - "max" : 1.0, - "min" : 0.0, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "aperture_brightboost", - "text": "Shadow mask brightness boost", - "default": 0.4, - "max" : 1.0, - "min" : 0.0, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "spot_size", - "text": "Spot size minimum", - "default": 0.3, - "max" : 0.5, - "min" : 0.1, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "spot_growth", - "text": "Spot size dilation", - "default": 0.1, - "max" : 0.4, - "min" : 0.0, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "spot_growth_power", - "text": "Spot dilation onset power", - "default": 3.0, - "max" : 4.0, - "min" : 0.2, - "step" : 0.1, - "format": "%1.1f", - "screen": "raster" }, - { "type": "float", - "name": "lowpass_cutoff", - "text": "Lowpass cutoff pixels/scanline", - "default":1000.0, - "max" :1000.0, - "min" : 100.0, - "step" : 10.0, - "format": "%1.0f", - "screen": "raster" }, - { "type": "float", - "name": "lowpass_width", - "text": "Lowpass width", - "default": 80.0, - "max" : 300.0, - "min" : 0.0, - "step" : 10.0, - "format": "%1.0f", - "screen": "raster" }, - { "type": "intenum", - "name": "x_interpolation", - "text": "Horizontal interpolation", - "default": 2, - "max" : 5, - "min" : 0, - "step" : 1, - "format": "%s", - "strings": [ "box", "linear", "Lanczos", "Catmull-Rom", "Mitchell-Netravali", "B-spline" ], - "screen": "raster" }, - { "type": "float", - "name": "phosphor_power", - "text": "Phosphor decay power", - "default": 1.2, - "max" : 3.0, - "min" : 0.5, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "phosphor_cutoff", - "text": "Phosphor decay cutoff frames", - "default": 300.0, - "max" : 1000.0, - "min" : 10.0, - "step" : 10.0, - "format": "%1.0f", - "screen": "raster" }, - { "type": "float", - "name": "phosphor_amplitude", - "text": "Phosphor persistence amplitude", - "default": 0.04, - "max" : 0.2, - "min" : 0.0, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "rasterbloom_smooth", - "text": "Raster bloom temporal smoothing", - "default": 0.5, - "max" : 0.99, - "min" : 0.0, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "rasterbloom", - "text": "Raster bloom amplitude", - "default": 0.01, - "max" : 0.1, - "min" : 0.0, - "step" : 0.001, - "format": "%1.3f", - "screen": "raster" }, - { "type": "float", - "name": "halation", - "text": "Halation amplitude", - "default": 0.1, - "max" : 0.3, - "min" : 0.0, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "blurwidth", - "text": "Halation blur width", - "default": 2.0, - "max" : 4.0, - "min" : 0.1, - "step" : 0.1, - "format": "%1.1f", - "screen": "raster" }, - { "type": "float", - "name": "curvature", - "text": "Enable curvature", - "default": 1.0, - "max" : 1.0, - "min" : 0.0, - "step" : 1.0, - "format": "%1.0f", - "screen": "raster" }, - { "type": "float", - "name": "R", - "text": "Radius of curvature", - "default": 3.5, - "max" : 10.0, - "min" : 0.5, - "step" : 0.1, - "format": "%1.1f", - "screen": "raster" }, - { "type": "float", - "name": "d", - "text": "Distance to screen", - "default": 2.0, - "max" : 10.0, - "min" : 0.1, - "step" : 0.1, - "format": "%1.1f", - "screen": "raster" }, - { "type": "vec2", - "name": "angle", - "text": "Tilt ", - "default": [ 0.0, 0.0 ], - "max" : [ 1.0, 1.0 ], - "min" : [-1.0,-1.0 ], - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "cornersize", - "text": "Rounded corner size", - "default": 0.01, - "max" : 0.10, - "min" : 0.00, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "cornersmooth", - "text": "Border smoothness", - "default": 1000, - "max" : 2000, - "min" : 100, - "step" : 100, - "format": "%1.0f", - "screen": "raster" }, - { "type": "vec2", - "name": "overscan", - "text": "Overscan ", - "default": [ 1.0, 1.0 ], - "max" : [ 1.2, 1.2 ], - "min" : [ 0.8, 0.8 ], - "step" : 0.02, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "CRTgamma", - "text": "Gamma of simulated CRT", - "default": 2.4, - "max" : 4.0, - "min" : 0.7, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "monitorgamma", - "text": "Gamma of output display", - "default": 2.2, - "max" : 4.0, - "min" : 0.7, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "vec2", - "name": "aspect", - "text": "Aspect ratio ", - "default": [ 1.0, 0.75 ], - "max" : [ 1.0, 1.0 ], - "min" : [ 0.3, 0.3 ], - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" } - ], - "targets": [ - { "name": "internal1", - "mode": "guest" - }, - { "name": "internal2", - "mode": "guest" - }, - { "name": "mipmap", - "mode": "guest" - }, - { "name": "blur", - "mode": "guest" - }, - { "name": "phosphor", - "mode": "guest" - } - ], - "passes": [ - { - "effect": "crt-geom/lowpass", - "name": "lowpass", - "uniforms": [ - { "uniform": "u_lowpass_cutoff", "slider": "lowpass_cutoff" }, - { "uniform": "u_lowpass_width", "slider": "lowpass_width" } - ], - "input": [ - { "sampler": "s_screen", "target": "screen" } - ], - "output": "internal2" - }, - { - "effect": "crt-geom/mipmap8", - "name": "mipmap", - "uniforms": [ - { "uniform": "u_smooth", "slider": "rasterbloom_smooth" } - ], - "input": [ - { "sampler": "s_screen", "target": "internal2" }, - { "sampler": "s_mipmap", "target": "mipmap" } - ], - "output": "mipmap" - }, - { - "effect": "crt-geom/phosphor_apply", - "applytint": true, - "name": "phosphor apply", - "uniforms": [ - { "uniform": "u_phosphor_power", "slider": "phosphor_power" }, - { "uniform": "u_phosphor_amplitude","slider": "phosphor_amplitude" }, - { "uniform": "u_phosphor_cutoff", "slider": "phosphor_cutoff" }, - { "uniform": "u_gamma", "slider": "CRTgamma" } - ], - "input": [ - { "sampler": "s_screen", "target": "internal2" }, - { "sampler": "s_phosphor", "target": "phosphor" } - ], - "output": "internal1" - }, - { - "effect": "crt-geom/phosphor_update", - "name": "phosphor update", - "uniforms": [ - { "uniform": "u_phosphor_power", "slider": "phosphor_power" }, - { "uniform": "u_phosphor_amplitude","slider": "phosphor_amplitude" }, - { "uniform": "u_phosphor_cutoff", "slider": "phosphor_cutoff" }, - { "uniform": "u_gamma", "slider": "CRTgamma" } - ], - "input": [ - { "sampler": "s_screen", "target": "internal2" }, - { "sampler": "s_phosphor", "target": "phosphor" } - ], - "output": "phosphor" - }, - { - "effect": "crt-geom/gaussx", - "name": "Gaussian blur x", - "uniforms": [ - { "uniform": "u_width", "slider": "blurwidth" }, - { "uniform": "u_aspect","slider": "aspect" }, - { "uniform": "u_gamma", "slider": "CRTgamma" } - ], - "input": [ - { "sampler": "s_tex", "target": "internal1" } - ], - "output": "internal2" - }, - { - "effect": "crt-geom/gaussy", - "name": "Gaussian blur y", - "uniforms": [ - { "uniform": "u_width", "slider": "blurwidth" }, - { "uniform": "u_aspect","slider": "aspect" }, - { "uniform": "u_gamma", "slider": "CRTgamma" } - ], - "input": [ - { "sampler": "s_tex", "target": "internal2" } - ], - "output": "blur" - }, - { - "effect": "crt-geom/crt-geom-deluxe", - "name": "CRT", - "uniforms": [ - { "uniform": "curvature", "slider": "curvature" }, - { "uniform": "R", "slider": "R" }, - { "uniform": "d", "slider": "d" }, - { "uniform": "angle", "slider": "angle" }, - { "uniform": "cornersize", "slider": "cornersize" }, - { "uniform": "cornersmooth","slider": "cornersmooth" }, - { "uniform": "overscan", "slider": "overscan" }, - { "uniform": "aspect", "slider": "aspect" }, - { "uniform": "CRTgamma", "slider": "CRTgamma" }, - { "uniform": "monitorgamma","slider": "monitorgamma" }, - { "uniform": "aperture_strength","slider": "aperture_strength" }, - { "uniform": "aperture_brightboost","slider": "aperture_brightboost" }, - { "uniform": "spot_size", "slider": "spot_size" }, - { "uniform": "spot_growth", "slider": "spot_growth" }, - { "uniform": "spot_growth_power", "slider": "spot_growth_power" }, - { "uniform": "u_interp", "slider": "x_interpolation" }, - { "uniform": "halation", "slider": "halation" }, - { "uniform": "blurwidth", "slider": "blurwidth" }, - { "uniform": "rasterbloom", "slider": "rasterbloom" } - ], - "input": [ - { "sampler": "mpass_texture", "target": "internal1" }, - { "sampler": "mask_texture", "texture": "bgfx/chains/crt-geom/aperture_1_2_bgr.png", "selection": "Shadow mask" }, - { "sampler": "blur_texture", "target": "blur" }, - { "sampler": "mipmap_texture", "target": "mipmap" } - ], - "output": "output" - } - ] + "name": "CRT-geom", + "author": "cgwg", + "sliders": [ + { "type": "float", + "name": "aperture_strength", + "text": "Shadow mask strength", + "default": 0.4, + "max" : 1.0, + "min" : 0.0, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "aperture_brightboost", + "text": "Shadow mask brightness boost", + "default": 0.4, + "max" : 1.0, + "min" : 0.0, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "spot_size", + "text": "Spot size minimum", + "default": 0.3, + "max" : 0.5, + "min" : 0.1, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "spot_growth", + "text": "Spot size dilation", + "default": 0.1, + "max" : 0.4, + "min" : 0.0, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "spot_growth_power", + "text": "Spot dilation onset power", + "default": 3.0, + "max" : 4.0, + "min" : 0.2, + "step" : 0.1, + "format": "%1.1f", + "screen": "raster" }, + { "type": "float", + "name": "lowpass_cutoff", + "text": "Lowpass cutoff pixels/scanline", + "default":1000.0, + "max" :1000.0, + "min" : 100.0, + "step" : 10.0, + "format": "%1.0f", + "screen": "raster" }, + { "type": "float", + "name": "lowpass_width", + "text": "Lowpass width", + "default": 80.0, + "max" : 300.0, + "min" : 0.0, + "step" : 10.0, + "format": "%1.0f", + "screen": "raster" }, + { "type": "intenum", + "name": "x_interpolation", + "text": "Horizontal interpolation", + "default": 2, + "max" : 5, + "min" : 0, + "step" : 1, + "format": "%s", + "strings": [ "box", "linear", "Lanczos", "Catmull-Rom", "Mitchell-Netravali", "B-spline" ], + "screen": "raster" }, + { "type": "float", + "name": "phosphor_power", + "text": "Phosphor decay power", + "default": 1.2, + "max" : 3.0, + "min" : 0.5, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "phosphor_cutoff", + "text": "Phosphor decay cutoff frames", + "default": 300.0, + "max" : 1000.0, + "min" : 10.0, + "step" : 10.0, + "format": "%1.0f", + "screen": "raster" }, + { "type": "float", + "name": "phosphor_amplitude", + "text": "Phosphor persistence amplitude", + "default": 0.04, + "max" : 0.2, + "min" : 0.0, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "rasterbloom_smooth", + "text": "Raster bloom temporal smoothing", + "default": 0.5, + "max" : 0.99, + "min" : 0.0, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "rasterbloom", + "text": "Raster bloom amplitude", + "default": 0.01, + "max" : 0.1, + "min" : 0.0, + "step" : 0.001, + "format": "%1.3f", + "screen": "raster" }, + { "type": "float", + "name": "halation", + "text": "Halation amplitude", + "default": 0.1, + "max" : 0.3, + "min" : 0.0, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "blurwidth", + "text": "Halation blur width", + "default": 2.0, + "max" : 4.0, + "min" : 0.1, + "step" : 0.1, + "format": "%1.1f", + "screen": "raster" }, + { "type": "float", + "name": "curvature", + "text": "Enable curvature", + "default": 1.0, + "max" : 1.0, + "min" : 0.0, + "step" : 1.0, + "format": "%1.0f", + "screen": "raster" }, + { "type": "float", + "name": "R", + "text": "Radius of curvature", + "default": 3.5, + "max" : 10.0, + "min" : 0.5, + "step" : 0.1, + "format": "%1.1f", + "screen": "raster" }, + { "type": "float", + "name": "d", + "text": "Distance to screen", + "default": 2.0, + "max" : 10.0, + "min" : 0.1, + "step" : 0.1, + "format": "%1.1f", + "screen": "raster" }, + { "type": "vec2", + "name": "angle", + "text": "Tilt ", + "default": [ 0.0, 0.0 ], + "max" : [ 1.0, 1.0 ], + "min" : [-1.0,-1.0 ], + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "cornersize", + "text": "Rounded corner size", + "default": 0.01, + "max" : 0.10, + "min" : 0.00, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "cornersmooth", + "text": "Border smoothness", + "default": 1000, + "max" : 2000, + "min" : 100, + "step" : 100, + "format": "%1.0f", + "screen": "raster" }, + { "type": "vec2", + "name": "overscan", + "text": "Overscan ", + "default": [ 1.0, 1.0 ], + "max" : [ 1.2, 1.2 ], + "min" : [ 0.8, 0.8 ], + "step" : 0.02, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "CRTgamma", + "text": "Gamma of simulated CRT", + "default": 2.4, + "max" : 4.0, + "min" : 0.7, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "monitorgamma", + "text": "Gamma of output display", + "default": 2.2, + "max" : 4.0, + "min" : 0.7, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "vec2", + "name": "aspect", + "text": "Aspect ratio ", + "default": [ 1.0, 0.75 ], + "max" : [ 1.0, 1.0 ], + "min" : [ 0.3, 0.3 ], + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" } + ], + "targets": [ + { "name": "internal1", + "mode": "guest" + }, + { "name": "internal2", + "mode": "guest" + }, + { "name": "mipmap", + "mode": "guest" + }, + { "name": "blur", + "mode": "guest" + }, + { "name": "phosphor", + "mode": "guest" + } + ], + "passes": [ + { + "effect": "crt-geom/lowpass", + "name": "lowpass", + "uniforms": [ + { "uniform": "u_lowpass_cutoff", "slider": "lowpass_cutoff" }, + { "uniform": "u_lowpass_width", "slider": "lowpass_width" } + ], + "input": [ + { "sampler": "s_screen", "target": "screen" } + ], + "output": "internal2" + }, + { + "effect": "crt-geom/mipmap8", + "name": "mipmap", + "uniforms": [ + { "uniform": "u_smooth", "slider": "rasterbloom_smooth" } + ], + "input": [ + { "sampler": "s_screen", "target": "internal2" }, + { "sampler": "s_mipmap", "target": "mipmap" } + ], + "output": "mipmap" + }, + { + "effect": "crt-geom/phosphor_apply", + "applytint": true, + "name": "phosphor apply", + "uniforms": [ + { "uniform": "u_phosphor_power", "slider": "phosphor_power" }, + { "uniform": "u_phosphor_amplitude","slider": "phosphor_amplitude" }, + { "uniform": "u_phosphor_cutoff", "slider": "phosphor_cutoff" }, + { "uniform": "u_gamma", "slider": "CRTgamma" } + ], + "input": [ + { "sampler": "s_screen", "target": "internal2" }, + { "sampler": "s_phosphor", "target": "phosphor" } + ], + "output": "internal1" + }, + { + "effect": "crt-geom/phosphor_update", + "name": "phosphor update", + "uniforms": [ + { "uniform": "u_phosphor_power", "slider": "phosphor_power" }, + { "uniform": "u_phosphor_amplitude","slider": "phosphor_amplitude" }, + { "uniform": "u_phosphor_cutoff", "slider": "phosphor_cutoff" }, + { "uniform": "u_gamma", "slider": "CRTgamma" } + ], + "input": [ + { "sampler": "s_screen", "target": "internal2" }, + { "sampler": "s_phosphor", "target": "phosphor" } + ], + "output": "phosphor" + }, + { + "effect": "crt-geom/gaussx", + "name": "Gaussian blur x", + "uniforms": [ + { "uniform": "u_width", "slider": "blurwidth" }, + { "uniform": "u_aspect","slider": "aspect" }, + { "uniform": "u_gamma", "slider": "CRTgamma" } + ], + "input": [ + { "sampler": "s_tex", "target": "internal1" } + ], + "output": "internal2" + }, + { + "effect": "crt-geom/gaussy", + "name": "Gaussian blur y", + "uniforms": [ + { "uniform": "u_width", "slider": "blurwidth" }, + { "uniform": "u_aspect","slider": "aspect" }, + { "uniform": "u_gamma", "slider": "CRTgamma" } + ], + "input": [ + { "sampler": "s_tex", "target": "internal2" } + ], + "output": "blur" + }, + { + "effect": "crt-geom/crt-geom-deluxe", + "name": "CRT", + "uniforms": [ + { "uniform": "curvature", "slider": "curvature" }, + { "uniform": "R", "slider": "R" }, + { "uniform": "d", "slider": "d" }, + { "uniform": "angle", "slider": "angle" }, + { "uniform": "cornersize", "slider": "cornersize" }, + { "uniform": "cornersmooth","slider": "cornersmooth" }, + { "uniform": "overscan", "slider": "overscan" }, + { "uniform": "aspect", "slider": "aspect" }, + { "uniform": "CRTgamma", "slider": "CRTgamma" }, + { "uniform": "monitorgamma","slider": "monitorgamma" }, + { "uniform": "aperture_strength","slider": "aperture_strength" }, + { "uniform": "aperture_brightboost","slider": "aperture_brightboost" }, + { "uniform": "spot_size", "slider": "spot_size" }, + { "uniform": "spot_growth", "slider": "spot_growth" }, + { "uniform": "spot_growth_power", "slider": "spot_growth_power" }, + { "uniform": "u_interp", "slider": "x_interpolation" }, + { "uniform": "halation", "slider": "halation" }, + { "uniform": "blurwidth", "slider": "blurwidth" }, + { "uniform": "rasterbloom", "slider": "rasterbloom" } + ], + "input": [ + { "sampler": "mpass_texture", "target": "internal1" }, + { "sampler": "mask_texture", "texture": "bgfx/chains/crt-geom/aperture_1_2_bgr.png", "selection": "Shadow mask" }, + { "sampler": "blur_texture", "target": "blur" }, + { "sampler": "mipmap_texture", "target": "mipmap" } + ], + "output": "output" + } + ] } diff --git a/bgfx/chains/crt-geom.json b/bgfx/chains/crt-geom.json index fae003f5c9c..f34d059800d 100644 --- a/bgfx/chains/crt-geom.json +++ b/bgfx/chains/crt-geom.json @@ -1,183 +1,183 @@ { - "name": "CRT-geom", - "author": "cgwg", - "sliders": [ - { "type": "float", - "name": "aperture_strength", - "text": "Shadow mask strength", - "default": 0.4, - "max" : 1.0, - "min" : 0.0, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "aperture_brightboost", - "text": "Shadow mask brightness boost", - "default": 0.4, - "max" : 1.0, - "min" : 0.0, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "spot_size", - "text": "Spot size minimum", - "default": 0.3, - "max" : 0.5, - "min" : 0.1, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "spot_growth", - "text": "Spot size dilation", - "default": 0.1, - "max" : 0.4, - "min" : 0.0, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "spot_growth_power", - "text": "Spot dilation onset power", - "default": 3.0, - "max" : 4.0, - "min" : 0.2, - "step" : 0.1, - "format": "%1.1f", - "screen": "raster" }, - { "type": "intenum", - "name": "x_interpolation", - "text": "Horizontal interpolation", - "default": 2, - "max" : 5, - "min" : 0, - "step" : 1, - "format": "%s", - "strings": [ "box", "linear", "Lanczos", "Catmull-Rom", "Mitchell-Netravali", "B-spline" ], - "screen": "raster" }, - { "type": "float", - "name": "curvature", - "text": "Enable curvature", - "default": 1.0, - "max" : 1.0, - "min" : 0.0, - "step" : 1.0, - "format": "%1.0f", - "screen": "raster" }, - { "type": "float", - "name": "R", - "text": "Radius of curvature", - "default": 3.5, - "max" : 10.0, - "min" : 0.5, - "step" : 0.1, - "format": "%1.1f", - "screen": "raster" }, - { "type": "float", - "name": "d", - "text": "Distance to screen", - "default": 2.0, - "max" : 10.0, - "min" : 0.1, - "step" : 0.1, - "format": "%1.1f", - "screen": "raster" }, - { "type": "vec2", - "name": "angle", - "text": "Tilt ", - "default": [ 0.0, 0.0 ], - "max" : [ 1.0, 1.0 ], - "min" : [-1.0,-1.0 ], - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "cornersize", - "text": "Rounded corner size", - "default": 0.01, - "max" : 0.10, - "min" : 0.00, - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "cornersmooth", - "text": "Border smoothness", - "default": 1000, - "max" : 2000, - "min" : 100, - "step" : 100, - "format": "%1.0f", - "screen": "raster" }, - { "type": "vec2", - "name": "overscan", - "text": "Overscan ", - "default": [ 1.0, 1.0 ], - "max" : [ 1.2, 1.2 ], - "min" : [ 0.8, 0.8 ], - "step" : 0.02, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "CRTgamma", - "text": "Gamma of simulated CRT", - "default": 2.4, - "max" : 4.0, - "min" : 0.7, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "monitorgamma", - "text": "Gamma of output display", - "default": 2.2, - "max" : 4.0, - "min" : 0.7, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "vec2", - "name": "aspect", - "text": "Aspect ratio ", - "default": [ 1.0, 0.75 ], - "max" : [ 1.0, 1.0 ], - "min" : [ 0.3, 0.3 ], - "step" : 0.01, - "format": "%1.2f", - "screen": "raster" } - ], - "targets": [ - ], - "passes": [ - { - "effect": "crt-geom/crt-geom", - "applytint": true, - "name": "CRT", - "uniforms": [ - { "uniform": "curvature", "slider": "curvature" }, - { "uniform": "R", "slider": "R" }, - { "uniform": "d", "slider": "d" }, - { "uniform": "angle", "slider": "angle" }, - { "uniform": "cornersize", "slider": "cornersize" }, - { "uniform": "cornersmooth","slider": "cornersmooth" }, - { "uniform": "overscan", "slider": "overscan" }, - { "uniform": "aspect", "slider": "aspect" }, - { "uniform": "CRTgamma", "slider": "CRTgamma" }, - { "uniform": "monitorgamma","slider": "monitorgamma" }, - { "uniform": "aperture_strength", "slider": "aperture_strength" }, - { "uniform": "aperture_brightboost","slider": "aperture_brightboost" }, - { "uniform": "spot_size", "slider": "spot_size" }, - { "uniform": "spot_growth", "slider": "spot_growth" }, - { "uniform": "spot_growth_power", "slider": "spot_growth_power" }, - { "uniform": "u_interp", "slider": "x_interpolation" } - ], - "input": [ - { "sampler": "mpass_texture", "target": "screen" }, - { "sampler": "mask_texture", "texture": "bgfx/chains/crt-geom/aperture_1_2_bgr.png", "selection": "Shadow mask" } - ], - "output": "output" - } - ] + "name": "CRT-geom", + "author": "cgwg", + "sliders": [ + { "type": "float", + "name": "aperture_strength", + "text": "Shadow mask strength", + "default": 0.4, + "max" : 1.0, + "min" : 0.0, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "aperture_brightboost", + "text": "Shadow mask brightness boost", + "default": 0.4, + "max" : 1.0, + "min" : 0.0, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "spot_size", + "text": "Spot size minimum", + "default": 0.3, + "max" : 0.5, + "min" : 0.1, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "spot_growth", + "text": "Spot size dilation", + "default": 0.1, + "max" : 0.4, + "min" : 0.0, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "spot_growth_power", + "text": "Spot dilation onset power", + "default": 3.0, + "max" : 4.0, + "min" : 0.2, + "step" : 0.1, + "format": "%1.1f", + "screen": "raster" }, + { "type": "intenum", + "name": "x_interpolation", + "text": "Horizontal interpolation", + "default": 2, + "max" : 5, + "min" : 0, + "step" : 1, + "format": "%s", + "strings": [ "box", "linear", "Lanczos", "Catmull-Rom", "Mitchell-Netravali", "B-spline" ], + "screen": "raster" }, + { "type": "float", + "name": "curvature", + "text": "Enable curvature", + "default": 1.0, + "max" : 1.0, + "min" : 0.0, + "step" : 1.0, + "format": "%1.0f", + "screen": "raster" }, + { "type": "float", + "name": "R", + "text": "Radius of curvature", + "default": 3.5, + "max" : 10.0, + "min" : 0.5, + "step" : 0.1, + "format": "%1.1f", + "screen": "raster" }, + { "type": "float", + "name": "d", + "text": "Distance to screen", + "default": 2.0, + "max" : 10.0, + "min" : 0.1, + "step" : 0.1, + "format": "%1.1f", + "screen": "raster" }, + { "type": "vec2", + "name": "angle", + "text": "Tilt ", + "default": [ 0.0, 0.0 ], + "max" : [ 1.0, 1.0 ], + "min" : [-1.0,-1.0 ], + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "cornersize", + "text": "Rounded corner size", + "default": 0.01, + "max" : 0.10, + "min" : 0.00, + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "cornersmooth", + "text": "Border smoothness", + "default": 1000, + "max" : 2000, + "min" : 100, + "step" : 100, + "format": "%1.0f", + "screen": "raster" }, + { "type": "vec2", + "name": "overscan", + "text": "Overscan ", + "default": [ 1.0, 1.0 ], + "max" : [ 1.2, 1.2 ], + "min" : [ 0.8, 0.8 ], + "step" : 0.02, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "CRTgamma", + "text": "Gamma of simulated CRT", + "default": 2.4, + "max" : 4.0, + "min" : 0.7, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "monitorgamma", + "text": "Gamma of output display", + "default": 2.2, + "max" : 4.0, + "min" : 0.7, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "vec2", + "name": "aspect", + "text": "Aspect ratio ", + "default": [ 1.0, 0.75 ], + "max" : [ 1.0, 1.0 ], + "min" : [ 0.3, 0.3 ], + "step" : 0.01, + "format": "%1.2f", + "screen": "raster" } + ], + "targets": [ + ], + "passes": [ + { + "effect": "crt-geom/crt-geom", + "applytint": true, + "name": "CRT", + "uniforms": [ + { "uniform": "curvature", "slider": "curvature" }, + { "uniform": "R", "slider": "R" }, + { "uniform": "d", "slider": "d" }, + { "uniform": "angle", "slider": "angle" }, + { "uniform": "cornersize", "slider": "cornersize" }, + { "uniform": "cornersmooth","slider": "cornersmooth" }, + { "uniform": "overscan", "slider": "overscan" }, + { "uniform": "aspect", "slider": "aspect" }, + { "uniform": "CRTgamma", "slider": "CRTgamma" }, + { "uniform": "monitorgamma","slider": "monitorgamma" }, + { "uniform": "aperture_strength", "slider": "aperture_strength" }, + { "uniform": "aperture_brightboost","slider": "aperture_brightboost" }, + { "uniform": "spot_size", "slider": "spot_size" }, + { "uniform": "spot_growth", "slider": "spot_growth" }, + { "uniform": "spot_growth_power", "slider": "spot_growth_power" }, + { "uniform": "u_interp", "slider": "x_interpolation" } + ], + "input": [ + { "sampler": "mpass_texture", "target": "screen" }, + { "sampler": "mask_texture", "texture": "bgfx/chains/crt-geom/aperture_1_2_bgr.png", "selection": "Shadow mask" } + ], + "output": "output" + } + ] } diff --git a/bgfx/chains/default.json b/bgfx/chains/default.json index b2c6aed2378..5df37df64c7 100644 --- a/bgfx/chains/default.json +++ b/bgfx/chains/default.json @@ -1,13 +1,13 @@ -{ "name": "Default Nearest-Neighbor Filter", +{ "name": "Default Nearest-Neighbor Filter", "author": "Ryan Holtz", "targets": [ - { "name": "temp", + { "name": "temp", "mode": "guest", "bilinear": true } ], "passes": [ - { "effect": "misc/blit", + { "effect": "misc/blit", "applytint": true, "name": "Copy To Filtered Texture", "input": [ @@ -15,7 +15,7 @@ ], "output": "temp" }, - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Final Upscale", "input": [ { "sampler": "s_tex", "target": "temp" } @@ -23,4 +23,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/eagle/super-eagle.json b/bgfx/chains/eagle/super-eagle.json index fc88e38c40a..64cf0a38244 100644 --- a/bgfx/chains/eagle/super-eagle.json +++ b/bgfx/chains/eagle/super-eagle.json @@ -5,7 +5,7 @@ /* Copied from the Dosbox source code */ /* Copyright (C) 2002-2007 The DOSBox Team */ /* License: GNU-GPL */ -/* Adapted by guest(r) on 16.4.2007 */ +/* Adapted by guest(r) on 16.4.2007 */ { "name": "Super Eagle", @@ -34,7 +34,7 @@ ], "output": "scaled_out" }, - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Final Blit", "input": [ { "sampler": "s_tex", "target": "scaled_out" } @@ -42,4 +42,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/hlsl.json b/bgfx/chains/hlsl.json index 5af4ca79f95..abac32e6432 100644 --- a/bgfx/chains/hlsl.json +++ b/bgfx/chains/hlsl.json @@ -90,7 +90,7 @@ { "type": "float", "name": "scanline_scale", "text": "Overall Scanline Scale", "default": 1.00, "max": 4.00, "min": 0.0, "step": 0.01, "format": "%1.2f", "screen": "crt" }, { "type": "float", "name": "scanline_height", "text": "Individual Scanline Scale", "default": 1.00, "max": 4.00, "min": 0.0, "step": 0.01, "format": "%1.2f", "screen": "crt" }, { "type": "float", "name": "scanline_variation", "text": "Scanline Variation", "default": 1.00, "max": 4.00, "min": 0.0, "step": 0.01, "format": "%1.2f", "screen": "crt" }, - { "type": "float", "name": "scanline_bright_scale", "text": "Scanline Brightness Scale", "default": 2.00, "max": 4.00, "min": 0.0, "step": 0.01, "format": "%1.2f", "screen": "crt" }, + { "type": "float", "name": "scanline_bright_scale", "text": "Scanline Brightness Scale", "default": 2.00, "max": 4.00, "min": 0.0, "step": 0.01, "format": "%1.2f", "screen": "crt" }, { "type": "float", "name": "scanline_bright_offset", "text": "Scanline Brightness Offset", "default": 1.50, "max": 4.00, "min": 0.0, "step": 0.01, "format": "%1.2f", "screen": "crt" }, { "type": "float", "name": "scanline_jitter_amount", "text": "Scanline Jitter Amount", "default": 0.00, "max": 4.00, "min": 0.0, "step": 0.01, "format": "%1.2f", "screen": "crt" }, { "type": "float", "name": "scanline_variation", "text": "Scanline Variation", "default": 1.00, "max": 4.00, "min": 0.0, "step": 0.01, "format": "%1.2f", "screen": "crt" }, @@ -181,12 +181,12 @@ "bilinear": false, "doublebuffer": true }, - { "name": "internal", + { "name": "internal", "mode": "native", "scale": 2, "doublebuffer": true }, - { "name": "previous", + { "name": "previous", "mode": "native", "scale": 2, "doublebuffer": true @@ -195,7 +195,7 @@ // passes (required): The list of individual shaders to invoke, and any dynamic input parameters they need. "passes": [ - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Blit to filterable surface for NTSC", "disablewhen": [ { "type": "slider", "condition": "equal", "combine": "and", "name": "adjustments", "value": 0 }, @@ -314,7 +314,7 @@ // value: Any valid ASCII string that names a target. "output": "ntsc" }, - { "effect": "hlsl/ntsc_decode", + { "effect": "hlsl/ntsc_decode", "name": "NTSC Decode", "disablewhen": [ { "type": "slider", "condition": "equal", "combine": "or", "name": "adjustments", "value": 0 }, @@ -340,7 +340,7 @@ ], "output": "guest" }, - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "NTSC Skip", "disablewhen": [ { "type": "slider", "condition": "notequal", "combine": "and", "name": "adjustments", "value": 0 }, @@ -352,7 +352,7 @@ "applytint": true, "output": "guest" }, - { "effect": "hlsl/color", + { "effect": "hlsl/color", "name": "Color Convolution", "disablewhen": [ { "type": "slider", "condition": "equal", "name": "adjustments", "value": 0 } @@ -370,14 +370,14 @@ ], "output": "guest" }, - { "effect": "hlsl/prescale", + { "effect": "hlsl/prescale", "name": "Prescale", "input": [ { "sampler": "s_tex", "target": "guest" } ], "output": "internal" }, - { "effect": "hlsl/deconverge", + { "effect": "hlsl/deconverge", "name": "Deconvergence", "disablewhen": [ { "type": "slider", "condition": "equal", "combine": "or", "name": "adjustments", "value": 0 }, @@ -424,7 +424,7 @@ ], "output": "internal" }, - { "effect": "hlsl/defocus", + { "effect": "hlsl/defocus", "name": "Defocus Pass", "disablewhen": [ { "type": "slider", "condition": "equal", "combine": "or", "name": "adjustments", "value": 0 }, @@ -438,7 +438,7 @@ ], "output": "internal" }, - { "effect": "hlsl/post", + { "effect": "hlsl/post", "name": "Non-Bloom Post Pass", "disablewhen": [ { "type": "slider", "condition": "equal", "combine": "or", "name": "adjustments", "value": 0 }, @@ -468,7 +468,7 @@ ], "output": "internal" }, - { "effect": "hlsl/phosphor", + { "effect": "hlsl/phosphor", "name": "Phosphor Decay", "disablewhen": [ { "type": "slider", "condition": "equal", "combine": "or", "name": "adjustments", "value": 0 }, @@ -484,7 +484,7 @@ ], "output": "internal" }, - { "effect": "hlsl/phosphor", + { "effect": "hlsl/phosphor", "name": "Phosphor Store", "disablewhen": [ { "type": "slider", "condition": "equal", "combine": "or", "name": "adjustments", "value": 0 }, @@ -501,23 +501,23 @@ "output": "previous" }, { - "effect": "hlsl/chroma", - "name": "Phosphor Chromaticity Conversion", - "disablewhen": [ - { "type": "slider", "condition": "equal", "name": "adjustments", "value": 0 } - ], - "uniforms": [ - { "uniform": "u_y_gain", "slider": "chroma_y_gain" }, - { "uniform": "u_chroma_a", "slider": "chroma_a" }, - { "uniform": "u_chroma_b", "slider": "chroma_b" }, + "effect": "hlsl/chroma", + "name": "Phosphor Chromaticity Conversion", + "disablewhen": [ + { "type": "slider", "condition": "equal", "name": "adjustments", "value": 0 } + ], + "uniforms": [ + { "uniform": "u_y_gain", "slider": "chroma_y_gain" }, + { "uniform": "u_chroma_a", "slider": "chroma_a" }, + { "uniform": "u_chroma_b", "slider": "chroma_b" }, { "uniform": "u_chroma_c", "slider": "chroma_c" } - ], - "input": [ - { "sampler": "s_tex", "target": "internal" } - ], - "output": "internal" + ], + "input": [ + { "sampler": "s_tex", "target": "internal" } + ], + "output": "internal" }, - { "effect": "hlsl/distortion", + { "effect": "hlsl/distortion", "name": "Distortion Pass", "disablewhen": [ { "type": "slider", "condition": "equal", "combine": "or", "name": "adjustments", "value": 0 }, @@ -577,7 +577,7 @@ ], "output": "internal" }, - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Final Blit", "input": [ { "sampler": "s_tex", "target": "internal" } diff --git a/bgfx/chains/hqx/hq2x.json b/bgfx/chains/hqx/hq2x.json index c60f46c1be8..8f500549181 100644 --- a/bgfx/chains/hqx/hq2x.json +++ b/bgfx/chains/hqx/hq2x.json @@ -51,7 +51,7 @@ ], "output": "scaled_out" }, - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Final Blit", "input": [ { "sampler": "s_tex", "target": "scaled_out" } diff --git a/bgfx/chains/hqx/hq3x.json b/bgfx/chains/hqx/hq3x.json index 3f5815cf7a4..119946414f5 100644 --- a/bgfx/chains/hqx/hq3x.json +++ b/bgfx/chains/hqx/hq3x.json @@ -51,7 +51,7 @@ ], "output": "scaled_out" }, - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Final Blit", "input": [ { "sampler": "s_tex", "target": "scaled_out" } diff --git a/bgfx/chains/hqx/hq4x.json b/bgfx/chains/hqx/hq4x.json index 17abf352797..9ba3f2edcdd 100644 --- a/bgfx/chains/hqx/hq4x.json +++ b/bgfx/chains/hqx/hq4x.json @@ -51,7 +51,7 @@ ], "output": "scaled_out" }, - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Final Blit", "input": [ { "sampler": "s_tex", "target": "scaled_out" } diff --git a/bgfx/chains/lcd-grid.json b/bgfx/chains/lcd-grid.json index d2a94049e7b..d12e7a26b4d 100644 --- a/bgfx/chains/lcd-grid.json +++ b/bgfx/chains/lcd-grid.json @@ -1,123 +1,123 @@ { - "name": "lcd-grid", - "author": "cgwg", - "sliders": [ - { "type": "float", - "name": "persistence", - "text": "Persistence", - "default": 0.1, - "max" : 0.99, - "min" : 0.0, - "step" : 0.01, - "format": "%1.2f", - "screen": "lcd" }, - { "type": "float", - "name": "gain", - "text": "Gain", - "default": 1.0, - "max" : 2.0, - "min" : -1.0, - "step" : 0.01, - "format": "%1.2f", - "screen": "lcd" }, - { "type": "float", - "name": "blacklevel", - "text": "Black level", - "default": 0.0, - "max" : 2.0, - "min" : -1.0, - "step" : 0.01, - "format": "%1.2f", - "screen": "lcd" }, - { "type": "float", - "name": "ambient", - "text": "Ambient", - "default": 0.0, - "max" : 2.0, - "min" : -1.0, - "step" : 0.01, - "format": "%1.2f", - "screen": "lcd" }, - { "type": "float", - "name": "LCDgamma", - "text": "Gamma of simulated LCD", - "default": 2.2, - "max" : 4.0, - "min" : 0.7, - "step" : 0.05, - "format": "%1.2f", - "screen": "raster" }, - { "type": "float", - "name": "monitorgamma", - "text": "Gamma of output display", - "default": 2.2, - "max" : 4.0, - "min" : 0.7, - "step" : 0.05, - "format": "%1.2f", - "screen": "lcd" }, - { "type": "intenum", - "name": "BGR", - "text": "Subpixel layout", - "default": 0, - "max" : 1, - "min" : 0, - "step" : 1, - "format": "%s", - "screen": "lcd", - "strings": [ "RGB", "BGR" ] }, - { "type": "vec2", - "name": "subpixsize", - "text": "Subpixel size ", - "default": [0.5,0.63], - "max" : [1.0,1.0], - "min" : [0.1,0.1], - "step" : 0.01, - "format": "%1.2f", - "screen": "lcd" }, - { "type": "color", - "name": "rsubpix", - "text": "R subpixel ", - "default": [1.0,0.0,0.0], - "max" : [1.0,1.0,1.0], - "min" : [0.0,0.0,0.0], - "step" : 0.01, - "format": "%1.2f", - "screen": "lcd" }, - { "type": "color", - "name": "gsubpix", - "text": "G subpixel ", - "default": [0.0,1.0,0.0], - "max" : [1.0,1.0,1.0], - "min" : [0.0,0.0,0.0], - "step" : 0.01, - "format": "%1.2f", - "screen": "lcd" }, - { "type": "color", - "name": "bsubpix", - "text": "B subpixel ", - "default": [0.0,0.0,1.0], - "max" : [1.0,1.0,1.0], - "min" : [0.0,0.0,0.0], - "step" : 0.01, - "format": "%1.2f", - "screen": "lcd" } - ], + "name": "lcd-grid", + "author": "cgwg", + "sliders": [ + { "type": "float", + "name": "persistence", + "text": "Persistence", + "default": 0.1, + "max" : 0.99, + "min" : 0.0, + "step" : 0.01, + "format": "%1.2f", + "screen": "lcd" }, + { "type": "float", + "name": "gain", + "text": "Gain", + "default": 1.0, + "max" : 2.0, + "min" : -1.0, + "step" : 0.01, + "format": "%1.2f", + "screen": "lcd" }, + { "type": "float", + "name": "blacklevel", + "text": "Black level", + "default": 0.0, + "max" : 2.0, + "min" : -1.0, + "step" : 0.01, + "format": "%1.2f", + "screen": "lcd" }, + { "type": "float", + "name": "ambient", + "text": "Ambient", + "default": 0.0, + "max" : 2.0, + "min" : -1.0, + "step" : 0.01, + "format": "%1.2f", + "screen": "lcd" }, + { "type": "float", + "name": "LCDgamma", + "text": "Gamma of simulated LCD", + "default": 2.2, + "max" : 4.0, + "min" : 0.7, + "step" : 0.05, + "format": "%1.2f", + "screen": "raster" }, + { "type": "float", + "name": "monitorgamma", + "text": "Gamma of output display", + "default": 2.2, + "max" : 4.0, + "min" : 0.7, + "step" : 0.05, + "format": "%1.2f", + "screen": "lcd" }, + { "type": "intenum", + "name": "BGR", + "text": "Subpixel layout", + "default": 0, + "max" : 1, + "min" : 0, + "step" : 1, + "format": "%s", + "screen": "lcd", + "strings": [ "RGB", "BGR" ] }, + { "type": "vec2", + "name": "subpixsize", + "text": "Subpixel size ", + "default": [0.5,0.63], + "max" : [1.0,1.0], + "min" : [0.1,0.1], + "step" : 0.01, + "format": "%1.2f", + "screen": "lcd" }, + { "type": "color", + "name": "rsubpix", + "text": "R subpixel ", + "default": [1.0,0.0,0.0], + "max" : [1.0,1.0,1.0], + "min" : [0.0,0.0,0.0], + "step" : 0.01, + "format": "%1.2f", + "screen": "lcd" }, + { "type": "color", + "name": "gsubpix", + "text": "G subpixel ", + "default": [0.0,1.0,0.0], + "max" : [1.0,1.0,1.0], + "min" : [0.0,0.0,0.0], + "step" : 0.01, + "format": "%1.2f", + "screen": "lcd" }, + { "type": "color", + "name": "bsubpix", + "text": "B subpixel ", + "default": [0.0,0.0,1.0], + "max" : [1.0,1.0,1.0], + "min" : [0.0,0.0,0.0], + "step" : 0.01, + "format": "%1.2f", + "screen": "lcd" } + ], "targets": [ - { "name": "motionblur", + { "name": "motionblur", "mode": "guest" - } + } ], "passes": [ { "effect": "lcd-grid/persistence", "name": "LCD persistence", "uniforms": [ - { "uniform": "u_persistence", "slider": "persistence" } + { "uniform": "u_persistence", "slider": "persistence" } ], "input": [ - { "sampler": "s_screen", "target": "screen" }, - { "sampler": "s_motionblur","target": "motionblur" } + { "sampler": "s_screen", "target": "screen" }, + { "sampler": "s_motionblur","target": "motionblur" } ], "output": "motionblur" }, @@ -126,20 +126,20 @@ "applytint": true, "name": "LCD", "uniforms": [ - { "uniform": "u_rsubpix", "slider": "rsubpix" }, - { "uniform": "u_gsubpix", "slider": "gsubpix" }, - { "uniform": "u_bsubpix", "slider": "bsubpix" }, - { "uniform": "u_gain", "slider": "gain" }, - { "uniform": "u_blacklevel","slider": "blacklevel" }, - { "uniform": "u_ambient", "slider": "ambient" }, - { "uniform": "u_LCDgamma", "slider": "LCDgamma" }, - { "uniform": "u_monitorgamma","slider": "monitorgamma" }, - { "uniform": "u_subpixsize","slider": "subpixsize" }, - { "uniform": "u_BGR", "slider": "BGR" } + { "uniform": "u_rsubpix", "slider": "rsubpix" }, + { "uniform": "u_gsubpix", "slider": "gsubpix" }, + { "uniform": "u_bsubpix", "slider": "bsubpix" }, + { "uniform": "u_gain", "slider": "gain" }, + { "uniform": "u_blacklevel","slider": "blacklevel" }, + { "uniform": "u_ambient", "slider": "ambient" }, + { "uniform": "u_LCDgamma", "slider": "LCDgamma" }, + { "uniform": "u_monitorgamma","slider": "monitorgamma" }, + { "uniform": "u_subpixsize","slider": "subpixsize" }, + { "uniform": "u_BGR", "slider": "BGR" } ], - + "input": [ - { "sampler": "s_tex", "target": "motionblur" } + { "sampler": "s_tex", "target": "motionblur" } ], "output": "output" diff --git a/bgfx/chains/pillarbox_left_horizontal.json b/bgfx/chains/pillarbox_left_horizontal.json index bb0664330f0..336be374548 100644 --- a/bgfx/chains/pillarbox_left_horizontal.json +++ b/bgfx/chains/pillarbox_left_horizontal.json @@ -10,11 +10,11 @@ { "name": "Horizontal Pillarbox, Left", "author": "Ryan Holtz", - + "sliders": [ { "type": "float", "name": "saturation", "text": "Saturation", "default": 0.25, "max": 1.00, "min": 0.00, "step": 0.01, "format": "%1.2f", "screen": "raster" } ], - + "targets": [ { "name": "guest", @@ -29,16 +29,16 @@ "doublebuffer": true } ], - + "passes": [ - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Blit to scalable target", "input": [ { "sampler": "s_tex", "target": "screen" } ], "output": "guest" }, - { "effect": "pillarbox_left_horizontal/gaussian", + { "effect": "pillarbox_left_horizontal/gaussian", "name": "Gaussian Blur 1, Horizontal", "uniforms": [ { "uniform": "u_dimension", "value": [ 1.0, 0.0 ] } @@ -48,7 +48,7 @@ ], "output": "internal" }, - { "effect": "pillarbox_left_horizontal/gaussian", + { "effect": "pillarbox_left_horizontal/gaussian", "name": "Gaussian Blur 1, Vertical", "uniforms": [ { "uniform": "u_dimension", "value": [ 0.0, 1.0 ] } @@ -58,7 +58,7 @@ ], "output": "internal" }, - { "effect": "pillarbox_left_horizontal/gaussian", + { "effect": "pillarbox_left_horizontal/gaussian", "name": "Gaussian Blur 2, Horizontal", "uniforms": [ { "uniform": "u_dimension", "value": [ 1.0, 0.0 ] } @@ -68,7 +68,7 @@ ], "output": "internal" }, - { "effect": "pillarbox_left_horizontal/gaussian", + { "effect": "pillarbox_left_horizontal/gaussian", "name": "Gaussian Blur 2, Vertical", "uniforms": [ { "uniform": "u_dimension", "value": [ 0.0, 1.0 ] } @@ -92,7 +92,7 @@ ], "output": "internal" }, - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Final Blit", "input": [ { "sampler": "s_tex", "target": "internal" } @@ -100,4 +100,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/pillarbox_left_vertical.json b/bgfx/chains/pillarbox_left_vertical.json index 9132b77eefa..7d114b3544a 100644 --- a/bgfx/chains/pillarbox_left_vertical.json +++ b/bgfx/chains/pillarbox_left_vertical.json @@ -10,11 +10,11 @@ { "name": "Vertical Pillarbox, Left", "author": "Ryan Holtz", - + "sliders": [ { "type": "float", "name": "saturation", "text": "Saturation", "default": 0.25, "max": 1.00, "min": 0.00, "step": 0.01, "format": "%1.2f", "screen": "raster" } ], - + "targets": [ { "name": "guest", @@ -29,16 +29,16 @@ "doublebuffer": true } ], - + "passes": [ - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Blit to scalable target", "input": [ { "sampler": "s_tex", "target": "screen" } ], "output": "guest" }, - { "effect": "pillarbox_left_vertical/gaussian", + { "effect": "pillarbox_left_vertical/gaussian", "name": "Gaussian Blur 1, Horizontal", "uniforms": [ { "uniform": "u_dimension", "value": [ 1.0, 0.0 ] } @@ -48,7 +48,7 @@ ], "output": "internal" }, - { "effect": "pillarbox_left_vertical/gaussian", + { "effect": "pillarbox_left_vertical/gaussian", "name": "Gaussian Blur 1, Vertical", "uniforms": [ { "uniform": "u_dimension", "value": [ 0.0, 1.0 ] } @@ -58,7 +58,7 @@ ], "output": "internal" }, - { "effect": "pillarbox_left_vertical/gaussian", + { "effect": "pillarbox_left_vertical/gaussian", "name": "Gaussian Blur 2, Horizontal", "uniforms": [ { "uniform": "u_dimension", "value": [ 1.0, 0.0 ] } @@ -68,7 +68,7 @@ ], "output": "internal" }, - { "effect": "pillarbox_left_vertical/gaussian", + { "effect": "pillarbox_left_vertical/gaussian", "name": "Gaussian Blur 2, Vertical", "uniforms": [ { "uniform": "u_dimension", "value": [ 0.0, 1.0 ] } @@ -92,7 +92,7 @@ ], "output": "internal" }, - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Final Blit", "input": [ { "sampler": "s_tex", "target": "internal" } @@ -100,4 +100,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/pillarbox_right_horizontal.json b/bgfx/chains/pillarbox_right_horizontal.json index 1b4798e6b18..b4592a7161b 100644 --- a/bgfx/chains/pillarbox_right_horizontal.json +++ b/bgfx/chains/pillarbox_right_horizontal.json @@ -10,11 +10,11 @@ { "name": "Horizontal Pillarbox, Right", "author": "Ryan Holtz", - + "sliders": [ { "type": "float", "name": "saturation", "text": "Saturation", "default": 0.25, "max": 1.00, "min": 0.00, "step": 0.01, "format": "%1.2f", "screen": "raster" } ], - + "targets": [ { "name": "guest", @@ -29,16 +29,16 @@ "doublebuffer": true } ], - + "passes": [ - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Blit to scalable target", "input": [ { "sampler": "s_tex", "target": "screen" } ], "output": "guest" }, - { "effect": "pillarbox_right_horizontal/gaussian", + { "effect": "pillarbox_right_horizontal/gaussian", "name": "Gaussian Blur 1, Horizontal", "uniforms": [ { "uniform": "u_dimension", "value": [ 1.0, 0.0 ] } @@ -48,7 +48,7 @@ ], "output": "internal" }, - { "effect": "pillarbox_right_horizontal/gaussian", + { "effect": "pillarbox_right_horizontal/gaussian", "name": "Gaussian Blur 1, Vertical", "uniforms": [ { "uniform": "u_dimension", "value": [ 0.0, 1.0 ] } @@ -58,7 +58,7 @@ ], "output": "internal" }, - { "effect": "pillarbox_right_horizontal/gaussian", + { "effect": "pillarbox_right_horizontal/gaussian", "name": "Gaussian Blur 2, Horizontal", "uniforms": [ { "uniform": "u_dimension", "value": [ 1.0, 0.0 ] } @@ -68,7 +68,7 @@ ], "output": "internal" }, - { "effect": "pillarbox_right_horizontal/gaussian", + { "effect": "pillarbox_right_horizontal/gaussian", "name": "Gaussian Blur 2, Vertical", "uniforms": [ { "uniform": "u_dimension", "value": [ 0.0, 1.0 ] } @@ -92,7 +92,7 @@ ], "output": "internal" }, - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Final Blit", "input": [ { "sampler": "s_tex", "target": "internal" } @@ -100,4 +100,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/pillarbox_right_vertical.json b/bgfx/chains/pillarbox_right_vertical.json index 1dcc15c5d29..ec7ab44fa4a 100644 --- a/bgfx/chains/pillarbox_right_vertical.json +++ b/bgfx/chains/pillarbox_right_vertical.json @@ -10,11 +10,11 @@ { "name": "Vertical Pillarbox, Right", "author": "Ryan Holtz", - + "sliders": [ { "type": "float", "name": "saturation", "text": "Saturation", "default": 0.25, "max": 1.00, "min": 0.00, "step": 0.01, "format": "%1.2f", "screen": "raster" } ], - + "targets": [ { "name": "guest", @@ -29,16 +29,16 @@ "doublebuffer": true } ], - + "passes": [ - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Blit to scalable target", "input": [ { "sampler": "s_tex", "target": "screen" } ], "output": "guest" }, - { "effect": "pillarbox_right_vertical/gaussian", + { "effect": "pillarbox_right_vertical/gaussian", "name": "Gaussian Blur 1, Horizontal", "uniforms": [ { "uniform": "u_dimension", "value": [ 1.0, 0.0 ] } @@ -48,7 +48,7 @@ ], "output": "internal" }, - { "effect": "pillarbox_right_vertical/gaussian", + { "effect": "pillarbox_right_vertical/gaussian", "name": "Gaussian Blur 1, Vertical", "uniforms": [ { "uniform": "u_dimension", "value": [ 0.0, 1.0 ] } @@ -58,7 +58,7 @@ ], "output": "internal" }, - { "effect": "pillarbox_right_vertical/gaussian", + { "effect": "pillarbox_right_vertical/gaussian", "name": "Gaussian Blur 2, Horizontal", "uniforms": [ { "uniform": "u_dimension", "value": [ 1.0, 0.0 ] } @@ -68,7 +68,7 @@ ], "output": "internal" }, - { "effect": "pillarbox_right_vertical/gaussian", + { "effect": "pillarbox_right_vertical/gaussian", "name": "Gaussian Blur 2, Vertical", "uniforms": [ { "uniform": "u_dimension", "value": [ 0.0, 1.0 ] } @@ -92,7 +92,7 @@ ], "output": "internal" }, - { "effect": "misc/blit", + { "effect": "misc/blit", "name": "Final Blit", "input": [ { "sampler": "s_tex", "target": "internal" } @@ -100,4 +100,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/unfiltered.json b/bgfx/chains/unfiltered.json index c69bcd319b5..d17a01f412b 100644 --- a/bgfx/chains/unfiltered.json +++ b/bgfx/chains/unfiltered.json @@ -1,7 +1,7 @@ -{ "name": "Default Nearest-Neighbor Filter", +{ "name": "Default Nearest-Neighbor Filter", "author": "Ryan Holtz", "passes": [ - { "effect": "misc/blit", + { "effect": "misc/blit", "applytint": true, "name": "Unfiltered Upscale", "input": [ @@ -10,4 +10,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/super-2xbr-3d-2p.json b/bgfx/chains/xbr/super-2xbr-3d-2p.json index 1fafe6497f1..3f998786625 100644 --- a/bgfx/chains/xbr/super-2xbr-3d-2p.json +++ b/bgfx/chains/xbr/super-2xbr-3d-2p.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR 3D Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -67,4 +67,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/super-2xbr-3d-3p-smoother.json b/bgfx/chains/xbr/super-2xbr-3d-3p-smoother.json index 307e0b6a149..37144fb1acc 100644 --- a/bgfx/chains/xbr/super-2xbr-3d-3p-smoother.json +++ b/bgfx/chains/xbr/super-2xbr-3d-3p-smoother.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR 3D Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -76,4 +76,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/super-4xbr-3d-4p.json b/bgfx/chains/xbr/super-4xbr-3d-4p.json index cd1fa47ff73..d88fcfff279 100644 --- a/bgfx/chains/xbr/super-4xbr-3d-4p.json +++ b/bgfx/chains/xbr/super-4xbr-3d-4p.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super 4XBR 3D Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -84,4 +84,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/super-4xbr-3d-6p-smoother.json b/bgfx/chains/xbr/super-4xbr-3d-6p-smoother.json index b3ef9004d82..53cd24c0210 100644 --- a/bgfx/chains/xbr/super-4xbr-3d-6p-smoother.json +++ b/bgfx/chains/xbr/super-4xbr-3d-6p-smoother.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super 4XBR 3D Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -84,4 +84,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/super-xbr-2p.json b/bgfx/chains/xbr/super-xbr-2p.json index d4fabc092ad..f733ab21610 100644 --- a/bgfx/chains/xbr/super-xbr-2p.json +++ b/bgfx/chains/xbr/super-xbr-2p.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR 3D Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -74,4 +74,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/super-xbr-3p-smoother.json b/bgfx/chains/xbr/super-xbr-3p-smoother.json index 487b62059e0..f7d2bf5165e 100644 --- a/bgfx/chains/xbr/super-xbr-3p-smoother.json +++ b/bgfx/chains/xbr/super-xbr-3p-smoother.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -82,4 +82,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/super-xbr-6p.json b/bgfx/chains/xbr/super-xbr-6p.json index 3c3a867df88..cffd4d24a26 100644 --- a/bgfx/chains/xbr/super-xbr-6p.json +++ b/bgfx/chains/xbr/super-xbr-6p.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -121,4 +121,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/super-xbr-deposterize.json b/bgfx/chains/xbr/super-xbr-deposterize.json index 4a1ec028bbf..4010e7f1215 100644 --- a/bgfx/chains/xbr/super-xbr-deposterize.json +++ b/bgfx/chains/xbr/super-xbr-deposterize.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -96,4 +96,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/super-xbr-fast-3p.json b/bgfx/chains/xbr/super-xbr-fast-3p.json index 92d067c67b8..7ccf13b1669 100644 --- a/bgfx/chains/xbr/super-xbr-fast-3p.json +++ b/bgfx/chains/xbr/super-xbr-fast-3p.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -74,4 +74,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/super-xbr-fast-6p.json b/bgfx/chains/xbr/super-xbr-fast-6p.json index bd97d17a496..a7d32c22907 100644 --- a/bgfx/chains/xbr/super-xbr-fast-6p.json +++ b/bgfx/chains/xbr/super-xbr-fast-6p.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -111,4 +111,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-hybrid.json b/bgfx/chains/xbr/xbr-hybrid.json index 9c187c7cd7c..963283618cc 100644 --- a/bgfx/chains/xbr/xbr-hybrid.json +++ b/bgfx/chains/xbr/xbr-hybrid.json @@ -46,4 +46,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-lv1-noblend.json b/bgfx/chains/xbr/xbr-lv1-noblend.json index b350a3bf279..123dc565582 100644 --- a/bgfx/chains/xbr/xbr-lv1-noblend.json +++ b/bgfx/chains/xbr/xbr-lv1-noblend.json @@ -3,7 +3,7 @@ /* Hyllian's xBR-lv1-noblend Shader - + Copyright (C) 2011-2014 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -40,4 +40,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-lv2-3d.json b/bgfx/chains/xbr/xbr-lv2-3d.json index 74bc2d4c5b4..048f72e8e04 100644 --- a/bgfx/chains/xbr/xbr-lv2-3d.json +++ b/bgfx/chains/xbr/xbr-lv2-3d.json @@ -3,7 +3,7 @@ /* Hyllian's xBR-lv2-3d Shader - + Copyright (C) 2011/2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -40,4 +40,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-lv2-accuracy-multipass.json b/bgfx/chains/xbr/xbr-lv2-accuracy-multipass.json index a4fcbdcb951..5258f7c9840 100644 --- a/bgfx/chains/xbr/xbr-lv2-accuracy-multipass.json +++ b/bgfx/chains/xbr/xbr-lv2-accuracy-multipass.json @@ -3,7 +3,7 @@ /* Hyllian's xBR LV2 Accuracy - + Copyright (C) 2011-2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -57,4 +57,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-lv2-accuracy-smart-blur.json b/bgfx/chains/xbr/xbr-lv2-accuracy-smart-blur.json index 03d9acd7f0d..b6e8ea3c8e4 100644 --- a/bgfx/chains/xbr/xbr-lv2-accuracy-smart-blur.json +++ b/bgfx/chains/xbr/xbr-lv2-accuracy-smart-blur.json @@ -45,4 +45,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-lv2-deposterize.json b/bgfx/chains/xbr/xbr-lv2-deposterize.json index 7c5099960fb..7451cd54ab4 100644 --- a/bgfx/chains/xbr/xbr-lv2-deposterize.json +++ b/bgfx/chains/xbr/xbr-lv2-deposterize.json @@ -39,4 +39,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-lv2-fast.json b/bgfx/chains/xbr/xbr-lv2-fast.json index ad39d50c046..26bcce5ef0b 100644 --- a/bgfx/chains/xbr/xbr-lv2-fast.json +++ b/bgfx/chains/xbr/xbr-lv2-fast.json @@ -3,7 +3,7 @@ /* Hyllian's xBR-lv2-fast Shader - + Copyright (C) 2011/2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -40,4 +40,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-lv2-multipass.json b/bgfx/chains/xbr/xbr-lv2-multipass.json index 64e500112b3..2dd34a9b9d3 100644 --- a/bgfx/chains/xbr/xbr-lv2-multipass.json +++ b/bgfx/chains/xbr/xbr-lv2-multipass.json @@ -3,7 +3,7 @@ /* Hyllian's xBR LV2 C (squared) - pass0 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -59,4 +59,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-lv2-noblend.json b/bgfx/chains/xbr/xbr-lv2-noblend.json index d83225eea28..db08feb2647 100644 --- a/bgfx/chains/xbr/xbr-lv2-noblend.json +++ b/bgfx/chains/xbr/xbr-lv2-noblend.json @@ -3,7 +3,7 @@ /* Hyllian's xBR-lv2-noblend Shader - + Copyright (C) 2011/2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -40,4 +40,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-lv2.json b/bgfx/chains/xbr/xbr-lv2.json index 6b098b5cec9..3f589d734fe 100644 --- a/bgfx/chains/xbr/xbr-lv2.json +++ b/bgfx/chains/xbr/xbr-lv2.json @@ -3,7 +3,7 @@ /* Hyllian's xBR-lv2 Shader - + Copyright (C) 2011/2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -40,4 +40,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-lv3-multipass.json b/bgfx/chains/xbr/xbr-lv3-multipass.json index 18aed86e084..ac63612b704 100644 --- a/bgfx/chains/xbr/xbr-lv3-multipass.json +++ b/bgfx/chains/xbr/xbr-lv3-multipass.json @@ -3,7 +3,7 @@ /* Hyllian's xBR level 3 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -58,4 +58,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-lv3-noblend.json b/bgfx/chains/xbr/xbr-lv3-noblend.json index 37e006885d5..8f5b3ac2e2e 100644 --- a/bgfx/chains/xbr/xbr-lv3-noblend.json +++ b/bgfx/chains/xbr/xbr-lv3-noblend.json @@ -3,14 +3,14 @@ /* Hyllian's xBR-lv3-noblend - Shader - + Copyright (C) 2011/2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is + copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in @@ -40,4 +40,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-lv3.json b/bgfx/chains/xbr/xbr-lv3.json index ca4866bee37..ddeb80874c9 100644 --- a/bgfx/chains/xbr/xbr-lv3.json +++ b/bgfx/chains/xbr/xbr-lv3.json @@ -3,14 +3,14 @@ /* Hyllian's xBR-lv3 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is + copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in @@ -40,4 +40,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-mlv4-dilation.json b/bgfx/chains/xbr/xbr-mlv4-dilation.json index e0a55017754..3ce4926ca8b 100644 --- a/bgfx/chains/xbr/xbr-mlv4-dilation.json +++ b/bgfx/chains/xbr/xbr-mlv4-dilation.json @@ -3,7 +3,7 @@ /* Hyllian's xBR MultiLevel4 Shader + Dilation - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -96,4 +96,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/chains/xbr/xbr-mlv4-multipass.json b/bgfx/chains/xbr/xbr-mlv4-multipass.json index 010a5f99250..2eb09a7f87d 100644 --- a/bgfx/chains/xbr/xbr-mlv4-multipass.json +++ b/bgfx/chains/xbr/xbr-mlv4-multipass.json @@ -3,7 +3,7 @@ /* Hyllian's xBR MultiLevel4 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -81,4 +81,4 @@ "output": "output" } ] -}
\ No newline at end of file +} diff --git a/bgfx/effects/blurs/smart-blur.json b/bgfx/effects/blurs/smart-blur.json index 01632204b73..abc52469dbd 100644 --- a/bgfx/effects/blurs/smart-blur.json +++ b/bgfx/effects/blurs/smart-blur.json @@ -3,7 +3,7 @@ /* Hyllian Smart-Blur Shader - + Copyright (C) 2011-2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,29 +27,29 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/blurs/vs_smart-blur", - "fragment": "chains/blurs/fs_smart-blur", - "uniforms": [ - { "name": "s_p", "type": "int", "values": [ 1.0 ] }, - { "name": "SB_THRESHOLD", "type": "vec4", "values": [ 0.2, 0.2, 0.2, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/blurs/vs_smart-blur", + "fragment": "chains/blurs/fs_smart-blur", + "uniforms": [ + { "name": "s_p", "type": "int", "values": [ 1.0 ] }, + { "name": "SB_THRESHOLD", "type": "vec4", "values": [ 0.2, 0.2, 0.2, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/crt-geom/crt-geom-deluxe.json b/bgfx/effects/crt-geom/crt-geom-deluxe.json index 10f87874a4d..500eab09542 100644 --- a/bgfx/effects/crt-geom/crt-geom-deluxe.json +++ b/bgfx/effects/crt-geom/crt-geom-deluxe.json @@ -1,51 +1,51 @@ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/crt-geom/vs_crt-geom", - "fragment": "chains/crt-geom/fs_crt-geom-deluxe", - "uniforms": [ - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_quad_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_rotation_type", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "mpass_texture", "type": "int", "values": [ 0 ] }, - { "name": "mask_texture", "type": "int", "values": [ 1 ] }, - { "name": "blur_texture", "type": "int", "values": [ 2 ] }, - { "name": "mipmap_texture", "type": "int", "values": [ 3 ] }, - { "name": "curvature", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "CRTgamma", "type": "vec4", "values": [ 2.4, 0.0, 0.0, 0.0 ] }, - { "name": "monitorgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] }, - { "name": "overscan", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "aspect", "type": "vec4", "values": [ 1.0, 0.75,0.0, 0.0 ] }, - { "name": "d", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "R", "type": "vec4", "values": [ 3.5, 0.0, 0.0, 0.0 ] }, - { "name": "angle", "type": "vec4", "values": [ 0.0,-0.05,0.0, 0.0 ] }, - { "name": "cornersize", "type": "vec4", "values": [ 0.01,0.0, 0.0, 0.0 ] }, - { "name": "cornersmooth", "type": "vec4", "values": [ 1000.0,0.0,0.0,0.0 ] }, - { "name": "aperture_strength", "type": "vec4", "values": [ 0.25,0.0,0.0,0.0 ] }, - { "name": "aperture_brightboost","type": "vec4", "values": [ 0.25,0.0,0.0,0.0 ] }, - { "name": "spot_size", "type": "vec4", "values": [ 0.3,0.0,0.0,0.0 ] }, - { "name": "spot_growth","type": "vec4", "values": [ 0.1,0.0,0.0,0.0 ] }, - { "name": "spot_growth_power", "type": "vec4", "values": [ 3.0,0.0,0.0,0.0 ] }, - { "name": "u_interp", "type": "vec4", "values": [ 2.0,0.0,0.0,0.0 ] }, - { "name": "halation", "type": "vec4", "values": [ 0.1,0.0,0.0,0.0 ] }, - { "name": "blurwidth", "type": "vec4", "values": [ 2.0,0.0,0.0,0.0 ] }, - { "name": "rasterbloom","type": "vec4", "values": [ 0.01,0.0,0.0,0.0 ] } - ] + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/crt-geom/vs_crt-geom", + "fragment": "chains/crt-geom/fs_crt-geom-deluxe", + "uniforms": [ + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_quad_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_rotation_type", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "mpass_texture", "type": "int", "values": [ 0 ] }, + { "name": "mask_texture", "type": "int", "values": [ 1 ] }, + { "name": "blur_texture", "type": "int", "values": [ 2 ] }, + { "name": "mipmap_texture", "type": "int", "values": [ 3 ] }, + { "name": "curvature", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "CRTgamma", "type": "vec4", "values": [ 2.4, 0.0, 0.0, 0.0 ] }, + { "name": "monitorgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] }, + { "name": "overscan", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "aspect", "type": "vec4", "values": [ 1.0, 0.75,0.0, 0.0 ] }, + { "name": "d", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "R", "type": "vec4", "values": [ 3.5, 0.0, 0.0, 0.0 ] }, + { "name": "angle", "type": "vec4", "values": [ 0.0,-0.05,0.0, 0.0 ] }, + { "name": "cornersize", "type": "vec4", "values": [ 0.01,0.0, 0.0, 0.0 ] }, + { "name": "cornersmooth", "type": "vec4", "values": [ 1000.0,0.0,0.0,0.0 ] }, + { "name": "aperture_strength", "type": "vec4", "values": [ 0.25,0.0,0.0,0.0 ] }, + { "name": "aperture_brightboost","type": "vec4", "values": [ 0.25,0.0,0.0,0.0 ] }, + { "name": "spot_size", "type": "vec4", "values": [ 0.3,0.0,0.0,0.0 ] }, + { "name": "spot_growth", "type": "vec4", "values": [ 0.1,0.0,0.0,0.0 ] }, + { "name": "spot_growth_power", "type": "vec4", "values": [ 3.0,0.0,0.0,0.0 ] }, + { "name": "u_interp", "type": "vec4", "values": [ 2.0,0.0,0.0,0.0 ] }, + { "name": "halation", "type": "vec4", "values": [ 0.1,0.0,0.0,0.0 ] }, + { "name": "blurwidth", "type": "vec4", "values": [ 2.0,0.0,0.0,0.0 ] }, + { "name": "rasterbloom", "type": "vec4", "values": [ 0.01,0.0,0.0,0.0 ] } + ] } diff --git a/bgfx/effects/crt-geom/crt-geom.json b/bgfx/effects/crt-geom/crt-geom.json index 5b2e1b6730e..b742896485e 100644 --- a/bgfx/effects/crt-geom/crt-geom.json +++ b/bgfx/effects/crt-geom/crt-geom.json @@ -1,46 +1,46 @@ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/crt-geom/vs_crt-geom", - "fragment": "chains/crt-geom/fs_crt-geom", - "uniforms": [ - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_quad_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_rotation_type", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "mpass_texture", "type": "int", "values": [ 0 ] }, - { "name": "mask_texture", "type": "int", "values": [ 1 ] }, - { "name": "curvature", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "CRTgamma", "type": "vec4", "values": [ 2.4, 0.0, 0.0, 0.0 ] }, - { "name": "monitorgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] }, - { "name": "overscan", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "aspect", "type": "vec4", "values": [ 1.0, 0.75,0.0, 0.0 ] }, - { "name": "d", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "R", "type": "vec4", "values": [ 3.5, 0.0, 0.0, 0.0 ] }, - { "name": "angle", "type": "vec4", "values": [ 0.0,-0.05,0.0, 0.0 ] }, - { "name": "cornersize", "type": "vec4", "values": [ 0.01,0.0, 0.0, 0.0 ] }, - { "name": "cornersmooth", "type": "vec4", "values": [ 1000.0,0.0,0.0,0.0 ] }, - { "name": "aperture_strength", "type": "vec4", "values": [ 0.25,0.0,0.0,0.0 ] }, - { "name": "aperture_brightboost","type": "vec4", "values": [ 0.25,0.0,0.0,0.0 ] }, - { "name": "spot_size", "type": "vec4", "values": [ 0.3,0.0,0.0,0.0 ] }, - { "name": "spot_growth","type": "vec4", "values": [ 0.1,0.0,0.0,0.0 ] }, - { "name": "spot_growth_power", "type": "vec4", "values": [ 3.0,0.0,0.0,0.0 ] }, - { "name": "u_interp", "type": "vec4", "values": [ 2.0,0.0,0.0,0.0 ] } - ] + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/crt-geom/vs_crt-geom", + "fragment": "chains/crt-geom/fs_crt-geom", + "uniforms": [ + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_quad_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_rotation_type", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "mpass_texture", "type": "int", "values": [ 0 ] }, + { "name": "mask_texture", "type": "int", "values": [ 1 ] }, + { "name": "curvature", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "CRTgamma", "type": "vec4", "values": [ 2.4, 0.0, 0.0, 0.0 ] }, + { "name": "monitorgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] }, + { "name": "overscan", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "aspect", "type": "vec4", "values": [ 1.0, 0.75,0.0, 0.0 ] }, + { "name": "d", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "R", "type": "vec4", "values": [ 3.5, 0.0, 0.0, 0.0 ] }, + { "name": "angle", "type": "vec4", "values": [ 0.0,-0.05,0.0, 0.0 ] }, + { "name": "cornersize", "type": "vec4", "values": [ 0.01,0.0, 0.0, 0.0 ] }, + { "name": "cornersmooth", "type": "vec4", "values": [ 1000.0,0.0,0.0,0.0 ] }, + { "name": "aperture_strength", "type": "vec4", "values": [ 0.25,0.0,0.0,0.0 ] }, + { "name": "aperture_brightboost","type": "vec4", "values": [ 0.25,0.0,0.0,0.0 ] }, + { "name": "spot_size", "type": "vec4", "values": [ 0.3,0.0,0.0,0.0 ] }, + { "name": "spot_growth", "type": "vec4", "values": [ 0.1,0.0,0.0,0.0 ] }, + { "name": "spot_growth_power", "type": "vec4", "values": [ 3.0,0.0,0.0,0.0 ] }, + { "name": "u_interp", "type": "vec4", "values": [ 2.0,0.0,0.0,0.0 ] } + ] } diff --git a/bgfx/effects/crt-geom/gaussx.json b/bgfx/effects/crt-geom/gaussx.json index 4fc008f7954..896e514f0e5 100644 --- a/bgfx/effects/crt-geom/gaussx.json +++ b/bgfx/effects/crt-geom/gaussx.json @@ -1,29 +1,29 @@ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/crt-geom/vs_gaussx", - "fragment": "chains/crt-geom/fs_gaussx", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_width", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_aspect", "type": "vec4", "values": [ 1.0,0.75, 0.0, 0.0 ] }, - { "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] } - ] + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/crt-geom/vs_gaussx", + "fragment": "chains/crt-geom/fs_gaussx", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_width", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_aspect", "type": "vec4", "values": [ 1.0,0.75, 0.0, 0.0 ] }, + { "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] } + ] } diff --git a/bgfx/effects/crt-geom/gaussy.json b/bgfx/effects/crt-geom/gaussy.json index 5f585c85688..e3e539a4ce2 100644 --- a/bgfx/effects/crt-geom/gaussy.json +++ b/bgfx/effects/crt-geom/gaussy.json @@ -1,29 +1,29 @@ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/crt-geom/vs_gaussy", - "fragment": "chains/crt-geom/fs_gaussy", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_width", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_aspect", "type": "vec4", "values": [ 1.0,0.75, 0.0, 0.0 ] }, - { "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] } - ] + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/crt-geom/vs_gaussy", + "fragment": "chains/crt-geom/fs_gaussy", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_width", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_aspect", "type": "vec4", "values": [ 1.0,0.75, 0.0, 0.0 ] }, + { "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] } + ] } diff --git a/bgfx/effects/crt-geom/lowpass.json b/bgfx/effects/crt-geom/lowpass.json index 7115e2112be..d5467d0a9a7 100644 --- a/bgfx/effects/crt-geom/lowpass.json +++ b/bgfx/effects/crt-geom/lowpass.json @@ -1,28 +1,28 @@ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/crt-geom/vs_lowpass", - "fragment": "chains/crt-geom/fs_lowpass", - "uniforms": [ - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_lowpass_cutoff","type": "vec4", "values": [ 200.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_lowpass_width", "type": "vec4", "values": [ 80.0, 0.0, 0.0, 0.0 ] }, - { "name": "s_screen", "type": "int", "values": [ 0 ] } - ] + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/crt-geom/vs_lowpass", + "fragment": "chains/crt-geom/fs_lowpass", + "uniforms": [ + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_lowpass_cutoff","type": "vec4", "values": [ 200.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_lowpass_width", "type": "vec4", "values": [ 80.0, 0.0, 0.0, 0.0 ] }, + { "name": "s_screen", "type": "int", "values": [ 0 ] } + ] } diff --git a/bgfx/effects/crt-geom/mipmap8.json b/bgfx/effects/crt-geom/mipmap8.json index 8ae25aa7c1e..78605feb939 100644 --- a/bgfx/effects/crt-geom/mipmap8.json +++ b/bgfx/effects/crt-geom/mipmap8.json @@ -1,29 +1,29 @@ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/crt-geom/vs_mipmap8", - "fragment": "chains/crt-geom/fs_mipmap8", - "uniforms": [ - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_smooth", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, - { "name": "s_screen", "type": "int", "values": [ 0 ] }, - { "name": "s_mipmap", "type": "int", "values": [ 1 ] } - ] + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/crt-geom/vs_mipmap8", + "fragment": "chains/crt-geom/fs_mipmap8", + "uniforms": [ + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_smooth", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, + { "name": "s_screen", "type": "int", "values": [ 0 ] }, + { "name": "s_mipmap", "type": "int", "values": [ 1 ] } + ] } diff --git a/bgfx/effects/crt-geom/phosphor_apply.json b/bgfx/effects/crt-geom/phosphor_apply.json index dc6dfcb34b5..f1c322c5b6e 100644 --- a/bgfx/effects/crt-geom/phosphor_apply.json +++ b/bgfx/effects/crt-geom/phosphor_apply.json @@ -1,30 +1,30 @@ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/crt-geom/vs_phosphor_apply", - "fragment": "chains/crt-geom/fs_phosphor_apply", - "uniforms": [ - { "name": "s_screen", "type": "int", "values": [ 0 ] }, - { "name": "s_phosphor", "type": "int", "values": [ 1 ] }, - { "name": "u_phosphor_power", "type": "vec4", "values": [ 1.3, 0.0, 0.0, 0.0 ] }, - { "name": "u_phosphor_amplitude","type": "vec4", "values": [ 0.2, 0.0, 0.0, 0.0 ] }, - { "name": "u_phosphor_cutoff", "type": "vec4", "values": [300.0,0.0, 0.0, 0.0 ] }, - { "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] } - ] + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/crt-geom/vs_phosphor_apply", + "fragment": "chains/crt-geom/fs_phosphor_apply", + "uniforms": [ + { "name": "s_screen", "type": "int", "values": [ 0 ] }, + { "name": "s_phosphor", "type": "int", "values": [ 1 ] }, + { "name": "u_phosphor_power", "type": "vec4", "values": [ 1.3, 0.0, 0.0, 0.0 ] }, + { "name": "u_phosphor_amplitude","type": "vec4", "values": [ 0.2, 0.0, 0.0, 0.0 ] }, + { "name": "u_phosphor_cutoff", "type": "vec4", "values": [300.0,0.0, 0.0, 0.0 ] }, + { "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] } + ] } diff --git a/bgfx/effects/crt-geom/phosphor_update.json b/bgfx/effects/crt-geom/phosphor_update.json index 50cde93b69a..77740af02ba 100644 --- a/bgfx/effects/crt-geom/phosphor_update.json +++ b/bgfx/effects/crt-geom/phosphor_update.json @@ -1,30 +1,30 @@ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/crt-geom/vs_phosphor_update", - "fragment": "chains/crt-geom/fs_phosphor_update", - "uniforms": [ - { "name": "s_screen", "type": "int", "values": [ 0 ] }, - { "name": "s_phosphor", "type": "int", "values": [ 1 ] }, - { "name": "u_phosphor_power", "type": "vec4", "values": [ 1.3, 0.0, 0.0, 0.0 ] }, - { "name": "u_phosphor_amplitude","type": "vec4", "values": [ 0.2, 0.0, 0.0, 0.0 ] }, - { "name": "u_phosphor_cutoff", "type": "vec4", "values": [300.0,0.0, 0.0, 0.0 ] }, - { "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] } - ] + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/crt-geom/vs_phosphor_update", + "fragment": "chains/crt-geom/fs_phosphor_update", + "uniforms": [ + { "name": "s_screen", "type": "int", "values": [ 0 ] }, + { "name": "s_phosphor", "type": "int", "values": [ 1 ] }, + { "name": "u_phosphor_power", "type": "vec4", "values": [ 1.3, 0.0, 0.0, 0.0 ] }, + { "name": "u_phosphor_amplitude","type": "vec4", "values": [ 0.2, 0.0, 0.0, 0.0 ] }, + { "name": "u_phosphor_cutoff", "type": "vec4", "values": [300.0,0.0, 0.0, 0.0 ] }, + { "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] } + ] } diff --git a/bgfx/effects/default/blit.json b/bgfx/effects/default/blit.json index a3c21f4c964..82b4594dd7a 100644 --- a/bgfx/effects/default/blit.json +++ b/bgfx/effects/default/blit.json @@ -6,95 +6,95 @@ // //============================================================ { - // depth (required): The depth state for this effect. - "depth": { - // function (optional): The depth function to use when drawing. - // values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always" - // default: "always" - "function": "always", - - // writeenable (optional): Whether to store Z-buffer data. - // values: true, false - // default: false - "writeenable": false - }, - - // cull (required): The cull mode for this effect. - "cull": { - // mode (optional): What winding, if any, to cull. - // values: "none", "cw", "ccw" - // default: "ccw" - // - // "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw" - "mode": "none" - }, - - // write (required): Write enable for color and alpha channels. - "write": { - // rgb (optional): Whether to store color data when drawing. - // values: true, false - // default: false - "rgb": true, + // depth (required): The depth state for this effect. + "depth": { + // function (optional): The depth function to use when drawing. + // values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always" + // default: "always" + "function": "always", - // alpha (optional): Whether to store alpha data when drawing. - // values: true, false - // default: false - "alpha": true - }, + // writeenable (optional): Whether to store Z-buffer data. + // values: true, false + // default: false + "writeenable": false + }, + + // cull (required): The cull mode for this effect. + "cull": { + // mode (optional): What winding, if any, to cull. + // values: "none", "cw", "ccw" + // default: "ccw" + // + // "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw" + "mode": "none" + }, + + // write (required): Write enable for color and alpha channels. + "write": { + // rgb (optional): Whether to store color data when drawing. + // values: true, false + // default: false + "rgb": true, + + // alpha (optional): Whether to store alpha data when drawing. + // values: true, false + // default: false + "alpha": true + }, // vertex (required): The vertex shader to use when drawing. // value: A string containing the path and name of a shader file to use, minus the extension. - "vertex": "chains/default/vs_blit", + "vertex": "chains/default/vs_blit", // pixel/fragment (required): The pixel or fragment shader to use when drawing. // value: A string containing the path and name of a shader file to use, minus the extension. - "fragment": "chains/default/fs_blit", - - // uniforms (required): The list of uniforms for this effect. Can be empty, but must exist. - "uniforms": [ - { - // name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader. - // value: A string containing the name of the uniform as described above. - // - // NOTE: Some names correspond to special values that will be automatically filled by the BGFX - // code if they are used by the shader. These names are: - // "u_screen_dims" - // The dimensions of the first texture input if present, otherwise the dimensions of the output window. - // Valid values: xy - // "u_inv_screen_dims" - // The reciprocal of u_screen_dims. - // Valid values: xy - // "u_source_dims" - // The size, in pixels, of the screen texture incoming to the chain. - // Valid values: xy - // "u_rotation_type" - // This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270. - // Valid values: x - // "u_swap_xy" - // Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false. - // Valid values: x - // "u_quad_dims" - // The dimensions, in pixels, occupied by this one screen primitive itself in the output window. - // Valid values: xy - // "u_tex_sizeN" - // The dimensions, in pixels, of the texture in input pair N. Starts at 0. - // valid values: xy - "name": "s_tex", + "fragment": "chains/default/fs_blit", + + // uniforms (required): The list of uniforms for this effect. Can be empty, but must exist. + "uniforms": [ + { + // name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader. + // value: A string containing the name of the uniform as described above. + // + // NOTE: Some names correspond to special values that will be automatically filled by the BGFX + // code if they are used by the shader. These names are: + // "u_screen_dims" + // The dimensions of the first texture input if present, otherwise the dimensions of the output window. + // Valid values: xy + // "u_inv_screen_dims" + // The reciprocal of u_screen_dims. + // Valid values: xy + // "u_source_dims" + // The size, in pixels, of the screen texture incoming to the chain. + // Valid values: xy + // "u_rotation_type" + // This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270. + // Valid values: x + // "u_swap_xy" + // Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false. + // Valid values: x + // "u_quad_dims" + // The dimensions, in pixels, occupied by this one screen primitive itself in the output window. + // Valid values: xy + // "u_tex_sizeN" + // The dimensions, in pixels, of the texture in input pair N. Starts at 0. + // valid values: xy + "name": "s_tex", + + // type (required): The type of the uniform. + // values: "int", "vec4", "mat3", "mat4" + // + // Note: "int" should only be used for samplers. + "type": "int", - // type (required): The type of the uniform. - // values: "int", "vec4", "mat3", "mat4" - // - // Note: "int" should only be used for samplers. - "type": "int", - - // values (required): The array of numbers with which to initialize the uniform. - // value: A JSON array containin the correct amount of numbers to initialize a uniform of the - // above-specified type. The following size rules should be followed: - // "int": 1 float - // "vec4": 4 floats - // "mat3": 9 floats - // "mat4": 16 floats - "values": [ 1.0 ] - } - ] -}
\ No newline at end of file + // values (required): The array of numbers with which to initialize the uniform. + // value: A JSON array containin the correct amount of numbers to initialize a uniform of the + // above-specified type. The following size rules should be followed: + // "int": 1 float + // "vec4": 4 floats + // "mat3": 9 floats + // "mat4": 16 floats + "values": [ 1.0 ] + } + ] +} diff --git a/bgfx/effects/eagle/supereagle.json b/bgfx/effects/eagle/supereagle.json index cd209b7cd80..ec919828d5c 100644 --- a/bgfx/effects/eagle/supereagle.json +++ b/bgfx/effects/eagle/supereagle.json @@ -5,31 +5,31 @@ /* Copied from the Dosbox source code */ /* Copyright (C) 2002-2007 The DOSBox Team */ /* License: GNU-GPL */ -/* Adapted by guest(r) on 16.4.2007 */ +/* Adapted by guest(r) on 16.4.2007 */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/eagle/vs_eagle", - "fragment": "chains/eagle/fs_eagle", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "LUT", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/eagle/vs_eagle", + "fragment": "chains/eagle/fs_eagle", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "LUT", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/gui_add.json b/bgfx/effects/gui_add.json index bff6517b739..8b5da4998a1 100644 --- a/bgfx/effects/gui_add.json +++ b/bgfx/effects/gui_add.json @@ -7,24 +7,24 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1", - "srcAlpha": "srcalpha", - "dstAlpha": "1" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "vs_gui", - "fragment": "fs_gui", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1", + "srcAlpha": "srcalpha", + "dstAlpha": "1" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "vs_gui", + "fragment": "fs_gui", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] } + ] +} diff --git a/bgfx/effects/gui_blend.json b/bgfx/effects/gui_blend.json index 2ef99b816e7..9cf160ac6ba 100644 --- a/bgfx/effects/gui_blend.json +++ b/bgfx/effects/gui_blend.json @@ -7,24 +7,24 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "vs_gui", - "fragment": "fs_gui", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "vs_gui", + "fragment": "fs_gui", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] } + ] +} diff --git a/bgfx/effects/gui_multiply.json b/bgfx/effects/gui_multiply.json index 14551be8190..15ac24c91a9 100644 --- a/bgfx/effects/gui_multiply.json +++ b/bgfx/effects/gui_multiply.json @@ -7,24 +7,24 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "dstcolor", - "dstColor": "0", - "srcAlpha": "dstalpha", - "dstAlpha": "0" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "vs_gui", - "fragment": "fs_gui", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "dstcolor", + "dstColor": "0", + "srcAlpha": "dstalpha", + "dstAlpha": "0" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "vs_gui", + "fragment": "fs_gui", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] } + ] +} diff --git a/bgfx/effects/gui_opaque.json b/bgfx/effects/gui_opaque.json index 53e6f732828..51f0941c89f 100644 --- a/bgfx/effects/gui_opaque.json +++ b/bgfx/effects/gui_opaque.json @@ -6,24 +6,24 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "vs_gui", - "fragment": "fs_gui", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "vs_gui", + "fragment": "fs_gui", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] } + ] +} diff --git a/bgfx/effects/hlsl/blit.json b/bgfx/effects/hlsl/blit.json index 1ee3243050f..1fdfd623638 100644 --- a/bgfx/effects/hlsl/blit.json +++ b/bgfx/effects/hlsl/blit.json @@ -7,115 +7,115 @@ //============================================================ { // blend (required): The blend state for this effect. - "blend": { - // equation (optional): What equation to perform on the source and destination blend values. - // values: "add", "sub", "revSub", "min", "max" - // default: "add" - // - // "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub" - "equation": "add", - - // blend function parameters (optional): What factors to use in the blend function when calculating the final pixel. - // values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha" - // defaults (srcColor, srcAlpha): "1" - // defaults (dstColor, dstAlpha): "0" - // - // "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha" - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - - // depth (required): The depth state for this effect. - "depth": { - // function (optional): The depth function to use when drawing. - // values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always" - // default: "always" - "function": "always", - - // writeenable (optional): Whether to store Z-buffer data. - // values: true, false - // default: false - "writeenable": false - }, - - // cull (required): The cull mode for this effect. - "cull": { - // mode (optional): What winding, if any, to cull. - // values: "none", "cw", "ccw" - // default: "ccw" - // - // "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw" - "mode": "none" - }, - - // write (required): Write enable for color and alpha channels. - "write": { - // rgb (optional): Whether to store color data when drawing. - // values: true, false - // default: false - "rgb": true, + "blend": { + // equation (optional): What equation to perform on the source and destination blend values. + // values: "add", "sub", "revSub", "min", "max" + // default: "add" + // + // "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub" + "equation": "add", - // alpha (optional): Whether to store alpha data when drawing. - // values: true, false - // default: false - "alpha": true - }, + // blend function parameters (optional): What factors to use in the blend function when calculating the final pixel. + // values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha" + // defaults (srcColor, srcAlpha): "1" + // defaults (dstColor, dstAlpha): "0" + // + // "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha" + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + + // depth (required): The depth state for this effect. + "depth": { + // function (optional): The depth function to use when drawing. + // values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always" + // default: "always" + "function": "always", + + // writeenable (optional): Whether to store Z-buffer data. + // values: true, false + // default: false + "writeenable": false + }, + + // cull (required): The cull mode for this effect. + "cull": { + // mode (optional): What winding, if any, to cull. + // values: "none", "cw", "ccw" + // default: "ccw" + // + // "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw" + "mode": "none" + }, + + // write (required): Write enable for color and alpha channels. + "write": { + // rgb (optional): Whether to store color data when drawing. + // values: true, false + // default: false + "rgb": true, + + // alpha (optional): Whether to store alpha data when drawing. + // values: true, false + // default: false + "alpha": true + }, // vertex (required): The vertex shader to use when drawing. // value: A string containing the path and name of a shader file to use, minus the extension. - "vertex": "chains/hlsl/vs_blit", + "vertex": "chains/hlsl/vs_blit", // pixel/fragment (required): The pixel or fragment shader to use when drawing. // value: A string containing the path and name of a shader file to use, minus the extension. - "fragment": "chains/hlsl/fs_blit", - - // uniforms (required): The list of uniforms for this effect. Can be empty, but must exist. - "uniforms": [ - { - // name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader. - // value: A string containing the name of the uniform as described above. - // - // NOTE: Some names correspond to special values that will be automatically filled by the BGFX - // code if they are used by the shader. These names are: - // "u_screen_dims" - // The dimensions of the first texture input if present, otherwise the dimensions of the output window. - // Valid values: xy - // "u_inv_screen_dims" - // The reciprocal of u_screen_dims. - // Valid values: xy - // "u_source_dims" - // The size, in pixels, of the screen texture incoming to the chain. - // Valid values: xy - // "u_rotation_type" - // This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270. - // Valid values: x - // "u_swap_xy" - // Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false. - // Valid values: x - // "u_quad_dims" - // The dimensions, in pixels, occupied by this one screen primitive itself in the output window. - // Valid values: xy - // "u_tex_sizeN" - // The dimensions, in pixels, of the texture in input pair N. Starts at 0. - // valid values: xy - "name": "s_tex", + "fragment": "chains/hlsl/fs_blit", + + // uniforms (required): The list of uniforms for this effect. Can be empty, but must exist. + "uniforms": [ + { + // name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader. + // value: A string containing the name of the uniform as described above. + // + // NOTE: Some names correspond to special values that will be automatically filled by the BGFX + // code if they are used by the shader. These names are: + // "u_screen_dims" + // The dimensions of the first texture input if present, otherwise the dimensions of the output window. + // Valid values: xy + // "u_inv_screen_dims" + // The reciprocal of u_screen_dims. + // Valid values: xy + // "u_source_dims" + // The size, in pixels, of the screen texture incoming to the chain. + // Valid values: xy + // "u_rotation_type" + // This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270. + // Valid values: x + // "u_swap_xy" + // Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false. + // Valid values: x + // "u_quad_dims" + // The dimensions, in pixels, occupied by this one screen primitive itself in the output window. + // Valid values: xy + // "u_tex_sizeN" + // The dimensions, in pixels, of the texture in input pair N. Starts at 0. + // valid values: xy + "name": "s_tex", + + // type (required): The type of the uniform. + // values: "int", "vec4", "mat3", "mat4" + // + // Note: "int" should only be used for samplers. + "type": "int", - // type (required): The type of the uniform. - // values: "int", "vec4", "mat3", "mat4" - // - // Note: "int" should only be used for samplers. - "type": "int", - - // values (required): The array of numbers with which to initialize the uniform. - // value: A JSON array containin the correct amount of numbers to initialize a uniform of the - // above-specified type. The following size rules should be followed: - // "int": 1 float - // "vec4": 4 floats - // "mat3": 9 floats - // "mat4": 16 floats - "values": [ 1.0 ] - } - ] -}
\ No newline at end of file + // values (required): The array of numbers with which to initialize the uniform. + // value: A JSON array containin the correct amount of numbers to initialize a uniform of the + // above-specified type. The following size rules should be followed: + // "int": 1 float + // "vec4": 4 floats + // "mat3": 9 floats + // "mat4": 16 floats + "values": [ 1.0 ] + } + ] +} diff --git a/bgfx/effects/hlsl/chroma.json b/bgfx/effects/hlsl/chroma.json index 6f7879cdc48..96bae4475f8 100644 --- a/bgfx/effects/hlsl/chroma.json +++ b/bgfx/effects/hlsl/chroma.json @@ -6,28 +6,28 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hlsl/vs_chroma", - "fragment": "chains/hlsl/fs_chroma", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 0.0 ] }, - { "name": "u_y_gain", "type": "vec4", "values": [ 0.2124, 0.7011, 0.0866, 0.0 ] }, - { "name": "u_chroma_a", "type": "vec4", "values": [ 0.630, 0.340, 0.0, 0.0 ] }, - { "name": "u_chroma_b", "type": "vec4", "values": [ 0.310, 0.595, 0.0, 0.0 ] }, - { "name": "u_chroma_c", "type": "vec4", "values": [ 0.155, 0.070, 0.0, 0.0 ] } - ] + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hlsl/vs_chroma", + "fragment": "chains/hlsl/fs_chroma", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 0.0 ] }, + { "name": "u_y_gain", "type": "vec4", "values": [ 0.2124, 0.7011, 0.0866, 0.0 ] }, + { "name": "u_chroma_a", "type": "vec4", "values": [ 0.630, 0.340, 0.0, 0.0 ] }, + { "name": "u_chroma_b", "type": "vec4", "values": [ 0.310, 0.595, 0.0, 0.0 ] }, + { "name": "u_chroma_c", "type": "vec4", "values": [ 0.155, 0.070, 0.0, 0.0 ] } + ] } diff --git a/bgfx/effects/hlsl/color.json b/bgfx/effects/hlsl/color.json index 52ada823a6b..69743d6cab5 100644 --- a/bgfx/effects/hlsl/color.json +++ b/bgfx/effects/hlsl/color.json @@ -6,30 +6,30 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hlsl/vs_color", - "fragment": "chains/hlsl/fs_color", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_red_ratios", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_grn_ratios", "type": "vec4", "values": [ 0.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_blu_ratios", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 0.0 ] }, - { "name": "u_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_scale", "type": "vec4", "values": [ 0.95, 0.95, 0.95, 0.0 ] }, - { "name": "u_saturation", "type": "vec4", "values": [ 1.5, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hlsl/vs_color", + "fragment": "chains/hlsl/fs_color", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_red_ratios", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_grn_ratios", "type": "vec4", "values": [ 0.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_blu_ratios", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 0.0 ] }, + { "name": "u_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_scale", "type": "vec4", "values": [ 0.95, 0.95, 0.95, 0.0 ] }, + { "name": "u_saturation", "type": "vec4", "values": [ 1.5, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/hlsl/deconverge.json b/bgfx/effects/hlsl/deconverge.json index df20d8c5069..053bc078c64 100644 --- a/bgfx/effects/hlsl/deconverge.json +++ b/bgfx/effects/hlsl/deconverge.json @@ -7,31 +7,31 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hlsl/vs_deconverge", - "fragment": "chains/hlsl/fs_deconverge", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_source_size", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, - { "name": "u_converge_red", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, - { "name": "u_converge_green", "type": "vec4", "values": [ 0.0, 0.5, 0.0, 0.0 ] }, - { "name": "u_converge_blue", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_radial_converge_red", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_radial_converge_green", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_radial_converge_blue", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hlsl/vs_deconverge", + "fragment": "chains/hlsl/fs_deconverge", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_source_size", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, + { "name": "u_converge_red", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, + { "name": "u_converge_green", "type": "vec4", "values": [ 0.0, 0.5, 0.0, 0.0 ] }, + { "name": "u_converge_blue", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_radial_converge_red", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_radial_converge_green", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_radial_converge_blue", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/hlsl/defocus.json b/bgfx/effects/hlsl/defocus.json index c66408a0ca1..aa46ca0822b 100644 --- a/bgfx/effects/hlsl/defocus.json +++ b/bgfx/effects/hlsl/defocus.json @@ -6,26 +6,26 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hlsl/vs_defocus", - "fragment": "chains/hlsl/fs_defocus", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_defocus", "type": "vec4", "values": [ 0.5, 0.5, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hlsl/vs_defocus", + "fragment": "chains/hlsl/fs_defocus", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_defocus", "type": "vec4", "values": [ 0.5, 0.5, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/hlsl/distortion.json b/bgfx/effects/hlsl/distortion.json index b3b9b5a581a..4fc6fbc3dd5 100644 --- a/bgfx/effects/hlsl/distortion.json +++ b/bgfx/effects/hlsl/distortion.json @@ -7,37 +7,37 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hlsl/vs_distortion", - "fragment": "chains/hlsl/fs_distortion", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 0.0 ] }, - { "name": "u_swap_xy", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_screen_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_screen_count", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_target_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_target_scale", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_quad_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_distortion", "type": "vec4", "values": [ 0.20, 0.0, 0.0, 0.0 ] }, - { "name": "u_cubic_distortion", "type": "vec4", "values": [ 0.20, 0.0, 0.0, 0.0 ] }, - { "name": "u_distort_corner", "type": "vec4", "values": [ 0.20, 0.0, 0.0, 0.0 ] }, - { "name": "u_round_corner", "type": "vec4", "values": [ 0.20, 0.0, 0.0, 0.0 ] }, - { "name": "u_smooth_border", "type": "vec4", "values": [ 0.05, 0.0, 0.0, 0.0 ] }, - { "name": "u_vignetting", "type": "vec4", "values": [ 0.20, 0.0, 0.0, 0.0 ] }, - { "name": "u_reflection", "type": "vec4", "values": [ 0.30, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hlsl/vs_distortion", + "fragment": "chains/hlsl/fs_distortion", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 0.0 ] }, + { "name": "u_swap_xy", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_screen_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_screen_count", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_target_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_target_scale", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_quad_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_distortion", "type": "vec4", "values": [ 0.20, 0.0, 0.0, 0.0 ] }, + { "name": "u_cubic_distortion", "type": "vec4", "values": [ 0.20, 0.0, 0.0, 0.0 ] }, + { "name": "u_distort_corner", "type": "vec4", "values": [ 0.20, 0.0, 0.0, 0.0 ] }, + { "name": "u_round_corner", "type": "vec4", "values": [ 0.20, 0.0, 0.0, 0.0 ] }, + { "name": "u_smooth_border", "type": "vec4", "values": [ 0.05, 0.0, 0.0, 0.0 ] }, + { "name": "u_vignetting", "type": "vec4", "values": [ 0.20, 0.0, 0.0, 0.0 ] }, + { "name": "u_reflection", "type": "vec4", "values": [ 0.30, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/hlsl/ntsc_decode.json b/bgfx/effects/hlsl/ntsc_decode.json index bb18c3a2e56..039a94de4b5 100644 --- a/bgfx/effects/hlsl/ntsc_decode.json +++ b/bgfx/effects/hlsl/ntsc_decode.json @@ -7,37 +7,37 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hlsl/vs_ntsc_decode", - "fragment": "chains/hlsl/fs_ntsc_decode", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "s_screen", "type": "int", "values": [ 1.0 ] }, - { "name": "u_source_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_a_value", "type": "vec4", "values": [ 0.5, 0.5, 0.5, 0.5 ] }, - { "name": "u_b_value", "type": "vec4", "values": [ 0.5, 0.5, 0.5, 0.5 ] }, - { "name": "u_cc_value", "type": "vec4", "values": [ 3.5795454, 3.5795454, 3.5795454, 3.5795454 ] }, - { "name": "u_o_value", "type": "vec4", "values": [ 1.570796325, 1.570796325, 1.570796325, 1.570796325 ] }, - { "name": "u_scan_time", "type": "vec4", "values": [ 52.6, 0.0, 0.0, 0.0 ] }, - { "name": "u_notch_width", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_y_freq_response", "type": "vec4", "values": [ 6.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_i_freq_response", "type": "vec4", "values": [ 1.2, 0.0, 0.0, 0.0 ] }, - { "name": "u_q_freq_response", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, - { "name": "u_jitter_amount", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_jitter_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hlsl/vs_ntsc_decode", + "fragment": "chains/hlsl/fs_ntsc_decode", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "s_screen", "type": "int", "values": [ 1.0 ] }, + { "name": "u_source_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_a_value", "type": "vec4", "values": [ 0.5, 0.5, 0.5, 0.5 ] }, + { "name": "u_b_value", "type": "vec4", "values": [ 0.5, 0.5, 0.5, 0.5 ] }, + { "name": "u_cc_value", "type": "vec4", "values": [ 3.5795454, 3.5795454, 3.5795454, 3.5795454 ] }, + { "name": "u_o_value", "type": "vec4", "values": [ 1.570796325, 1.570796325, 1.570796325, 1.570796325 ] }, + { "name": "u_scan_time", "type": "vec4", "values": [ 52.6, 0.0, 0.0, 0.0 ] }, + { "name": "u_notch_width", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_y_freq_response", "type": "vec4", "values": [ 6.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_i_freq_response", "type": "vec4", "values": [ 1.2, 0.0, 0.0, 0.0 ] }, + { "name": "u_q_freq_response", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, + { "name": "u_jitter_amount", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_jitter_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/hlsl/ntsc_encode.json b/bgfx/effects/hlsl/ntsc_encode.json index 694dce91fd9..71ef588ceaa 100644 --- a/bgfx/effects/hlsl/ntsc_encode.json +++ b/bgfx/effects/hlsl/ntsc_encode.json @@ -7,32 +7,32 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hlsl/vs_ntsc_encode", - "fragment": "chains/hlsl/fs_ntsc_encode", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_source_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_a_value", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, - { "name": "u_b_value", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, - { "name": "u_cc_value", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, - { "name": "u_p_value", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_scan_time", "type": "vec4", "values": [ 52.6, 0.0, 0.0, 0.0 ] }, - { "name": "u_jitter_amount", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_jitter_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hlsl/vs_ntsc_encode", + "fragment": "chains/hlsl/fs_ntsc_encode", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_source_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_a_value", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, + { "name": "u_b_value", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, + { "name": "u_cc_value", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, + { "name": "u_p_value", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_scan_time", "type": "vec4", "values": [ 52.6, 0.0, 0.0, 0.0 ] }, + { "name": "u_jitter_amount", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_jitter_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/hlsl/phosphor.json b/bgfx/effects/hlsl/phosphor.json index f5d9d8572e3..7209c98891d 100644 --- a/bgfx/effects/hlsl/phosphor.json +++ b/bgfx/effects/hlsl/phosphor.json @@ -7,27 +7,27 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hlsl/vs_phosphor", - "fragment": "chains/hlsl/fs_phosphor", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "s_prev", "type": "int", "values": [ 1.0 ] }, - { "name": "u_passthrough", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_phosphor", "type": "vec4", "values": [ 0.7, 0.7, 0.7, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hlsl/vs_phosphor", + "fragment": "chains/hlsl/fs_phosphor", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "s_prev", "type": "int", "values": [ 1.0 ] }, + { "name": "u_passthrough", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_phosphor", "type": "vec4", "values": [ 0.7, 0.7, 0.7, 0.0 ] } + ] +} diff --git a/bgfx/effects/hlsl/prescale.json b/bgfx/effects/hlsl/prescale.json index e58d5ad92dc..cbe684321cf 100644 --- a/bgfx/effects/hlsl/prescale.json +++ b/bgfx/effects/hlsl/prescale.json @@ -7,26 +7,26 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hlsl/vs_prescale", - "fragment": "chains/hlsl/fs_prescale", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_source_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hlsl/vs_prescale", + "fragment": "chains/hlsl/fs_prescale", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_source_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/hlsl/scanline.json b/bgfx/effects/hlsl/scanline.json index 7f4f188c202..07ff15546f3 100644 --- a/bgfx/effects/hlsl/scanline.json +++ b/bgfx/effects/hlsl/scanline.json @@ -6,39 +6,39 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hlsl/vs_scanline", - "fragment": "chains/hlsl/fs_scanline", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 0.0 ] }, - { "name": "u_swap_xy", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_source_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, - { "name": "u_target_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, - { "name": "u_quad_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, - { "name": "u_time", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_screen_scale", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_screen_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_scanline_alpha", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_scanline_scale", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_scanline_bright_scale", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_scanline_bright_offset", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_scanline_jitter", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_scanline_height", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_scanline_variation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_jitter_amount", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hlsl/vs_scanline", + "fragment": "chains/hlsl/fs_scanline", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 0.0 ] }, + { "name": "u_swap_xy", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_source_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, + { "name": "u_target_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, + { "name": "u_quad_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, + { "name": "u_time", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_screen_scale", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_screen_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_scanline_alpha", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_scanline_scale", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_scanline_bright_scale", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_scanline_bright_offset", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_scanline_jitter", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_scanline_height", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_scanline_variation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_jitter_amount", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/hqx/hq2x.json b/bgfx/effects/hqx/hq2x.json index 267339da988..315603820ff 100644 --- a/bgfx/effects/hqx/hq2x.json +++ b/bgfx/effects/hqx/hq2x.json @@ -1,29 +1,29 @@ // license:LGPL-2.1+ // copyright-holders:Jules Blok,Cameron Zemek,Maxim Stepin { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hqx/vs_hq2x", - "fragment": "chains/hqx/fs_hq2x", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "LUT", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hqx/vs_hq2x", + "fragment": "chains/hqx/fs_hq2x", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "LUT", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/hqx/hq3x.json b/bgfx/effects/hqx/hq3x.json index 15fa50517a3..5a578eb931f 100644 --- a/bgfx/effects/hqx/hq3x.json +++ b/bgfx/effects/hqx/hq3x.json @@ -1,29 +1,29 @@ // license:LGPL-2.1+ // copyright-holders:Jules Blok,Cameron Zemek,Maxim Stepin { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hqx/vs_hq3x", - "fragment": "chains/hqx/fs_hq3x", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "LUT", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hqx/vs_hq3x", + "fragment": "chains/hqx/fs_hq3x", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "LUT", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/hqx/hq4x.json b/bgfx/effects/hqx/hq4x.json index a2e61b3ae09..6fe7803dc3f 100644 --- a/bgfx/effects/hqx/hq4x.json +++ b/bgfx/effects/hqx/hq4x.json @@ -1,29 +1,29 @@ // license:LGPL-2.1+ // copyright-holders:Jules Blok,Cameron Zemek,Maxim Stepin { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/hqx/vs_hq4x", - "fragment": "chains/hqx/fs_hq4x", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "LUT", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/hqx/vs_hq4x", + "fragment": "chains/hqx/fs_hq4x", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "LUT", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/lcd-grid/lcd-grid.json b/bgfx/effects/lcd-grid/lcd-grid.json index 4526a101aaf..5b465d5cf7b 100644 --- a/bgfx/effects/lcd-grid/lcd-grid.json +++ b/bgfx/effects/lcd-grid/lcd-grid.json @@ -1,37 +1,37 @@ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/lcd-grid/vs_lcd-grid", - "fragment": "chains/lcd-grid/fs_lcd-grid", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_quad_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_rsubpix", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_gsubpix", "type": "vec4", "values": [ 0.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_bsubpix", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 0.0 ] }, - { "name": "u_gain", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_blacklevel","type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_ambient", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_BGR", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_subpixsize","type": "vec4", "values": [ 0.5, 0.63, 0.0, 0.0 ] }, - { "name": "u_LCDgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] }, - { "name": "u_monitorgamma","type":"vec4","values": [ 2.2, 0.0, 0.0, 0.0 ] } - ] + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/lcd-grid/vs_lcd-grid", + "fragment": "chains/lcd-grid/fs_lcd-grid", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_quad_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_rsubpix", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_gsubpix", "type": "vec4", "values": [ 0.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_bsubpix", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 0.0 ] }, + { "name": "u_gain", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_blacklevel","type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_ambient", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_BGR", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_subpixsize","type": "vec4", "values": [ 0.5, 0.63, 0.0, 0.0 ] }, + { "name": "u_LCDgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] }, + { "name": "u_monitorgamma","type":"vec4","values": [ 2.2, 0.0, 0.0, 0.0 ] } + ] } diff --git a/bgfx/effects/lcd-grid/persistence.json b/bgfx/effects/lcd-grid/persistence.json index 27c8109c8c1..1f4e57c7587 100644 --- a/bgfx/effects/lcd-grid/persistence.json +++ b/bgfx/effects/lcd-grid/persistence.json @@ -1,27 +1,27 @@ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/lcd-grid/vs_persistence", - "fragment": "chains/lcd-grid/fs_persistence", - "uniforms": [ - { "name": "s_screen", "type": "int", "values": [ 0 ] }, - { "name": "s_motionblur","type": "int", "values": [ 1 ] }, - { "name": "u_persistence","type":"vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } - ] + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/lcd-grid/vs_persistence", + "fragment": "chains/lcd-grid/fs_persistence", + "uniforms": [ + { "name": "s_screen", "type": "int", "values": [ 0 ] }, + { "name": "s_motionblur", "type": "int", "values": [ 1 ] }, + { "name": "u_persistence","type":"vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } + ] } diff --git a/bgfx/effects/misc/bcg_adjust.json b/bgfx/effects/misc/bcg_adjust.json index 545910e5224..35c9595e309 100644 --- a/bgfx/effects/misc/bcg_adjust.json +++ b/bgfx/effects/misc/bcg_adjust.json @@ -6,21 +6,21 @@ // //=============================================================== { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { "function": "always", "writeenable": false }, - "cull": { "mode": "none" }, - "write": { "rgb": true, "alpha": true }, - "vertex": "chains/misc/vs_blit", - "fragment": "chains/misc/fs_blit_bcg", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "s_pal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { "function": "always", "writeenable": false }, + "cull": { "mode": "none" }, + "write": { "rgb": true, "alpha": true }, + "vertex": "chains/misc/vs_blit", + "fragment": "chains/misc/fs_blit_bcg", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "s_pal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/misc/blit.json b/bgfx/effects/misc/blit.json index 3fb849a1eed..a5e5c544336 100644 --- a/bgfx/effects/misc/blit.json +++ b/bgfx/effects/misc/blit.json @@ -7,115 +7,115 @@ //============================================================ { // blend (required): The blend state for this effect. - "blend": { - // equation (optional): What equation to perform on the source and destination blend values. - // values: "add", "sub", "revSub", "min", "max" - // default: "add" - // - // "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub" - "equation": "add", - - // blend function parameters (optional): What factors to use in the blend function when calculating the final pixel. - // values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha" - // defaults (srcColor, srcAlpha): "1" - // defaults (dstColor, dstAlpha): "0" - // - // "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha" - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - - // depth (required): The depth state for this effect. - "depth": { - // function (optional): The depth function to use when drawing. - // values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always" - // default: "always" - "function": "always", - - // writeenable (optional): Whether to store Z-buffer data. - // values: true, false - // default: false - "writeenable": false - }, - - // cull (required): The cull mode for this effect. - "cull": { - // mode (optional): What winding, if any, to cull. - // values: "none", "cw", "ccw" - // default: "ccw" - // - // "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw" - "mode": "none" - }, - - // write (required): Write enable for color and alpha channels. - "write": { - // rgb (optional): Whether to store color data when drawing. - // values: true, false - // default: false - "rgb": true, + "blend": { + // equation (optional): What equation to perform on the source and destination blend values. + // values: "add", "sub", "revSub", "min", "max" + // default: "add" + // + // "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub" + "equation": "add", - // alpha (optional): Whether to store alpha data when drawing. - // values: true, false - // default: false - "alpha": true - }, + // blend function parameters (optional): What factors to use in the blend function when calculating the final pixel. + // values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha" + // defaults (srcColor, srcAlpha): "1" + // defaults (dstColor, dstAlpha): "0" + // + // "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha" + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + + // depth (required): The depth state for this effect. + "depth": { + // function (optional): The depth function to use when drawing. + // values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always" + // default: "always" + "function": "always", + + // writeenable (optional): Whether to store Z-buffer data. + // values: true, false + // default: false + "writeenable": false + }, + + // cull (required): The cull mode for this effect. + "cull": { + // mode (optional): What winding, if any, to cull. + // values: "none", "cw", "ccw" + // default: "ccw" + // + // "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw" + "mode": "none" + }, + + // write (required): Write enable for color and alpha channels. + "write": { + // rgb (optional): Whether to store color data when drawing. + // values: true, false + // default: false + "rgb": true, + + // alpha (optional): Whether to store alpha data when drawing. + // values: true, false + // default: false + "alpha": true + }, // vertex (required): The vertex shader to use when drawing. // value: A string containing the path and name of a shader file to use, minus the extension. - "vertex": "chains/misc/vs_blit", + "vertex": "chains/misc/vs_blit", // pixel/fragment (required): The pixel or fragment shader to use when drawing. // value: A string containing the path and name of a shader file to use, minus the extension. - "fragment": "chains/misc/fs_blit", - - // uniforms (required): The list of uniforms for this effect. Can be empty, but must exist. - "uniforms": [ - { - // name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader. - // value: A string containing the name of the uniform as described above. - // - // NOTE: Some names correspond to special values that will be automatically filled by the BGFX - // code if they are used by the shader. These names are: - // "u_screen_dims" - // The dimensions of the first texture input if present, otherwise the dimensions of the output window. - // Valid values: xy - // "u_inv_screen_dims" - // The reciprocal of u_screen_dims. - // Valid values: xy - // "u_source_dims" - // The size, in pixels, of the screen texture incoming to the chain. - // Valid values: xy - // "u_rotation_type" - // This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270. - // Valid values: x - // "u_swap_xy" - // Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false. - // Valid values: x - // "u_quad_dims" - // The dimensions, in pixels, occupied by this one screen primitive itself in the output window. - // Valid values: xy - // "u_tex_sizeN" - // The dimensions, in pixels, of the texture in input pair N. Starts at 0. - // valid values: xy - "name": "s_tex", + "fragment": "chains/misc/fs_blit", + + // uniforms (required): The list of uniforms for this effect. Can be empty, but must exist. + "uniforms": [ + { + // name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader. + // value: A string containing the name of the uniform as described above. + // + // NOTE: Some names correspond to special values that will be automatically filled by the BGFX + // code if they are used by the shader. These names are: + // "u_screen_dims" + // The dimensions of the first texture input if present, otherwise the dimensions of the output window. + // Valid values: xy + // "u_inv_screen_dims" + // The reciprocal of u_screen_dims. + // Valid values: xy + // "u_source_dims" + // The size, in pixels, of the screen texture incoming to the chain. + // Valid values: xy + // "u_rotation_type" + // This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270. + // Valid values: x + // "u_swap_xy" + // Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false. + // Valid values: x + // "u_quad_dims" + // The dimensions, in pixels, occupied by this one screen primitive itself in the output window. + // Valid values: xy + // "u_tex_sizeN" + // The dimensions, in pixels, of the texture in input pair N. Starts at 0. + // valid values: xy + "name": "s_tex", + + // type (required): The type of the uniform. + // values: "int", "vec4", "mat3", "mat4" + // + // Note: "int" should only be used for samplers. + "type": "int", - // type (required): The type of the uniform. - // values: "int", "vec4", "mat3", "mat4" - // - // Note: "int" should only be used for samplers. - "type": "int", - - // values (required): The array of numbers with which to initialize the uniform. - // value: A JSON array containin the correct amount of numbers to initialize a uniform of the - // above-specified type. The following size rules should be followed: - // "int": 1 float - // "vec4": 4 floats - // "mat3": 9 floats - // "mat4": 16 floats - "values": [ 1.0 ] - } - ] -}
\ No newline at end of file + // values (required): The array of numbers with which to initialize the uniform. + // value: A JSON array containin the correct amount of numbers to initialize a uniform of the + // above-specified type. The following size rules should be followed: + // "int": 1 float + // "vec4": 4 floats + // "mat3": 9 floats + // "mat4": 16 floats + "values": [ 1.0 ] + } + ] +} diff --git a/bgfx/effects/misc/blit_palette16.json b/bgfx/effects/misc/blit_palette16.json index 1f1e1747b78..e0eb7f09140 100644 --- a/bgfx/effects/misc/blit_palette16.json +++ b/bgfx/effects/misc/blit_palette16.json @@ -7,119 +7,119 @@ //============================================================ { // blend (required): The blend state for this effect. - "blend": { - // equation (optional): What equation to perform on the source and destination blend values. - // values: "add", "sub", "revSub", "min", "max" - // default: "add" - // - // "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub" - "equation": "add", - - // blend function parameters (optional): What factors to use in the blend function when calculating the final pixel. - // values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha" - // defaults (srcColor, srcAlpha): "1" - // defaults (dstColor, dstAlpha): "0" - // - // "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha" - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - - // depth (required): The depth state for this effect. - "depth": { - // function (optional): The depth function to use when drawing. - // values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always" - // default: "always" - "function": "always", - - // writeenable (optional): Whether to store Z-buffer data. - // values: true, false - // default: false - "writeenable": false - }, - - // cull (required): The cull mode for this effect. - "cull": { - // mode (optional): What winding, if any, to cull. - // values: "none", "cw", "ccw" - // default: "ccw" - // - // "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw" - "mode": "none" - }, - - // write (required): Write enable for color and alpha channels. - "write": { - // rgb (optional): Whether to store color data when drawing. - // values: true, false - // default: false - "rgb": true, + "blend": { + // equation (optional): What equation to perform on the source and destination blend values. + // values: "add", "sub", "revSub", "min", "max" + // default: "add" + // + // "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub" + "equation": "add", - // alpha (optional): Whether to store alpha data when drawing. - // values: true, false - // default: false - "alpha": true - }, + // blend function parameters (optional): What factors to use in the blend function when calculating the final pixel. + // values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha" + // defaults (srcColor, srcAlpha): "1" + // defaults (dstColor, dstAlpha): "0" + // + // "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha" + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + + // depth (required): The depth state for this effect. + "depth": { + // function (optional): The depth function to use when drawing. + // values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always" + // default: "always" + "function": "always", + + // writeenable (optional): Whether to store Z-buffer data. + // values: true, false + // default: false + "writeenable": false + }, + + // cull (required): The cull mode for this effect. + "cull": { + // mode (optional): What winding, if any, to cull. + // values: "none", "cw", "ccw" + // default: "ccw" + // + // "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw" + "mode": "none" + }, + + // write (required): Write enable for color and alpha channels. + "write": { + // rgb (optional): Whether to store color data when drawing. + // values: true, false + // default: false + "rgb": true, + + // alpha (optional): Whether to store alpha data when drawing. + // values: true, false + // default: false + "alpha": true + }, // vertex (required): The vertex shader to use when drawing. // value: A string containing the path and name of a shader file to use, minus the extension. - "vertex": "chains/misc/vs_blit", + "vertex": "chains/misc/vs_blit", // pixel/fragment (required): The pixel or fragment shader to use when drawing. // value: A string containing the path and name of a shader file to use, minus the extension. - "fragment": "chains/misc/fs_blit_palette16", - - // uniforms (required): The list of uniforms for this effect. Can be empty, but must exist. - "uniforms": [ - { - // name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader. - // value: A string containing the name of the uniform as described above. - // - // NOTE: Some names correspond to special values that will be automatically filled by the BGFX - // code if they are used by the shader. These names are: - // "u_screen_dims" - // The dimensions of the first texture input if present, otherwise the dimensions of the output window. - // Valid values: xy - // "u_inv_screen_dims" - // The reciprocal of u_screen_dims. - // Valid values: xy - // "u_source_dims" - // The size, in pixels, of the screen texture incoming to the chain. - // Valid values: xy - // "u_rotation_type" - // This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270. - // Valid values: x - // "u_swap_xy" - // Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false. - // Valid values: x - // "u_quad_dims" - // The dimensions, in pixels, occupied by this one screen primitive itself in the output window. - // Valid values: xy - // "u_tex_sizeN" - // The dimensions, in pixels, of the texture in input pair N. Starts at 0. - // valid values: xy - "name": "s_tex", + "fragment": "chains/misc/fs_blit_palette16", + + // uniforms (required): The list of uniforms for this effect. Can be empty, but must exist. + "uniforms": [ + { + // name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader. + // value: A string containing the name of the uniform as described above. + // + // NOTE: Some names correspond to special values that will be automatically filled by the BGFX + // code if they are used by the shader. These names are: + // "u_screen_dims" + // The dimensions of the first texture input if present, otherwise the dimensions of the output window. + // Valid values: xy + // "u_inv_screen_dims" + // The reciprocal of u_screen_dims. + // Valid values: xy + // "u_source_dims" + // The size, in pixels, of the screen texture incoming to the chain. + // Valid values: xy + // "u_rotation_type" + // This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270. + // Valid values: x + // "u_swap_xy" + // Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false. + // Valid values: x + // "u_quad_dims" + // The dimensions, in pixels, occupied by this one screen primitive itself in the output window. + // Valid values: xy + // "u_tex_sizeN" + // The dimensions, in pixels, of the texture in input pair N. Starts at 0. + // valid values: xy + "name": "s_tex", + + // type (required): The type of the uniform. + // values: "int", "vec4", "mat3", "mat4" + // + // Note: "int" should only be used for samplers. + "type": "int", - // type (required): The type of the uniform. - // values: "int", "vec4", "mat3", "mat4" - // - // Note: "int" should only be used for samplers. - "type": "int", - - // values (required): The array of numbers with which to initialize the uniform. - // value: A JSON array containin the correct amount of numbers to initialize a uniform of the - // above-specified type. The following size rules should be followed: - // "int": 1 float - // "vec4": 4 floats - // "mat3": 9 floats - // "mat4": 16 floats - "values": [ 1.0 ] - }, - { "name": "s_pal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + // values (required): The array of numbers with which to initialize the uniform. + // value: A JSON array containin the correct amount of numbers to initialize a uniform of the + // above-specified type. The following size rules should be followed: + // "int": 1 float + // "vec4": 4 floats + // "mat3": 9 floats + // "mat4": 16 floats + "values": [ 1.0 ] + }, + { "name": "s_pal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/misc/deposterize-pass0.json b/bgfx/effects/misc/deposterize-pass0.json index 73fac99de3c..c5e8efe9fc2 100644 --- a/bgfx/effects/misc/deposterize-pass0.json +++ b/bgfx/effects/misc/deposterize-pass0.json @@ -3,35 +3,35 @@ /* Hyllian's Deposterize Shader - Pass0 - + Copyright (C) 2011/2016 Hyllian/Jararaca - sergiogdb@gmail.com */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/misc/vs_deposterize-pass0", - "fragment": "chains/misc/fs_deposterize-pass0", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "EQ_THRESH1", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] }, - { "name": "DIFF_THRESH1", "type": "vec4", "values": [ 0.06, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/misc/vs_deposterize-pass0", + "fragment": "chains/misc/fs_deposterize-pass0", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "EQ_THRESH1", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] }, + { "name": "DIFF_THRESH1", "type": "vec4", "values": [ 0.06, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/misc/deposterize-pass1.json b/bgfx/effects/misc/deposterize-pass1.json index 6a62aa36753..3b7be7e9e12 100644 --- a/bgfx/effects/misc/deposterize-pass1.json +++ b/bgfx/effects/misc/deposterize-pass1.json @@ -3,35 +3,35 @@ /* Hyllian's Deposterize Shader - Pass1 - + Copyright (C) 2011/2016 Hyllian/Jararaca - sergiogdb@gmail.com */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/misc/vs_deposterize-pass1", - "fragment": "chains/misc/fs_deposterize-pass1", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "EQ_THRESH2", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] }, - { "name": "DIFF_THRESH2", "type": "vec4", "values": [ 0.06, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/misc/vs_deposterize-pass1", + "fragment": "chains/misc/fs_deposterize-pass1", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "EQ_THRESH2", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] }, + { "name": "DIFF_THRESH2", "type": "vec4", "values": [ 0.06, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/misc/lut.json b/bgfx/effects/misc/lut.json index fede670f016..eda8224ec2a 100644 --- a/bgfx/effects/misc/lut.json +++ b/bgfx/effects/misc/lut.json @@ -1,10 +1,10 @@ { "blend": { "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" }, "depth": { "function": "always" diff --git a/bgfx/effects/misc/saturation.json b/bgfx/effects/misc/saturation.json index 1708dcee6d4..bdd8fe1e6e2 100644 --- a/bgfx/effects/misc/saturation.json +++ b/bgfx/effects/misc/saturation.json @@ -6,25 +6,25 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/misc/vs_saturation", - "fragment": "chains/misc/fs_saturation", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/misc/vs_saturation", + "fragment": "chains/misc/fs_saturation", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/misc/texconv_palette16.json b/bgfx/effects/misc/texconv_palette16.json index 57d95e91fce..a9cee2d3f16 100644 --- a/bgfx/effects/misc/texconv_palette16.json +++ b/bgfx/effects/misc/texconv_palette16.json @@ -6,23 +6,23 @@ // //=============================================================== { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { "function": "always", "writeenable": false }, - "cull": { "mode": "none" }, - "write": { "rgb": true, "alpha": true }, - "vertex": "chains/misc/vs_blit", - "fragment": "chains/misc/fs_blit_palette16", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "s_pal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { "function": "always", "writeenable": false }, + "cull": { "mode": "none" }, + "write": { "rgb": true, "alpha": true }, + "vertex": "chains/misc/vs_blit", + "fragment": "chains/misc/fs_blit_palette16", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "s_pal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/misc/texconv_rgb32.json b/bgfx/effects/misc/texconv_rgb32.json index 9522eabf720..076175d7782 100644 --- a/bgfx/effects/misc/texconv_rgb32.json +++ b/bgfx/effects/misc/texconv_rgb32.json @@ -6,20 +6,20 @@ // //=============================================================== { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { "function": "always", "writeenable": false }, - "cull": { "mode": "none" }, - "write": { "rgb": true, "alpha": true }, - "vertex": "chains/misc/vs_blit", - "fragment": "chains/misc/fs_blit_rgb32", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "s_pal", "type": "int", "values": [ 1.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { "function": "always", "writeenable": false }, + "cull": { "mode": "none" }, + "write": { "rgb": true, "alpha": true }, + "vertex": "chains/misc/vs_blit", + "fragment": "chains/misc/fs_blit_rgb32", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "s_pal", "type": "int", "values": [ 1.0 ] } + ] +} diff --git a/bgfx/effects/misc/texconv_yuy16.json b/bgfx/effects/misc/texconv_yuy16.json index 76ae99bfe7e..b46f996c9c2 100644 --- a/bgfx/effects/misc/texconv_yuy16.json +++ b/bgfx/effects/misc/texconv_yuy16.json @@ -7,21 +7,21 @@ // //=============================================================== { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { "function": "always", "writeenable": false }, - "cull": { "mode": "none" }, - "write": { "rgb": true, "alpha": true }, - "vertex": "chains/misc/vs_blit", - "fragment": "chains/misc/fs_blit_yuy16", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { "function": "always", "writeenable": false }, + "cull": { "mode": "none" }, + "write": { "rgb": true, "alpha": true }, + "vertex": "chains/misc/vs_blit", + "fragment": "chains/misc/fs_blit_yuy16", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/pillarbox_left_horizontal/gaussian.json b/bgfx/effects/pillarbox_left_horizontal/gaussian.json index 4eda0b9b368..b7c2a228c53 100644 --- a/bgfx/effects/pillarbox_left_horizontal/gaussian.json +++ b/bgfx/effects/pillarbox_left_horizontal/gaussian.json @@ -6,27 +6,27 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/pillarbox_left_horizontal/vs_gaussian", - "fragment": "chains/pillarbox_left_horizontal/fs_gaussian", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/pillarbox_left_horizontal/vs_gaussian", + "fragment": "chains/pillarbox_left_horizontal/fs_gaussian", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/pillarbox_left_horizontal/offset_sat.json b/bgfx/effects/pillarbox_left_horizontal/offset_sat.json index b68e91cb8bc..2244741f8cc 100644 --- a/bgfx/effects/pillarbox_left_horizontal/offset_sat.json +++ b/bgfx/effects/pillarbox_left_horizontal/offset_sat.json @@ -3,32 +3,32 @@ //============================================================ // // offset_sat.json: Applies saturation to an image. -// +// // Additionally, takes only a portion of the image, as // this instance is intended for the left-hand pillarbox // when displaying 4:3 content on a 16:9 screen. // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/pillarbox_left_horizontal/vs_offset_sat", - "fragment": "chains/pillarbox_left_horizontal/fs_offset_sat", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/pillarbox_left_horizontal/vs_offset_sat", + "fragment": "chains/pillarbox_left_horizontal/fs_offset_sat", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/pillarbox_left_vertical/gaussian.json b/bgfx/effects/pillarbox_left_vertical/gaussian.json index 1db78806595..497a8421e29 100644 --- a/bgfx/effects/pillarbox_left_vertical/gaussian.json +++ b/bgfx/effects/pillarbox_left_vertical/gaussian.json @@ -6,27 +6,27 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/pillarbox_left_vertical/vs_gaussian", - "fragment": "chains/pillarbox_left_vertical/fs_gaussian", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/pillarbox_left_vertical/vs_gaussian", + "fragment": "chains/pillarbox_left_vertical/fs_gaussian", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/pillarbox_left_vertical/offset_sat.json b/bgfx/effects/pillarbox_left_vertical/offset_sat.json index 521bcc88064..19c6a141db7 100644 --- a/bgfx/effects/pillarbox_left_vertical/offset_sat.json +++ b/bgfx/effects/pillarbox_left_vertical/offset_sat.json @@ -3,32 +3,32 @@ //============================================================ // // offset_sat.json: Applies saturation to an image. -// +// // Additionally, takes only a portion of the image, as // this instance is intended for the left-hand pillarbox // when displaying 3:4 content on a 16:9 screen. // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/pillarbox_left_vertical/vs_offset_sat", - "fragment": "chains/pillarbox_left_vertical/fs_offset_sat", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/pillarbox_left_vertical/vs_offset_sat", + "fragment": "chains/pillarbox_left_vertical/fs_offset_sat", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/pillarbox_right_horizontal/gaussian.json b/bgfx/effects/pillarbox_right_horizontal/gaussian.json index f19af39dd71..855d79cbdb5 100644 --- a/bgfx/effects/pillarbox_right_horizontal/gaussian.json +++ b/bgfx/effects/pillarbox_right_horizontal/gaussian.json @@ -6,27 +6,27 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/pillarbox_right_horizontal/vs_gaussian", - "fragment": "chains/pillarbox_right_horizontal/fs_gaussian", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/pillarbox_right_horizontal/vs_gaussian", + "fragment": "chains/pillarbox_right_horizontal/fs_gaussian", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/pillarbox_right_horizontal/offset_sat.json b/bgfx/effects/pillarbox_right_horizontal/offset_sat.json index 019161b2cd8..75165c63625 100644 --- a/bgfx/effects/pillarbox_right_horizontal/offset_sat.json +++ b/bgfx/effects/pillarbox_right_horizontal/offset_sat.json @@ -3,32 +3,32 @@ //============================================================ // // offset_sat.json: Applies saturation to an image. -// +// // Additionally, takes only a portion of the image, as // this instance is intended for the right-hand pillarbox // when displaying 4:3 content on a 16:9 screen. // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/pillarbox_right_horizontal/vs_offset_sat", - "fragment": "chains/pillarbox_right_horizontal/fs_offset_sat", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/pillarbox_right_horizontal/vs_offset_sat", + "fragment": "chains/pillarbox_right_horizontal/fs_offset_sat", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/pillarbox_right_vertical/gaussian.json b/bgfx/effects/pillarbox_right_vertical/gaussian.json index b96c5b521e9..a07622b34eb 100644 --- a/bgfx/effects/pillarbox_right_vertical/gaussian.json +++ b/bgfx/effects/pillarbox_right_vertical/gaussian.json @@ -6,27 +6,27 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/pillarbox_right_vertical/vs_gaussian", - "fragment": "chains/pillarbox_right_vertical/fs_gaussian", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/pillarbox_right_vertical/vs_gaussian", + "fragment": "chains/pillarbox_right_vertical/fs_gaussian", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/pillarbox_right_vertical/offset_sat.json b/bgfx/effects/pillarbox_right_vertical/offset_sat.json index 66fab42c3e9..516c1b6be98 100644 --- a/bgfx/effects/pillarbox_right_vertical/offset_sat.json +++ b/bgfx/effects/pillarbox_right_vertical/offset_sat.json @@ -3,32 +3,32 @@ //============================================================ // // offset_sat.json: Applies saturation to an image. -// +// // Additionally, takes only a portion of the image, as // this instance is intended for the right-hand pillarbox // when displaying 3:4 content on a 16:9 screen. // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/pillarbox_right_vertical/vs_offset_sat", - "fragment": "chains/pillarbox_right_vertical/fs_offset_sat", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/pillarbox_right_vertical/vs_offset_sat", + "fragment": "chains/pillarbox_right_vertical/fs_offset_sat", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/screen_add.json b/bgfx/effects/screen_add.json index ed1d6aae00c..e1603f53507 100644 --- a/bgfx/effects/screen_add.json +++ b/bgfx/effects/screen_add.json @@ -8,25 +8,25 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1", - "srcAlpha": "srcalpha", - "dstAlpha": "1" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "vs_screen", - "fragment": "fs_screen", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1", + "srcAlpha": "srcalpha", + "dstAlpha": "1" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "vs_screen", + "fragment": "fs_screen", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] } + ] +} diff --git a/bgfx/effects/screen_blend.json b/bgfx/effects/screen_blend.json index d10e119d23d..0b2226d3396 100644 --- a/bgfx/effects/screen_blend.json +++ b/bgfx/effects/screen_blend.json @@ -8,25 +8,25 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "vs_screen", - "fragment": "fs_screen", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] } + "blend": { + "equation": "add", + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "vs_screen", + "fragment": "fs_screen", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] } ] -}
\ No newline at end of file +} diff --git a/bgfx/effects/screen_multiply.json b/bgfx/effects/screen_multiply.json index feca7eb7ef0..93bfb90c358 100644 --- a/bgfx/effects/screen_multiply.json +++ b/bgfx/effects/screen_multiply.json @@ -8,25 +8,25 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "dstcolor", - "dstColor": "0", - "srcAlpha": "dstalpha", - "dstAlpha": "0" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "vs_screen", - "fragment": "fs_screen", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "dstcolor", + "dstColor": "0", + "srcAlpha": "dstalpha", + "dstAlpha": "0" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "vs_screen", + "fragment": "fs_screen", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] } + ] +} diff --git a/bgfx/effects/screen_opaque.json b/bgfx/effects/screen_opaque.json index 6e9dc300cde..928ffdc5462 100644 --- a/bgfx/effects/screen_opaque.json +++ b/bgfx/effects/screen_opaque.json @@ -8,24 +8,24 @@ // //============================================================ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always" - }, - "cull": { "mode": "none" }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "vs_screen", - "fragment": "fs_screen", - "uniforms": [ - { "name": "s_tex", "type": "int", "values": [ 1.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "vs_screen", + "fragment": "fs_screen", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] } + ] +} diff --git a/bgfx/effects/unfiltered/blit.json b/bgfx/effects/unfiltered/blit.json index fe8d78126d2..96760fff22c 100644 --- a/bgfx/effects/unfiltered/blit.json +++ b/bgfx/effects/unfiltered/blit.json @@ -7,115 +7,115 @@ //============================================================ { // blend (required): The blend state for this effect. - "blend": { - // equation (optional): What equation to perform on the source and destination blend values. - // values: "add", "sub", "revSub", "min", "max" - // default: "add" - // - // "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub" - "equation": "add", - - // blend function parameters (optional): What factors to use in the blend function when calculating the final pixel. - // values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha" - // defaults (srcColor, srcAlpha): "1" - // defaults (dstColor, dstAlpha): "0" - // - // "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha" - "srcColor": "srcalpha", - "dstColor": "1-srcalpha", - "srcAlpha": "srcalpha", - "dstAlpha": "1-srcalpha" - }, - - // depth (required): The depth state for this effect. - "depth": { - // function (optional): The depth function to use when drawing. - // values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always" - // default: "always" - "function": "always", - - // writeenable (optional): Whether to store Z-buffer data. - // values: true, false - // default: false - "writeenable": false - }, - - // cull (required): The cull mode for this effect. - "cull": { - // mode (optional): What winding, if any, to cull. - // values: "none", "cw", "ccw" - // default: "ccw" - // - // "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw" - "mode": "none" - }, - - // write (required): Write enable for color and alpha channels. - "write": { - // rgb (optional): Whether to store color data when drawing. - // values: true, false - // default: false - "rgb": true, + "blend": { + // equation (optional): What equation to perform on the source and destination blend values. + // values: "add", "sub", "revSub", "min", "max" + // default: "add" + // + // "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub" + "equation": "add", - // alpha (optional): Whether to store alpha data when drawing. - // values: true, false - // default: false - "alpha": true - }, + // blend function parameters (optional): What factors to use in the blend function when calculating the final pixel. + // values: "0", "1", "srccolor", "1-srccolor", "dstcolor", "1-dstcolor", "srcalpha", "1-srcalpha", "dstalpha", "1-dstalpha" + // defaults (srcColor, srcAlpha): "1" + // defaults (dstColor, dstAlpha): "0" + // + // "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha" + "srcColor": "srcalpha", + "dstColor": "1-srcalpha", + "srcAlpha": "srcalpha", + "dstAlpha": "1-srcalpha" + }, + + // depth (required): The depth state for this effect. + "depth": { + // function (optional): The depth function to use when drawing. + // values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always" + // default: "always" + "function": "always", + + // writeenable (optional): Whether to store Z-buffer data. + // values: true, false + // default: false + "writeenable": false + }, + + // cull (required): The cull mode for this effect. + "cull": { + // mode (optional): What winding, if any, to cull. + // values: "none", "cw", "ccw" + // default: "ccw" + // + // "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw" + "mode": "none" + }, + + // write (required): Write enable for color and alpha channels. + "write": { + // rgb (optional): Whether to store color data when drawing. + // values: true, false + // default: false + "rgb": true, + + // alpha (optional): Whether to store alpha data when drawing. + // values: true, false + // default: false + "alpha": true + }, // vertex (required): The vertex shader to use when drawing. // value: A string containing the path and name of a shader file to use, minus the extension. - "vertex": "chains/unfiltered/vs_blit", + "vertex": "chains/unfiltered/vs_blit", // pixel/fragment (required): The pixel or fragment shader to use when drawing. // value: A string containing the path and name of a shader file to use, minus the extension. - "fragment": "chains/unfiltered/fs_blit", - - // uniforms (required): The list of uniforms for this effect. Can be empty, but must exist. - "uniforms": [ - { - // name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader. - // value: A string containing the name of the uniform as described above. - // - // NOTE: Some names correspond to special values that will be automatically filled by the BGFX - // code if they are used by the shader. These names are: - // "u_screen_dims" - // The dimensions of the first texture input if present, otherwise the dimensions of the output window. - // Valid values: xy - // "u_inv_screen_dims" - // The reciprocal of u_screen_dims. - // Valid values: xy - // "u_source_dims" - // The size, in pixels, of the screen texture incoming to the chain. - // Valid values: xy - // "u_rotation_type" - // This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270. - // Valid values: x - // "u_swap_xy" - // Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false. - // Valid values: x - // "u_quad_dims" - // The dimensions, in pixels, occupied by this one screen primitive itself in the output window. - // Valid values: xy - // "u_tex_sizeN" - // The dimensions, in pixels, of the texture in input pair N. Starts at 0. - // valid values: xy - "name": "s_tex", + "fragment": "chains/unfiltered/fs_blit", + + // uniforms (required): The list of uniforms for this effect. Can be empty, but must exist. + "uniforms": [ + { + // name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader. + // value: A string containing the name of the uniform as described above. + // + // NOTE: Some names correspond to special values that will be automatically filled by the BGFX + // code if they are used by the shader. These names are: + // "u_screen_dims" + // The dimensions of the first texture input if present, otherwise the dimensions of the output window. + // Valid values: xy + // "u_inv_screen_dims" + // The reciprocal of u_screen_dims. + // Valid values: xy + // "u_source_dims" + // The size, in pixels, of the screen texture incoming to the chain. + // Valid values: xy + // "u_rotation_type" + // This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270. + // Valid values: x + // "u_swap_xy" + // Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false. + // Valid values: x + // "u_quad_dims" + // The dimensions, in pixels, occupied by this one screen primitive itself in the output window. + // Valid values: xy + // "u_tex_sizeN" + // The dimensions, in pixels, of the texture in input pair N. Starts at 0. + // valid values: xy + "name": "s_tex", + + // type (required): The type of the uniform. + // values: "int", "vec4", "mat3", "mat4" + // + // Note: "int" should only be used for samplers. + "type": "int", - // type (required): The type of the uniform. - // values: "int", "vec4", "mat3", "mat4" - // - // Note: "int" should only be used for samplers. - "type": "int", - - // values (required): The array of numbers with which to initialize the uniform. - // value: A JSON array containin the correct amount of numbers to initialize a uniform of the - // above-specified type. The following size rules should be followed: - // "int": 1 float - // "vec4": 4 floats - // "mat3": 9 floats - // "mat4": 16 floats - "values": [ 1.0 ] - } - ] -}
\ No newline at end of file + // values (required): The array of numbers with which to initialize the uniform. + // value: A JSON array containin the correct amount of numbers to initialize a uniform of the + // above-specified type. The following size rules should be followed: + // "int": 1 float + // "vec4": 4 floats + // "mat3": 9 floats + // "mat4": 16 floats + "values": [ 1.0 ] + } + ] +} diff --git a/bgfx/effects/warp/dilation-horizontal-fast.json b/bgfx/effects/warp/dilation-horizontal-fast.json index 083b07edecd..6db07750ea5 100644 --- a/bgfx/effects/warp/dilation-horizontal-fast.json +++ b/bgfx/effects/warp/dilation-horizontal-fast.json @@ -3,7 +3,7 @@ /* Hyllian's dilation-horizontal-fast Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,28 +27,28 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/warp/vs_dilation-horizontal-fast", - "fragment": "chains/warp/fs_dilation-horizontal-fast", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/warp/vs_dilation-horizontal-fast", + "fragment": "chains/warp/fs_dilation-horizontal-fast", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/custom-jinc2-sharper.json b/bgfx/effects/xbr/super-xbr/custom-jinc2-sharper.json index cb65457ea68..124f750f5b8 100644 --- a/bgfx/effects/xbr/super-xbr/custom-jinc2-sharper.json +++ b/bgfx/effects/xbr/super-xbr/custom-jinc2-sharper.json @@ -3,36 +3,36 @@ /* Hyllian's jinc windowed-jinc 2-lobe sharper with anti-ringing Shader - + Copyright (C) 2011-2014 Hyllian/Jararaca - sergiogdb@gmail.com */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_custom-jinc2-sharper", - "fragment": "chains/xbr/super-xbr/fs_custom-jinc2-sharper", - "uniforms": [ - { "name": "s_p", "type": "int", "values": [ 1.0 ] }, - { "name": "JINC2_WINDOW_SINC", "type": "vec4", "values": [ 0.42, 0.0, 0.0, 0.0 ] }, - { "name": "JINC2_SINC", "type": "vec4", "values": [ 0.92, 0.0, 0.0, 0.0 ] }, - { "name": "JINC2_AR_STRENGTH", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_custom-jinc2-sharper", + "fragment": "chains/xbr/super-xbr/fs_custom-jinc2-sharper", + "uniforms": [ + { "name": "s_p", "type": "int", "values": [ 1.0 ] }, + { "name": "JINC2_WINDOW_SINC", "type": "vec4", "values": [ 0.42, 0.0, 0.0, 0.0 ] }, + { "name": "JINC2_SINC", "type": "vec4", "values": [ 0.92, 0.0, 0.0, 0.0 ] }, + { "name": "JINC2_AR_STRENGTH", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass0.json b/bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass0.json index a0e77327bb0..5985117f040 100644 --- a/bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass0.json +++ b/bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass0.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR 3D Shader, pass0 ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,31 +28,31 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-2xbr-3d-pass0", - "fragment": "chains/xbr/super-xbr/fs_super-2xbr-3d-pass0", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-2xbr-3d-pass0", + "fragment": "chains/xbr/super-xbr/fs_super-2xbr-3d-pass0", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass1.json b/bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass1.json index 1e9669c91f9..aa79d7c4bff 100644 --- a/bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass1.json +++ b/bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass1.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR 3D Shader, pass1 ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,32 +28,32 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-2xbr-3d-pass1", - "fragment": "chains/xbr/super-xbr/fs_super-2xbr-3d-pass1", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-2xbr-3d-pass1", + "fragment": "chains/xbr/super-xbr/fs_super-2xbr-3d-pass1", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass2.json b/bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass2.json index 86dad8cd5bd..971c566700a 100644 --- a/bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass2.json +++ b/bgfx/effects/xbr/super-xbr/super-2xbr-3d-pass2.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR 3D Shader, pass2 ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,32 +28,32 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-2xbr-3d-pass2", - "fragment": "chains/xbr/super-xbr/fs_super-2xbr-3d-pass2", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-2xbr-3d-pass2", + "fragment": "chains/xbr/super-xbr/fs_super-2xbr-3d-pass2", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass0.json b/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass0.json index fccbdaf32db..7dc86e9bc72 100644 --- a/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass0.json +++ b/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass0.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super 4XBR 3D Shader - pass0 ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,31 +28,31 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-4xbr-3d-pass0", - "fragment": "chains/xbr/super-xbr/fs_super-4xbr-3d-pass0", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-4xbr-3d-pass0", + "fragment": "chains/xbr/super-xbr/fs_super-4xbr-3d-pass0", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass1.json b/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass1.json index 1f0492ee3c3..5ddeecd317c 100644 --- a/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass1.json +++ b/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass1.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super 4XBR 3D Shader - pass0 ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,32 +28,32 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-4xbr-3d-pass1", - "fragment": "chains/xbr/super-xbr/fs_super-4xbr-3d-pass1", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-4xbr-3d-pass1", + "fragment": "chains/xbr/super-xbr/fs_super-4xbr-3d-pass1", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass2.json b/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass2.json index 665f455e662..366d1439deb 100644 --- a/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass2.json +++ b/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass2.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super 4XBR 3D Shader - pass0 ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,31 +28,31 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-4xbr-3d-pass2", - "fragment": "chains/xbr/super-xbr/fs_super-4xbr-3d-pass2", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-4xbr-3d-pass2", + "fragment": "chains/xbr/super-xbr/fs_super-4xbr-3d-pass2", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass3.json b/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass3.json index e33bc2ebb61..34b228a09b5 100644 --- a/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass3.json +++ b/bgfx/effects/xbr/super-xbr/super-4xbr-3d-pass3.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super 4XBR 3D Shader - pass0 ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,32 +28,32 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-4xbr-3d-pass3", - "fragment": "chains/xbr/super-xbr/fs_super-4xbr-3d-pass3", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-4xbr-3d-pass3", + "fragment": "chains/xbr/super-xbr/fs_super-4xbr-3d-pass3", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-xbr-fast-pass0.json b/bgfx/effects/xbr/super-xbr/super-xbr-fast-pass0.json index bd3d511cc98..a19662e5d88 100644 --- a/bgfx/effects/xbr/super-xbr/super-xbr-fast-pass0.json +++ b/bgfx/effects/xbr/super-xbr/super-xbr-fast-pass0.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR Shader, Fast (pass0) ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,31 +28,31 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-xbr-fast-pass0", - "fragment": "chains/xbr/super-xbr/fs_super-xbr-fast-pass0", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-xbr-fast-pass0", + "fragment": "chains/xbr/super-xbr/fs_super-xbr-fast-pass0", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-xbr-fast-pass1.json b/bgfx/effects/xbr/super-xbr/super-xbr-fast-pass1.json index 4b65ac60ba4..4ee5ee1883e 100644 --- a/bgfx/effects/xbr/super-xbr/super-xbr-fast-pass1.json +++ b/bgfx/effects/xbr/super-xbr/super-xbr-fast-pass1.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR Shader, Fast (pass1) ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,31 +28,31 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-xbr-fast-pass1", - "fragment": "chains/xbr/super-xbr/fs_super-xbr-fast-pass1", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-xbr-fast-pass1", + "fragment": "chains/xbr/super-xbr/fs_super-xbr-fast-pass1", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-xbr-fast-pass2.json b/bgfx/effects/xbr/super-xbr/super-xbr-fast-pass2.json index f3ce83b4272..66a6bfd119c 100644 --- a/bgfx/effects/xbr/super-xbr/super-xbr-fast-pass2.json +++ b/bgfx/effects/xbr/super-xbr/super-xbr-fast-pass2.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR Shader, Fast (pass2) ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,31 +28,31 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-xbr-fast-pass2", - "fragment": "chains/xbr/super-xbr/fs_super-xbr-fast-pass2", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-xbr-fast-pass2", + "fragment": "chains/xbr/super-xbr/fs_super-xbr-fast-pass2", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-xbr-pass0.json b/bgfx/effects/xbr/super-xbr/super-xbr-pass0.json index c7d1db28110..4ac9b63240f 100644 --- a/bgfx/effects/xbr/super-xbr/super-xbr-pass0.json +++ b/bgfx/effects/xbr/super-xbr/super-xbr-pass0.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,31 +28,31 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-xbr-pass0", - "fragment": "chains/xbr/super-xbr/fs_super-xbr-pass0", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-xbr-pass0", + "fragment": "chains/xbr/super-xbr/fs_super-xbr-pass0", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-xbr-pass1.json b/bgfx/effects/xbr/super-xbr/super-xbr-pass1.json index 13e8f8dbd9a..8fca027bee5 100644 --- a/bgfx/effects/xbr/super-xbr/super-xbr-pass1.json +++ b/bgfx/effects/xbr/super-xbr/super-xbr-pass1.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,32 +28,32 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-xbr-pass1", - "fragment": "chains/xbr/super-xbr/fs_super-xbr-pass1", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-xbr-pass1", + "fragment": "chains/xbr/super-xbr/fs_super-xbr-pass1", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/super-xbr/super-xbr-pass2.json b/bgfx/effects/xbr/super-xbr/super-xbr-pass2.json index bea988632cf..6b4be14029d 100644 --- a/bgfx/effects/xbr/super-xbr/super-xbr-pass2.json +++ b/bgfx/effects/xbr/super-xbr/super-xbr-pass2.json @@ -2,9 +2,9 @@ // copyright-holders:Hyllian /* - + ******* Super XBR Shader ******* - + Copyright (c) 2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,31 +28,31 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/super-xbr/vs_super-xbr-pass2", - "fragment": "chains/xbr/super-xbr/fs_super-xbr-pass2", - "uniforms": [ - { "name": "s0", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/super-xbr/vs_super-xbr-pass2", + "fragment": "chains/xbr/super-xbr/fs_super-xbr-pass2", + "uniforms": [ + { "name": "s0", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-sharp.json b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-sharp.json index 8015f3a3ca2..946fcc690b8 100644 --- a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-sharp.json +++ b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-sharp.json @@ -3,33 +3,33 @@ /* Hyllian's 2xBR v3.7c+ReverseAA (squared) Shader - + Copyright (C) 2011/2012 Hyllian/Jararaca - sergiogdb@gmail.com */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-sharp", - "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-sharp", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-sharp", + "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-sharp", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v2-gamma.json b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v2-gamma.json index 3a30413f703..2983832c94e 100644 --- a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v2-gamma.json +++ b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v2-gamma.json @@ -3,33 +3,33 @@ /* Hyllian's 2xBR v3.8c+ReverseAA (squared) Shader - beta1 - + Copyright (C) 2011/2012 Hyllian/Jararaca - sergiogdb@gmail.com */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-v2-gamma", - "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v2-gamma", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-v2-gamma", + "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v2-gamma", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v2.json b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v2.json index 3045dbd65b2..8de360f9eb8 100644 --- a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v2.json +++ b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v2.json @@ -3,33 +3,33 @@ /* Hyllian's 2xBR v3.8c+ReverseAA (squared) Shader - Dithering preserved - + Copyright (C) 2011/2012 Hyllian/Jararaca - sergiogdb@gmail.com */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-v2", - "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v2", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-v2", + "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v2", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4-gamma.json b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4-gamma.json index 2a285ea176c..2baacce4369 100644 --- a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4-gamma.json +++ b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4-gamma.json @@ -3,33 +3,33 @@ /* Hyllian's 2xBR v3.8c+ReverseAA (squared) Shader - beta3 - + Copyright (C) 2011/2012 Hyllian/Jararaca - sergiogdb@gmail.com */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-v4-gamma", - "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v4-gamma", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-v4-gamma", + "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v4-gamma", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4.json b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4.json index 961fee7922a..a04487306f0 100644 --- a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4.json +++ b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4.json @@ -3,33 +3,33 @@ /* Hyllian's 2xBR v3.8c+ReverseAA (squared) Shader - v4 - + Copyright (C) 2011/2012 Hyllian/Jararaca - sergiogdb@gmail.com */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-v4", - "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v4", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-v4", + "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v4", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4b.json b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4b.json index e5c5e18c18f..31d86e690b8 100644 --- a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4b.json +++ b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v4b.json @@ -3,33 +3,33 @@ /* Hyllian's 2xBR v3.8b+ReverseAA (semi-rounded) Shader - v4 - + Copyright (C) 2011/2012 Hyllian/Jararaca - sergiogdb@gmail.com */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-v4b", - "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v4b", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-v4b", + "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v4b", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v5-gamma.json b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v5-gamma.json index 38abe1e0d0b..e4dac4b9782 100644 --- a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v5-gamma.json +++ b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid-v5-gamma.json @@ -3,33 +3,33 @@ /* Hyllian's 2xBR v3.8c+ReverseAA (squared) Shader - beta3 - + Copyright (C) 2011/2012 Hyllian/Jararaca - sergiogdb@gmail.com */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-v5-gamma", - "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v5-gamma", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid-v5-gamma", + "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid-v5-gamma", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid.json b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid.json index b23528caafd..1f810bf23cb 100644 --- a/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid.json +++ b/bgfx/effects/xbr/xbr-hybrid/2xbr-hybrid.json @@ -3,33 +3,33 @@ /* Hyllian's 2xBR v3.7c+ReverseAA (squared) Shader - + Copyright (C) 2011/2012 Hyllian/Jararaca - sergiogdb@gmail.com */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid", - "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-hybrid/vs_2xbr-hybrid", + "fragment": "chains/xbr/xbr-hybrid/fs_2xbr-hybrid", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv1-noblend.json b/bgfx/effects/xbr/xbr-lv1-noblend.json index 8bca60452e6..890e934e3b2 100644 --- a/bgfx/effects/xbr/xbr-lv1-noblend.json +++ b/bgfx/effects/xbr/xbr-lv1-noblend.json @@ -3,7 +3,7 @@ /* Hyllian's xBR-lv1-noblend Shader - + Copyright (C) 2011-2014 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,30 +27,30 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/vs_xbr-lv1-noblend", - "fragment": "chains/xbr/fs_xbr-lv1-noblend", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 15.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/vs_xbr-lv1-noblend", + "fragment": "chains/xbr/fs_xbr-lv1-noblend", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 15.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv2-3d.json b/bgfx/effects/xbr/xbr-lv2-3d.json index e4b6146ed2a..2d3e28d0d5b 100644 --- a/bgfx/effects/xbr/xbr-lv2-3d.json +++ b/bgfx/effects/xbr/xbr-lv2-3d.json @@ -3,7 +3,7 @@ /* Hyllian's xBR-lv2-3d Shader - + Copyright (C) 2011/2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,34 +27,34 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/vs_xbr-lv2-3d", - "fragment": "chains/xbr/fs_xbr-lv2-3d", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_SCALE", "type": "vec4", "values": [ 3.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 15.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_LV1_COEFFICIENT", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_RES", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/vs_xbr-lv2-3d", + "fragment": "chains/xbr/fs_xbr-lv2-3d", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_SCALE", "type": "vec4", "values": [ 3.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 15.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_LV1_COEFFICIENT", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_RES", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv2-fast.json b/bgfx/effects/xbr/xbr-lv2-fast.json index e3ce6fb1f4c..1b1b4b593ad 100644 --- a/bgfx/effects/xbr/xbr-lv2-fast.json +++ b/bgfx/effects/xbr/xbr-lv2-fast.json @@ -3,7 +3,7 @@ /* Hyllian's xBR-lv2-lq Shader - + Copyright (C) 2011/2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,32 +27,32 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/vs_xbr-lv2-fast", - "fragment": "chains/xbr/fs_xbr-lv2-fast", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_SCALE", "type": "vec4", "values": [ 4.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 25.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/vs_xbr-lv2-fast", + "fragment": "chains/xbr/fs_xbr-lv2-fast", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_SCALE", "type": "vec4", "values": [ 4.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 25.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-a-pass0.json b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-a-pass0.json index f77141d0128..b2f4668b45f 100644 --- a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-a-pass0.json +++ b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-a-pass0.json @@ -3,7 +3,7 @@ /* Hyllian's xBR LV2 A (squared) - pass0 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,28 +27,28 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-a-pass0", - "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-a-pass0", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-a-pass0", + "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-a-pass0", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass0.json b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass0.json index 809ec9cc5d6..f900518f72d 100644 --- a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass0.json +++ b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass0.json @@ -3,7 +3,7 @@ /* Hyllian's xBR LV2 Accuracy - pass0 Shader - + Copyright (C) 2011-2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,30 +27,30 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-accuracy-pass0", - "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-accuracy-pass0", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 4.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-accuracy-pass0", + "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-accuracy-pass0", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 4.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass1.json b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass1.json index 06dc01021a5..32fc96476d9 100644 --- a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass1.json +++ b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass1.json @@ -3,7 +3,7 @@ /* Hyllian's xBR LV2 Accuracy - pass0 Shader - + Copyright (C) 2011-2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,31 +27,31 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-accuracy-pass0", - "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-accuracy-pass0", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_SCALE", "type": "vec4", "values": [ 4.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-accuracy-pass0", + "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-accuracy-pass0", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_SCALE", "type": "vec4", "values": [ 4.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-b-pass0.json b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-b-pass0.json index 8ba8832f545..7a6a60045e2 100644 --- a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-b-pass0.json +++ b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-b-pass0.json @@ -3,7 +3,7 @@ /* Hyllian's xBR LV2 A (squared) - pass0 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,28 +27,28 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-b-pass0", - "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-b-pass0", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-b-pass0", + "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-b-pass0", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-c-pass0.json b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-c-pass0.json index 16872129ef3..c9e93b92e07 100644 --- a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-c-pass0.json +++ b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-c-pass0.json @@ -3,7 +3,7 @@ /* Hyllian's xBR LV2 A (squared) - pass0 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,28 +27,28 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-c-pass0", - "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-c-pass0", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-c-pass0", + "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-c-pass0", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-d-pass0.json b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-d-pass0.json index 758a21b2619..9979b3d11b6 100644 --- a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-d-pass0.json +++ b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-d-pass0.json @@ -3,7 +3,7 @@ /* Hyllian's xBR LV2 A (squared) - pass0 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,28 +27,28 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-d-pass0", - "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-d-pass0", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-d-pass0", + "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-d-pass0", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-noblend-pass1.json b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-noblend-pass1.json index f57bd18eda5..edf4ead94ed 100644 --- a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-noblend-pass1.json +++ b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-noblend-pass1.json @@ -3,7 +3,7 @@ /* Hyllian's xBR LV2 - noblend - pass1 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,30 +27,30 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-noblend-pass1", - "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-noblend-pass1", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-noblend-pass1", + "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-noblend-pass1", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-pass1.json b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-pass1.json index d5613e293cd..0b6938a4e77 100644 --- a/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-pass1.json +++ b/bgfx/effects/xbr/xbr-lv2-multipass/xbr-lv2-pass1.json @@ -3,7 +3,7 @@ /* Hyllian's xBR LV2 - pass1 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,31 +27,31 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-pass1", - "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-pass1", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_target_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-lv2-multipass/vs_xbr-lv2-pass1", + "fragment": "chains/xbr/xbr-lv2-multipass/fs_xbr-lv2-pass1", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_target_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv2-noblend.json b/bgfx/effects/xbr/xbr-lv2-noblend.json index 41695ff888f..8ea58baffe2 100644 --- a/bgfx/effects/xbr/xbr-lv2-noblend.json +++ b/bgfx/effects/xbr/xbr-lv2-noblend.json @@ -3,7 +3,7 @@ /* Hyllian's xBR-lv2-noblend Shader - + Copyright (C) 2011/2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,30 +27,30 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/vs_xbr-lv2-noblend", - "fragment": "chains/xbr/fs_xbr-lv2-noblend", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/vs_xbr-lv2-noblend", + "fragment": "chains/xbr/fs_xbr-lv2-noblend", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv2.json b/bgfx/effects/xbr/xbr-lv2.json index 58e451ddeca..c974920b334 100644 --- a/bgfx/effects/xbr/xbr-lv2.json +++ b/bgfx/effects/xbr/xbr-lv2.json @@ -3,7 +3,7 @@ /* Hyllian's xBR-lv2 Shader - + Copyright (C) 2011-2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,32 +27,32 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/vs_xbr-lv2", - "fragment": "chains/xbr/fs_xbr-lv2", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_SCALE", "type": "vec4", "values": [ 4.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 25.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/vs_xbr-lv2", + "fragment": "chains/xbr/fs_xbr-lv2", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_SCALE", "type": "vec4", "values": [ 4.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 25.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv3-multipass/xbr-lv3-pass0.json b/bgfx/effects/xbr/xbr-lv3-multipass/xbr-lv3-pass0.json index 39daf68c665..ad9d884cc16 100644 --- a/bgfx/effects/xbr/xbr-lv3-multipass/xbr-lv3-pass0.json +++ b/bgfx/effects/xbr/xbr-lv3-multipass/xbr-lv3-pass0.json @@ -3,7 +3,7 @@ /* Hyllian's xBR level 3 pass0 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,28 +27,28 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-lv3-multipass/vs_xbr-lv3-pass0", - "fragment": "chains/xbr/xbr-lv3-multipass/fs_xbr-lv3-pass0", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-lv3-multipass/vs_xbr-lv3-pass0", + "fragment": "chains/xbr/xbr-lv3-multipass/fs_xbr-lv3-pass0", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv3-multipass/xbr-lv3-pass1.json b/bgfx/effects/xbr/xbr-lv3-multipass/xbr-lv3-pass1.json index 04afb26b417..a7bafa1205f 100644 --- a/bgfx/effects/xbr/xbr-lv3-multipass/xbr-lv3-pass1.json +++ b/bgfx/effects/xbr/xbr-lv3-multipass/xbr-lv3-pass1.json @@ -3,7 +3,7 @@ /* Hyllian's xBR level 3 pass1 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,31 +27,31 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-lv3-multipass/vs_xbr-lv3-pass1", - "fragment": "chains/xbr/xbr-lv3-multipass/fs_xbr-lv3-pass1", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_target_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-lv3-multipass/vs_xbr-lv3-pass1", + "fragment": "chains/xbr/xbr-lv3-multipass/fs_xbr-lv3-pass1", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_target_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv3-noblend.json b/bgfx/effects/xbr/xbr-lv3-noblend.json index 8a2965646c9..319a8db5a90 100644 --- a/bgfx/effects/xbr/xbr-lv3-noblend.json +++ b/bgfx/effects/xbr/xbr-lv3-noblend.json @@ -3,7 +3,7 @@ /* Hyllian's xBR-lv3-noblend - Shader - + Copyright (C) 2011/2016 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -28,31 +28,31 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/vs_xbr-lv3-noblend", - "fragment": "chains/xbr/fs_xbr-lv3-noblend", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 10.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_EQ_THRESHOLD2", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/vs_xbr-lv3-noblend", + "fragment": "chains/xbr/fs_xbr-lv3-noblend", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 10.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_EQ_THRESHOLD2", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-lv3.json b/bgfx/effects/xbr/xbr-lv3.json index bcbf6e1f48b..60498cba169 100644 --- a/bgfx/effects/xbr/xbr-lv3.json +++ b/bgfx/effects/xbr/xbr-lv3.json @@ -6,7 +6,7 @@ /* Hyllian's xBR-lv3 Shader - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -31,32 +31,32 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/vs_xbr-lv3", - "fragment": "chains/xbr/fs_xbr-lv3", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 10.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_EQ_THRESHOLD2", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/vs_xbr-lv3", + "fragment": "chains/xbr/fs_xbr-lv3", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "XBR_Y_WEIGHT", "type": "vec4", "values": [ 48.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_EQ_THRESHOLD", "type": "vec4", "values": [ 10.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_EQ_THRESHOLD2", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "XBR_LV2_COEFFICIENT", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass1.json b/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass1.json index fd313a73eca..20d2d41840d 100644 --- a/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass1.json +++ b/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass1.json @@ -3,7 +3,7 @@ /* Hyllian's xBR MultiLevel4 Shader - Pass1 - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,28 +27,28 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-mlv4-multipass/vs_xbr-mlv4-pass1", - "fragment": "chains/xbr/xbr-mlv4-multipass/fs_xbr-mlv4-pass1", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-mlv4-multipass/vs_xbr-mlv4-pass1", + "fragment": "chains/xbr/xbr-mlv4-multipass/fs_xbr-mlv4-pass1", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass2.json b/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass2.json index 8d25c90ed0f..c57fb7ba331 100644 --- a/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass2.json +++ b/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass2.json @@ -3,7 +3,7 @@ /* Hyllian's xBR MultiLevel4 Shader - Pass2 - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,28 +27,28 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-mlv4-multipass/vs_xbr-mlv4-pass2", - "fragment": "chains/xbr/xbr-mlv4-multipass/fs_xbr-mlv4-pass2", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-mlv4-multipass/vs_xbr-mlv4-pass2", + "fragment": "chains/xbr/xbr-mlv4-multipass/fs_xbr-mlv4-pass2", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass3.json b/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass3.json index 7e862e66664..ba9b179d39a 100644 --- a/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass3.json +++ b/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass3.json @@ -3,7 +3,7 @@ /* Hyllian's xBR MultiLevel4 Shader - Pass3 - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,29 +27,29 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-mlv4-multipass/vs_xbr-mlv4-pass3", - "fragment": "chains/xbr/xbr-mlv4-multipass/fs_xbr-mlv4-pass3", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, - { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-mlv4-multipass/vs_xbr-mlv4-pass3", + "fragment": "chains/xbr/xbr-mlv4-multipass/fs_xbr-mlv4-pass3", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} diff --git a/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass4.json b/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass4.json index 7323c3b8960..0547b5eef8b 100644 --- a/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass4.json +++ b/bgfx/effects/xbr/xbr-mlv4-multipass/xbr-mlv4-pass4.json @@ -3,7 +3,7 @@ /* Hyllian's xBR MultiLevel4 Shader - Pass4 - + Copyright (C) 2011-2015 Hyllian - sergiogdb@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy @@ -27,30 +27,30 @@ */ { - "blend": { - "equation": "add", - "srcColor": "1", - "dstColor": "0", - "srcAlpha": "1", - "dstAlpha": "0" - }, - "depth": { - "function": "always", - "writeenable": false - }, - "cull": { - "mode": "none" - }, - "write": { - "rgb": true, - "alpha": true - }, - "vertex": "chains/xbr/xbr-mlv4-multipass/vs_xbr-mlv4-pass4", - "fragment": "chains/xbr/xbr-mlv4-multipass/fs_xbr-mlv4-pass4", - "uniforms": [ - { "name": "decal", "type": "int", "values": [ 1.0 ] }, - { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, - { "name": "u_target_size", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, - { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } - ] -}
\ No newline at end of file + "blend": { + "equation": "add", + "srcColor": "1", + "dstColor": "0", + "srcAlpha": "1", + "dstAlpha": "0" + }, + "depth": { + "function": "always", + "writeenable": false + }, + "cull": { + "mode": "none" + }, + "write": { + "rgb": true, + "alpha": true + }, + "vertex": "chains/xbr/xbr-mlv4-multipass/vs_xbr-mlv4-pass4", + "fragment": "chains/xbr/xbr-mlv4-multipass/fs_xbr-mlv4-pass4", + "uniforms": [ + { "name": "decal", "type": "int", "values": [ 1.0 ] }, + { "name": "ORIG_texture", "type": "int", "values": [ 1.0 ] }, + { "name": "u_target_size", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, + { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } + ] +} @@ -1814,6 +1814,7 @@ ifeq (posix,$(SHELLTYPE)) $(SILENT) find src -name \*.mm -exec ./srcclean {} \; >&2 $(SILENT) find hash -name \*.hsi -exec ./srcclean {} \; >&2 $(SILENT) find hash -name \*.xml -exec ./srcclean {} \; >&2 + $(SILENT) find bgfx -name \*.json -exec ./srcclean {} \; >&2 $(SILENT) find plugins -name \*.lua -exec ./srcclean {} \; >&2 $(SILENT) find scripts -name \*.lua -exec ./srcclean {} \; >&2 else @@ -1829,6 +1830,7 @@ else $(shell for /r src %%i in (*.mm) do srcclean %%i >&2 ) $(shell for /r hash %%i in (*.hsi) do srcclean %%i >&2 ) $(shell for /r hash %%i in (*.xml) do srcclean %%i >&2 ) + $(shell for /r bgfx %%i in (*.json) do srcclean %%i >&2 ) $(shell for /r plugins %%i in (*.lua) do srcclean %%i >&2 ) $(shell for /r scripts %%i in (*.lua) do srcclean %%i >&2 ) endif diff --git a/src/mame/drivers/konamigx.cpp b/src/mame/drivers/konamigx.cpp index 56860289279..27c9db9a02d 100644 --- a/src/mame/drivers/konamigx.cpp +++ b/src/mame/drivers/konamigx.cpp @@ -2181,39 +2181,6 @@ ROM_START( salmndr2a ) ROM_LOAD( "salmndr2a.nv", 0x0000, 0x080, CRC(3a98a8f9) SHA1(08c2d164620a4d8ad902d502acea8ad621931198) ) ROM_END -/* Magical Twinbee */ -ROM_START( mtwinbee ) - /* main program */ - ROM_REGION( 0x800000, "maincpu", 0 ) - GX_BIOS - ROM_LOAD32_WORD_SWAP( "424eaa02.31b", 0x200002, 512*1024, CRC(34659905) SHA1(011df093502644ab7ceb7fd1fbca41d09af89566) ) - ROM_LOAD32_WORD_SWAP( "424eaa04.27b", 0x200000, 512*1024, CRC(f42d3139) SHA1(e03006b4a87a70dfba9ec5e4857442424269986c) ) - - /* sound program */ - ROM_REGION( 0x40000, "soundcpu", 0 ) - ROM_LOAD16_BYTE("424a06.9c", 0x000000, 128*1024, CRC(a4760e14) SHA1(78dbd309f3f7fa61e92c9554e594449a7d4eed5a) ) - ROM_LOAD16_BYTE("424a07.7c", 0x000001, 128*1024, CRC(fa90d7e2) SHA1(6b6dee29643309005834416bdfdb18d74f34cb1b) ) - - /* tiles */ - ROM_REGION( 0x500000, "k056832", ROMREGION_ERASE00 ) - TILE_WORD_ROM_LOAD( "424a14.17h", 0x000000, 2*1024*1024, CRC(b1d9fce8) SHA1(143ed2f03ac10a0f18d878c0ee0509a5714e4664) ) - TILE_BYTE_ROM_LOAD( "424a12.13g", 0x000004, 512*1024, CRC(7f9cb8b1) SHA1(f5e18d70fcb572bb85f9b064995fc0ab0bb581e8) ) - - /* sprites */ - ROM_REGION( 0x500000, "k055673", ROMREGION_ERASE00 ) - ROM_LOAD32_WORD( "424a11.25g", 0x000000, 2*1024*1024, CRC(29592688) SHA1(a4b44e9153988a510915af83116e3c18dd15642f) ) - ROM_LOAD32_WORD( "424a10.28g", 0x000002, 2*1024*1024, CRC(cf24e5e3) SHA1(095bf2ae4f47c6e4768515ae5e22c982fbc660a5) ) - ROM_LOAD( "424a09.30g", 0x400000, 1*1024*1024, CRC(daa07224) SHA1(198cafa3d0ead2aa2593be066c6f372e66c11c44) ) - - /* sound data */ - ROM_REGION( 0x400000, "k054539", 0 ) - ROM_LOAD( "424a17.9g", 0x000000, 2*1024*1024, CRC(e9dd9692) SHA1(c289019c8d1dd71b3cec26479c39b649de804707) ) - ROM_LOAD( "424a18.7g", 0x200000, 2*1024*1024, CRC(0f0d9f3a) SHA1(57f6b113b80f06964b7e672ad517c1654c5569c5) ) - - ROM_REGION16_BE( 0x80, "eeprom", 0 ) // default eeprom to prevent game booting with error - ROM_LOAD( "mtwinbee.nv", 0x0000, 0x080, CRC(942b4323) SHA1(2f6799bf187510355df5e52c4d416f5c5e70fa05) ) -ROM_END - /* Twinbee Yahhoo! */ ROM_START( tbyahhoo ) /* main program */ @@ -2276,6 +2243,39 @@ ROM_START( daiskiss ) ROM_LOAD( "535a22.9g", 0x000000, 2*1024*1024, CRC(7ee59acb) SHA1(782bf15f205e9fe7bd069f6445eb8187837dee32) ) ROM_END +/* Magical Twinbee */ +ROM_START( mtwinbee ) + /* main program */ + ROM_REGION( 0x800000, "maincpu", 0 ) + GX_BIOS + ROM_LOAD32_WORD_SWAP( "424eaa02.31b", 0x200002, 512*1024, CRC(34659905) SHA1(011df093502644ab7ceb7fd1fbca41d09af89566) ) + ROM_LOAD32_WORD_SWAP( "424eaa04.27b", 0x200000, 512*1024, CRC(f42d3139) SHA1(e03006b4a87a70dfba9ec5e4857442424269986c) ) + + /* sound program */ + ROM_REGION( 0x40000, "soundcpu", 0 ) + ROM_LOAD16_BYTE("424a06.9c", 0x000000, 128*1024, CRC(a4760e14) SHA1(78dbd309f3f7fa61e92c9554e594449a7d4eed5a) ) + ROM_LOAD16_BYTE("424a07.7c", 0x000001, 128*1024, CRC(fa90d7e2) SHA1(6b6dee29643309005834416bdfdb18d74f34cb1b) ) + + /* tiles */ + ROM_REGION( 0x500000, "k056832", ROMREGION_ERASE00 ) + TILE_WORD_ROM_LOAD( "424a14.17h", 0x000000, 2*1024*1024, CRC(b1d9fce8) SHA1(143ed2f03ac10a0f18d878c0ee0509a5714e4664) ) + TILE_BYTE_ROM_LOAD( "424a12.13g", 0x000004, 512*1024, CRC(7f9cb8b1) SHA1(f5e18d70fcb572bb85f9b064995fc0ab0bb581e8) ) + + /* sprites */ + ROM_REGION( 0x500000, "k055673", ROMREGION_ERASE00 ) + ROM_LOAD32_WORD( "424a11.25g", 0x000000, 2*1024*1024, CRC(29592688) SHA1(a4b44e9153988a510915af83116e3c18dd15642f) ) + ROM_LOAD32_WORD( "424a10.28g", 0x000002, 2*1024*1024, CRC(cf24e5e3) SHA1(095bf2ae4f47c6e4768515ae5e22c982fbc660a5) ) + ROM_LOAD( "424a09.30g", 0x400000, 1*1024*1024, CRC(daa07224) SHA1(198cafa3d0ead2aa2593be066c6f372e66c11c44) ) + + /* sound data */ + ROM_REGION( 0x400000, "k054539", 0 ) + ROM_LOAD( "424a17.9g", 0x000000, 2*1024*1024, CRC(e9dd9692) SHA1(c289019c8d1dd71b3cec26479c39b649de804707) ) + ROM_LOAD( "424a18.7g", 0x200000, 2*1024*1024, CRC(0f0d9f3a) SHA1(57f6b113b80f06964b7e672ad517c1654c5569c5) ) + + ROM_REGION16_BE( 0x80, "eeprom", 0 ) // default eeprom to prevent game booting with error + ROM_LOAD( "mtwinbee.nv", 0x0000, 0x080, CRC(942b4323) SHA1(2f6799bf187510355df5e52c4d416f5c5e70fa05) ) +ROM_END + /* Sexy Parodius version JAA (Japan) */ ROM_START( sexyparo ) /* main program */ @@ -4042,8 +4042,8 @@ GAME( 1994, gokuparo, fantjour, gokuparo, gokuparo, konamigx_state, init_ko GAME( 1994, crzcross, konamigx, gokuparo, puzldama, konamigx_state, init_posthack, ROT0, "Konami", "Crazy Cross (ver EAA)", MACHINE_IMPERFECT_GRAPHICS ) GAME( 1994, puzldama, crzcross, gokuparo, puzldama, konamigx_state, init_posthack, ROT0, "Konami", "Taisen Puzzle-dama (ver JAA)", MACHINE_IMPERFECT_GRAPHICS ) -GAME( 1995, mtwinbee, konamigx, tbyahhoo, gokuparo, konamigx_state, init_posthack, ROT0, "Konami", "Magical Twin Bee (ver EAA)", MACHINE_IMPERFECT_GRAPHICS ) -GAME( 1995, tbyahhoo, mtwinbee, tbyahhoo, gokuparo, konamigx_state, init_posthack, ROT0, "Konami", "Twin Bee Yahhoo! (ver JAA)", MACHINE_IMPERFECT_GRAPHICS ) +GAME( 1995, tbyahhoo, konamigx, tbyahhoo, gokuparo, konamigx_state, init_posthack, ROT0, "Konami", "Twin Bee Yahhoo! (ver JAA)", MACHINE_IMPERFECT_GRAPHICS ) +GAME( 1995, mtwinbee, tbyahhoo, tbyahhoo, gokuparo, konamigx_state, init_posthack, ROT0, "Konami", "Magical Twin Bee (ver EAA)", MACHINE_IMPERFECT_GRAPHICS ) GAME( 1995, tkmmpzdm, konamigx, konamigx_6bpp, tokkae, konamigx_state, init_konamigx, ROT0, "Konami", "Tokimeki Memorial Taisen Puzzle-dama (ver JAB)", MACHINE_IMPERFECT_GRAPHICS ) diff --git a/src/mame/drivers/taito_b.cpp b/src/mame/drivers/taito_b.cpp index 952eac18fbd..1d24ff7a20c 100644 --- a/src/mame/drivers/taito_b.cpp +++ b/src/mame/drivers/taito_b.cpp @@ -3055,24 +3055,6 @@ ROM_START( rambo3p ) /* Is this set a prototype or possible bootleg? */ ROM_LOAD( "r3-a4.rom", 0x60000, 0x20000, CRC(9cf4c21b) SHA1(756fc6bbc798a39a18eab3829e032cac8fe3f8ed) ) ROM_END -ROM_START( bublbust ) // Purportedly a location test version, but has the same version number and build date as the released Japanese set below - ROM_REGION( 0x80000, "maincpu", 0 ) // 512k for 68000 code - located on Taito C0503005B main board - ROM_LOAD16_BYTE( "p.bobble_prg_h_usa_6-15_c681.ic18", 0x00000, 0x40000, CRC(ba83e398) SHA1(2512ea5a805f0e5c470c4d216d679f3dc3c4aa82) ) // hand written label P.Bobble PRG H USA 6/15 C681 - "Bobble" written in Kanji - ROM_LOAD16_BYTE( "p.bobble_prg_l_usa_6-15_e9e1.ic2", 0x00001, 0x40000, CRC(a12cb3f2) SHA1(06271d3a0af101a959e6e777f1f9e99bae1e6076) ) // hand written label P.Bobble PRG L USA 6/15 E9E1 - "Bobble" written in Kanji - - ROM_REGION( 0x20000, "audiocpu", 0 ) // 128k for Z80 code - located on Taito C0503005B main board - ROM_LOAD( "prg_snd.ic27", 0x00000, 0x20000, CRC(2f288fe0) SHA1(4ba707f4b3a1ca0e573652d1c733ee889f9fef8a) ) // hand written label PRG SND IC 27 - no checksum listed - - ROM_REGION( 0x100000, "tc0180vcu", 0 ) // located on Taito C0503002A ROM PCB - ROM_LOAD16_BYTE( "p.bobble_chr-1l_6-14_eaa0.ic11_ch_1_0l", 0x00000, 0x40000, CRC(8d3fa2f0) SHA1(3d36944e35081740469df61a40e538eb94ea2ef6) ) // hand written label P.Bobble CHR 1L 6/14 EAA0 - "Bobble" written in Kanji - ROM_LOAD16_BYTE( "p.bobble_chr-1h_6-14_1515.ic12_ch_1_0h", 0x00001, 0x40000, CRC(a2eb4d32) SHA1(571811a543af50cc5e0f1d7aad9fc388919e93e6) ) // hand written label P.Bobble CHR 1H 6/14 1515 - "Bobble" written in Kanji - ROM_LOAD16_BYTE( "p.bobble_chr-0l_6-14_86d5.ic7_ch_0_0l", 0x80000, 0x40000, CRC(80f1aab0) SHA1(f5cdb93aa702fb8ba91eaf8f470b6e2a61a581b5) ) // hand written label P.Bobble CHR 0L 6/14 86D5 - "Bobble" written in Kanji - ROM_LOAD16_BYTE( "p.bobble_chr-0h_6-14_d180.ic8_ch_0_0h", 0x80001, 0x40000, CRC(d773cac8) SHA1(b008a21c39650a28cba402cd1c4de0567e275bc9) ) // hand written label P.Bobble CHR 0H 6/14 D180 - "Bobble" written in Kanji - - ROM_REGION( 0x100000, "ymsnd:adpcma", 0 ) // located on Taito C0503002A ROM PCB - Half the size of the Japanese ADPCMA sample ROM - ROM_LOAD( "ach0-kaigai.ic15_ach_0", 0x00000, 0x80000, CRC(f203ae52) SHA1(d41b880ef17eea6614e2911318db5cd070473381) ) // hand written ??? -ROM_END - ROM_START( pbobble ) ROM_REGION( 0x80000, "maincpu", 0 ) /* 512k for 68000 code */ ROM_LOAD16_BYTE( "pb-1c18.bin", 0x00000, 0x40000, CRC(5de14f49) SHA1(91d537748f26e19a5c32de4b8dad341750de39ef) ) @@ -3089,6 +3071,24 @@ ROM_START( pbobble ) ROM_LOAD( "pb-ic15.bin", 0x000000, 0x100000, CRC(0840cbc4) SHA1(1adbd7aef44fa80832f63dfb8efdf69fd7256a57) ) ROM_END +ROM_START( bublbust ) // Purportedly a location test version, but has the same version number and build date as the released Japanese set below + ROM_REGION( 0x80000, "maincpu", 0 ) // 512k for 68000 code - located on Taito C0503005B main board + ROM_LOAD16_BYTE( "p.bobble_prg_h_kyotsu_6-15_c681.ic18", 0x00000, 0x40000, CRC(ba83e398) SHA1(2512ea5a805f0e5c470c4d216d679f3dc3c4aa82) ) // hand written label P.ボブル PRG H 共通 6/15 C681 + ROM_LOAD16_BYTE( "p.bobble_prg_l_usa_6-15_e9e1.ic2", 0x00001, 0x40000, CRC(a12cb3f2) SHA1(06271d3a0af101a959e6e777f1f9e99bae1e6076) ) // hand written label P.ボブル PRG L USA 6/15 E9E1 + + ROM_REGION( 0x20000, "audiocpu", 0 ) // 128k for Z80 code - located on Taito C0503005B main board + ROM_LOAD( "prg_snd.ic27", 0x00000, 0x20000, CRC(2f288fe0) SHA1(4ba707f4b3a1ca0e573652d1c733ee889f9fef8a) ) // hand written label PRG SND IC 27 - no checksum listed + + ROM_REGION( 0x100000, "tc0180vcu", 0 ) // located on Taito C0503002A ROM PCB + ROM_LOAD16_BYTE( "p.bobble_chr-1l_6-14_eaa0.ic11_ch_1_0l", 0x00000, 0x40000, CRC(8d3fa2f0) SHA1(3d36944e35081740469df61a40e538eb94ea2ef6) ) // hand written label P.ボブル CHR 1L 6/14 EAA0 + ROM_LOAD16_BYTE( "p.bobble_chr-1h_6-14_1515.ic12_ch_1_0h", 0x00001, 0x40000, CRC(a2eb4d32) SHA1(571811a543af50cc5e0f1d7aad9fc388919e93e6) ) // hand written label P.ボブル CHR 1H 6/14 1515 + ROM_LOAD16_BYTE( "p.bobble_chr-0l_6-14_86d5.ic7_ch_0_0l", 0x80000, 0x40000, CRC(80f1aab0) SHA1(f5cdb93aa702fb8ba91eaf8f470b6e2a61a581b5) ) // hand written label P.ボブル CHR 0L 6/14 86D5 + ROM_LOAD16_BYTE( "p.bobble_chr-0h_6-14_d180.ic8_ch_0_0h", 0x80001, 0x40000, CRC(d773cac8) SHA1(b008a21c39650a28cba402cd1c4de0567e275bc9) ) // hand written label P.ボブル CHR 0H 6/14 D180 (label torn, checksum illegible besides final 0) + + ROM_REGION( 0x100000, "ymsnd:adpcma", 0 ) // located on Taito C0503002A ROM PCB - Half the size of the Japanese ADPCMA sample ROM + ROM_LOAD( "cr40-kaigai-7bec.ic15_ach_0", 0x00000, 0x80000, CRC(f203ae52) SHA1(d41b880ef17eea6614e2911318db5cd070473381) ) // hand written label CR40 海外 7BEC +ROM_END + ROM_START( spacedx ) ROM_REGION( 0x80000, "maincpu", 0 ) /* 512k for 68000 code */ ROM_LOAD16_BYTE( "d89-06", 0x00000, 0x40000, CRC(7122751e) SHA1(4b4eb58af28f1988ff102251407449d0affbd4c2) ) @@ -3574,8 +3574,8 @@ GAME( 1993, ryujina, ryujin, selfeena, ryujin, taitob_state, init_taito_b, GAME( 1993, qzshowby, 0, qzshowby, qzshowby, taitob_state, init_taito_b, ROT0, "Taito Corporation", "Quiz Sekai wa SHOW by shobai (Japan)", MACHINE_SUPPORTS_SAVE ) -GAME( 1994, bublbust, 0, pbobble, pbobble, taitob_state, init_taito_b, ROT0, "Taito America Corporation", "Bubble Buster (USA, B-System)", MACHINE_SUPPORTS_SAVE ) // PUZZLE VER 2.0A 1994/06/15 15:28:30 - Location test but same build as Japan release? -GAME( 1994, pbobble, bublbust,pbobble, pbobble, taitob_state, init_taito_b, ROT0, "Taito Corporation", "Puzzle Bobble (Japan, B-System)", MACHINE_SUPPORTS_SAVE ) // PUZZLE VER 2.0J 1994/06/15 15:28:30 +GAME( 1994, pbobble, 0, pbobble, pbobble, taitob_state, init_taito_b, ROT0, "Taito Corporation", "Puzzle Bobble (Japan, B-System)", MACHINE_SUPPORTS_SAVE ) // PUZZLE VER 2.0J 1994/06/15 15:28:30 +GAME( 1994, bublbust, pbobble, pbobble, pbobble, taitob_state, init_taito_b, ROT0, "Taito America Corporation", "Bubble Buster (USA, B-System)", MACHINE_SUPPORTS_SAVE ) // PUZZLE VER 2.0A 1994/06/15 15:28:30 - Location test but same build as Japan release? GAME( 1994, spacedx, 0, spacedx, pbobble, taitob_state, init_taito_b, ROT0, "Taito Corporation", "Space Invaders DX (US, v2.1)", MACHINE_SUPPORTS_SAVE ) GAME( 1994, spacedxj, spacedx, spacedx, pbobble, taitob_state, init_taito_b, ROT0, "Taito Corporation", "Space Invaders DX (Japan, v2.1)", MACHINE_SUPPORTS_SAVE ) diff --git a/src/tools/srcclean.cpp b/src/tools/srcclean.cpp index 7f52c3c6feb..052d2a37334 100644 --- a/src/tools/srcclean.cpp +++ b/src/tools/srcclean.cpp @@ -38,6 +38,9 @@ may have spacing adjusted in a way that affects behaviour when uncommented + Known JSON limitations: + * Doesn't detect invalid numbers or literals + Known XML limitations: * No special handling for CDATA * No special handling for processing instructions @@ -102,14 +105,20 @@ protected: static constexpr char32_t HORIZONTAL_TAB = 0x0000'0009U; static constexpr char32_t LINE_FEED = 0x0000'000aU; static constexpr char32_t VERTICAL_TAB = 0x0000'000bU; + static constexpr char32_t FORM_FEED = 0x0000'000cU; + static constexpr char32_t C0_CONTROL_LAST = 0x0000'001fU; static constexpr char32_t SPACE = 0x0000'0020U; static constexpr char32_t DOUBLE_QUOTE = 0x0000'0022U; static constexpr char32_t SINGLE_QUOTE = 0x0000'0027U; + static constexpr char32_t ASTERISK = 0x0000'002aU; static constexpr char32_t HYPHEN_MINUS = 0x0000'002dU; + static constexpr char32_t SLASH = 0x0000'002fU; static constexpr char32_t QUESTION_MARK = 0x0000'003fU; static constexpr char32_t BACKSLASH = 0x0000'005cU; static constexpr char32_t BASIC_LATIN_LAST = 0x0000'007fU; static constexpr char32_t CYRILLIC_SUPPLEMENT_LAST = 0x0000'052fU; + static constexpr char32_t LINE_SEPARATOR = 0x0000'2028U; + static constexpr char32_t PARAGRAPH_SEPARATOR = 0x0000'2029U; template <typename OutputIt> cleaner_base(OutputIt &&output, newline newline_mode, unsigned tab_width); @@ -825,8 +834,6 @@ protected: void output_character(char32_t ch); private: - static constexpr char32_t ASTERISK = 0x0000'002aU; - static constexpr char32_t SLASH = 0x0000'002fU; static constexpr char32_t UPPERCASE_FIRST = 0x0000'0041U; static constexpr char32_t UPPERCASE_B = 0x0000'0042U; static constexpr char32_t UPPERCASE_X = 0x0000'0058U; @@ -1741,6 +1748,289 @@ void lua_cleaner::process_long_string_constant(char32_t ch) /*************************************************************************** + JSON DATA CLEANER CLASS +***************************************************************************/ + +class json_cleaner : public cleaner_base +{ +public: + template <typename OutputIt> + json_cleaner(OutputIt &&output, newline newline_mode, unsigned tab_width); + + virtual bool affected() const override; + virtual void summarise(std::ostream &os) const override; + +protected: + void output_character(char32_t ch); + +private: + enum class parse_state + { + DEFAULT, + COMMENT, + LINE_COMMENT, + STRING_CONSTANT + }; + + virtual void process_characters(char32_t const *begin, char32_t const *end) override; + virtual void input_complete() override; + + void process_default(char32_t ch); + void process_comment(char32_t ch); + void process_line_comment(char32_t ch); + void process_text(char32_t ch); + + parse_state m_parse_state = parse_state::DEFAULT; + std::uint64_t m_input_line = 1U; + bool m_escape = false; + std::uint64_t m_comment_line = 0U; + + std::uint64_t m_tabs_escaped = 0U; + std::uint64_t m_newlines_escaped = 0U; + std::uint64_t m_form_feeds_escaped = 0U; + std::uint64_t m_line_separators_escaped = 0U; + std::uint64_t m_paragraph_separators_escaped = 0U; + std::uint64_t m_c0_control_escaped = 0U; + std::uint64_t m_non_ascii = 0U; +}; + + +template <typename OutputIt> +json_cleaner::json_cleaner( + OutputIt &&output, + newline newline_mode, + unsigned tab_width) + : cleaner_base(std::forward<OutputIt>(output), newline_mode, tab_width) +{ +} + + +bool json_cleaner::affected() const +{ + return + cleaner_base::affected() || + m_tabs_escaped || + m_newlines_escaped || + m_form_feeds_escaped || + m_line_separators_escaped || + m_paragraph_separators_escaped || + m_c0_control_escaped || + m_non_ascii; +} + + +void json_cleaner::summarise(std::ostream &os) const +{ + cleaner_base::summarise(os); + if (m_tabs_escaped) + util::stream_format(os, "%1$u tab(s) escaped\n", m_tabs_escaped); + if (m_newlines_escaped) + util::stream_format(os, "%1$u line feed(s) escaped\n", m_newlines_escaped); + if (m_form_feeds_escaped) + util::stream_format(os, "%1$u form feed(s) escaped\n", m_form_feeds_escaped); + if (m_line_separators_escaped) + util::stream_format(os, "%1$u line separator(s) escaped\n", m_line_separators_escaped); + if (m_paragraph_separators_escaped) + util::stream_format(os, "%1$u paragraph separator(s) escaped\n", m_paragraph_separators_escaped); + if (m_c0_control_escaped) + util::stream_format(os, "%1$u C0 control character(s) escaped\n", m_c0_control_escaped); + if (m_non_ascii) + util::stream_format(os, "%1$u non-ASCII character(s) replaced\n", m_non_ascii); +} + + +void json_cleaner::output_character(char32_t ch) +{ + switch (m_parse_state) + { + case parse_state::DEFAULT: + if (BASIC_LATIN_LAST < ch) + { + ++m_non_ascii; + ch = QUESTION_MARK; + } + break; + case parse_state::COMMENT: + case parse_state::LINE_COMMENT: + case parse_state::STRING_CONSTANT: + break; + } + + cleaner_base::output_character(ch); +} + + +void json_cleaner::process_characters(char32_t const *begin, char32_t const *end) +{ + while (begin != end) + { + char32_t const ch(*begin++); + switch (m_parse_state) + { + case parse_state::DEFAULT: + process_default(ch); + break; + case parse_state::COMMENT: + process_comment(ch); + break; + case parse_state::LINE_COMMENT: + process_line_comment(ch); + break; + case parse_state::STRING_CONSTANT: + process_text(ch); + break; + } + + if (LINE_FEED == ch) + ++m_input_line; + } +} + + +void json_cleaner::input_complete() +{ + switch (m_parse_state) + { + case parse_state::COMMENT: + throw std::runtime_error(util::string_format("unterminated multi-line comment beginning on line %1$u", m_comment_line)); + case parse_state::STRING_CONSTANT: + throw std::runtime_error(util::string_format("unterminated string literal on line %1$u", m_input_line)); + default: + break; + } +} + + +void json_cleaner::process_default(char32_t ch) +{ + switch (ch) + { + case DOUBLE_QUOTE: + m_parse_state = parse_state::STRING_CONSTANT; + break; + case ASTERISK: + if (m_escape) + { + m_parse_state = parse_state::COMMENT; + m_comment_line = m_input_line; + set_tab_limit(); + } + break; + case SLASH: + if (m_escape) + m_parse_state = parse_state::LINE_COMMENT; + break; + } + m_escape = (SLASH == ch) && !m_escape; + output_character(ch); +} + + +void json_cleaner::process_comment(char32_t ch) +{ + switch (ch) + { + case SLASH: + if (m_escape) + { + m_parse_state = parse_state::DEFAULT; + m_comment_line = 0U; + output_character(ch); + reset_tab_limit(); + } + else + { + output_character(ch); + } + m_escape = false; + break; + default: + m_escape = ASTERISK == ch; + output_character(ch); + } +} + + +void json_cleaner::process_line_comment(char32_t ch) +{ + switch (ch) + { + case LINE_FEED: + m_parse_state = parse_state::DEFAULT; + [[fallthrough]]; + default: + output_character(ch); + } +} + + +void json_cleaner::process_text(char32_t ch) +{ + switch (ch) + { + case HORIZONTAL_TAB: + ++m_tabs_escaped; + if (!m_escape) + output_character(BACKSLASH); + output_character(char32_t(std::uint8_t('t'))); + break; + case LINE_FEED: + ++m_newlines_escaped; + if (!m_escape) + output_character(BACKSLASH); + output_character(char32_t(std::uint8_t('n'))); + break; + case FORM_FEED: + ++m_form_feeds_escaped; + if (!m_escape) + output_character(BACKSLASH); + output_character(char32_t(std::uint8_t('f'))); + break; + case LINE_SEPARATOR: + ++m_line_separators_escaped; + if (!m_escape) + output_character(BACKSLASH); + output_character(char32_t(std::uint8_t('u'))); + output_character(char32_t(std::uint8_t('2'))); + output_character(char32_t(std::uint8_t('0'))); + output_character(char32_t(std::uint8_t('2'))); + output_character(char32_t(std::uint8_t('8'))); + break; + case PARAGRAPH_SEPARATOR: + ++m_paragraph_separators_escaped; + if (!m_escape) + output_character(BACKSLASH); + output_character(char32_t(std::uint8_t('u'))); + output_character(char32_t(std::uint8_t('2'))); + output_character(char32_t(std::uint8_t('0'))); + output_character(char32_t(std::uint8_t('2'))); + output_character(char32_t(std::uint8_t('9'))); + break; + default: + if (C0_CONTROL_LAST >= ch) + { + ++m_c0_control_escaped; + if (!m_escape) + output_character(BACKSLASH); + output_character(char32_t(std::uint8_t('u'))); + output_character(char32_t(std::uint8_t('0'))); + output_character(char32_t(std::uint8_t('0'))); + output_character(char32_t(std::uint8_t('0') + (ch / 0x10U))); + output_character(char32_t(std::uint8_t('0') + (ch % 0x10U))); + } + else + { + output_character(ch); + if (!m_escape && (DOUBLE_QUOTE == ch)) + m_parse_state = parse_state::DEFAULT; + } + } + m_escape = (BACKSLASH == ch) && !m_escape; +} + + + +/*************************************************************************** XML DATA CLEANER CLASS ***************************************************************************/ @@ -1894,6 +2184,13 @@ bool is_lua_source_extension(char const *ext) } +bool is_json_extension(char const *ext) +{ + return + !core_stricmp(ext, ".json"); +} + + bool is_xml_extension(char const *ext) { return @@ -1974,12 +2271,15 @@ int main(int argc, char *argv[]) char const *const ext(std::strrchr(argv[i], '.')); bool const is_c_file(ext && is_c_source_extension(ext)); bool const is_lua_file(ext && is_lua_source_extension(ext)); + bool const is_json_file(ext && is_json_extension(ext)); bool const is_xml_file(ext && is_xml_extension(ext)); std::unique_ptr<cleaner_base> cleaner; if (is_c_file) cleaner = std::make_unique<cpp_cleaner>(std::back_inserter(output), newline_mode, 4U); else if (is_lua_file) cleaner = std::make_unique<lua_cleaner>(std::back_inserter(output), newline_mode, 4U); + else if (is_json_file) + cleaner = std::make_unique<json_cleaner>(std::back_inserter(output), newline_mode, 4U); else if (is_xml_file) cleaner = std::make_unique<xml_cleaner>(std::back_inserter(output), newline_mode, 4U); else |