2016-04-16 15:30:19 +02:00
|
|
|
// license:BSD-3-Clause
|
|
|
|
// copyright-holders:Ryan Holtz
|
|
|
|
//============================================================
|
|
|
|
//
|
|
|
|
// pillarbox_left_horizontal.json: Fills in the left
|
|
|
|
// portion of a pillarbox when displaying 4:3 content
|
|
|
|
// on a 16:9 screen.
|
|
|
|
//
|
|
|
|
//============================================================
|
|
|
|
{
|
|
|
|
"name": "Horizontal Pillarbox, Left",
|
|
|
|
"author": "Ryan Holtz",
|
2021-08-19 21:47:40 +02:00
|
|
|
|
2016-04-16 15:30:19 +02:00
|
|
|
"sliders": [
|
2016-04-22 19:32:35 +02:00
|
|
|
{ "type": "float", "name": "saturation", "text": "Saturation", "default": 0.25, "max": 1.00, "min": 0.00, "step": 0.01, "format": "%1.2f", "screen": "raster" }
|
2016-04-16 15:30:19 +02:00
|
|
|
],
|
2021-08-19 21:47:40 +02:00
|
|
|
|
2016-04-16 15:30:19 +02:00
|
|
|
"targets": [
|
|
|
|
{
|
|
|
|
"name": "guest",
|
|
|
|
"mode": "guest",
|
|
|
|
"bilinear": true,
|
|
|
|
"doublebuffer": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "internal",
|
|
|
|
"mode": "native",
|
|
|
|
"bilinear": true,
|
|
|
|
"doublebuffer": true
|
|
|
|
}
|
|
|
|
],
|
2021-08-19 21:47:40 +02:00
|
|
|
|
2016-04-16 15:30:19 +02:00
|
|
|
"passes": [
|
2021-08-19 21:47:40 +02:00
|
|
|
{ "effect": "misc/blit",
|
2016-04-16 15:30:19 +02:00
|
|
|
"name": "Blit to scalable target",
|
|
|
|
"input": [
|
|
|
|
{ "sampler": "s_tex", "target": "screen" }
|
|
|
|
],
|
|
|
|
"output": "guest"
|
|
|
|
},
|
2021-08-19 21:47:40 +02:00
|
|
|
{ "effect": "pillarbox_left_horizontal/gaussian",
|
2016-04-16 15:30:19 +02:00
|
|
|
"name": "Gaussian Blur 1, Horizontal",
|
|
|
|
"uniforms": [
|
|
|
|
{ "uniform": "u_dimension", "value": [ 1.0, 0.0 ] }
|
|
|
|
],
|
|
|
|
"input": [
|
|
|
|
{ "sampler": "s_tex", "target": "guest" }
|
|
|
|
],
|
|
|
|
"output": "internal"
|
|
|
|
},
|
2021-08-19 21:47:40 +02:00
|
|
|
{ "effect": "pillarbox_left_horizontal/gaussian",
|
2016-04-16 15:30:19 +02:00
|
|
|
"name": "Gaussian Blur 1, Vertical",
|
|
|
|
"uniforms": [
|
|
|
|
{ "uniform": "u_dimension", "value": [ 0.0, 1.0 ] }
|
|
|
|
],
|
|
|
|
"input": [
|
|
|
|
{ "sampler": "s_tex", "target": "internal" }
|
|
|
|
],
|
|
|
|
"output": "internal"
|
|
|
|
},
|
2021-08-19 21:47:40 +02:00
|
|
|
{ "effect": "pillarbox_left_horizontal/gaussian",
|
2016-04-17 20:43:10 +02:00
|
|
|
"name": "Gaussian Blur 2, Horizontal",
|
2016-04-16 15:30:19 +02:00
|
|
|
"uniforms": [
|
2016-04-17 20:43:10 +02:00
|
|
|
{ "uniform": "u_dimension", "value": [ 1.0, 0.0 ] }
|
2016-04-16 15:30:19 +02:00
|
|
|
],
|
|
|
|
"input": [
|
|
|
|
{ "sampler": "s_tex", "target": "internal" }
|
|
|
|
],
|
|
|
|
"output": "internal"
|
|
|
|
},
|
2021-08-19 21:47:40 +02:00
|
|
|
{ "effect": "pillarbox_left_horizontal/gaussian",
|
2016-04-17 20:43:10 +02:00
|
|
|
"name": "Gaussian Blur 2, Vertical",
|
2016-04-16 15:30:19 +02:00
|
|
|
"uniforms": [
|
2016-04-17 20:43:10 +02:00
|
|
|
{ "uniform": "u_dimension", "value": [ 0.0, 1.0 ] }
|
2016-04-16 15:30:19 +02:00
|
|
|
],
|
|
|
|
"input": [
|
|
|
|
{ "sampler": "s_tex", "target": "internal" }
|
|
|
|
],
|
|
|
|
"output": "internal"
|
|
|
|
},
|
2016-04-17 20:43:10 +02:00
|
|
|
{
|
2016-05-27 14:45:28 +02:00
|
|
|
"effect": "pillarbox_left_horizontal/offset_sat",
|
2016-04-17 20:43:10 +02:00
|
|
|
"name": "Saturation Pass",
|
|
|
|
"disablewhen": [
|
|
|
|
{ "type": "slider", "condition": "equal", "name": "saturation", "value": 100 }
|
|
|
|
],
|
2016-04-16 15:30:19 +02:00
|
|
|
"uniforms": [
|
2016-04-17 20:43:10 +02:00
|
|
|
{ "uniform": "u_saturation", "slider": "saturation" }
|
2016-04-16 15:30:19 +02:00
|
|
|
],
|
|
|
|
"input": [
|
|
|
|
{ "sampler": "s_tex", "target": "internal" }
|
|
|
|
],
|
|
|
|
"output": "internal"
|
|
|
|
},
|
2021-08-19 21:47:40 +02:00
|
|
|
{ "effect": "misc/blit",
|
2016-04-16 15:30:19 +02:00
|
|
|
"name": "Final Blit",
|
|
|
|
"input": [
|
|
|
|
{ "sampler": "s_tex", "target": "internal" }
|
|
|
|
],
|
|
|
|
"output": "output"
|
|
|
|
}
|
|
|
|
]
|
2021-08-19 21:47:40 +02:00
|
|
|
}
|