summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/chains/crt-geom.json
diff options
context:
space:
mode:
Diffstat (limited to 'bgfx/chains/crt-geom.json')
-rw-r--r--bgfx/chains/crt-geom.json362
1 files changed, 181 insertions, 181 deletions
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"
+ }
+ ]
}