summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/chains/pillarbox_right_horizontal.json
blob: d7133aadbcc36393aa7218d3155ba72909e33085 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//============================================================
//
//  pillarbox_right_horizontal.json: Fills in the right
//    portion of a pillarbox when displaying 4:3 content
//    on a 16:9 screen.
//
//============================================================
{
	"name": "Horizontal Pillarbox, Right",
	"author": "Ryan Holtz",
	
	"sliders": [
		{ "type": "float", "name": "saturation", "text": "Saturation",   "default": 25, "max": 100, "min": 0, "step": 1, "scale": 0.01, "format": "%1.2f", "screen": "raster" }
	],
	
	"targets": [
		{
			"name": "guest",
			"mode": "guest",
			"bilinear": true,
			"doublebuffer": true
		},
		{
			"name": "internal",
			"mode": "native",
			"bilinear": true,
			"doublebuffer": true
		}
	],
	
	"passes": [
		{	"effect": "pillarbox_right_horizontal/blit",
			"name": "Blit to scalable target",
			"input": [
				{ "sampler": "s_tex", "target": "screen" }
			],
			"output": "guest"
		},
		{	"effect": "pillarbox_right_horizontal/gaussian",
			"name": "Gaussian Blur 1, Horizontal",
			"uniforms": [
				{ "uniform": "u_dimension", "value": [ 1.0, 0.0 ] }
			],
			"input": [
				{ "sampler": "s_tex", "target": "guest" }
			],
			"output": "internal"
		},
		{	"effect": "pillarbox_right_horizontal/gaussian",
			"name": "Gaussian Blur 1, Vertical",
			"uniforms": [
				{ "uniform": "u_dimension", "value": [ 0.0, 1.0 ] }
			],
			"input": [
				{ "sampler": "s_tex", "target": "internal" }
			],
			"output": "internal"
		},
		{
			"effect": "pillarbox_right_horizontal/saturation",
			"name": "Saturation Pass",
			"disablewhen": [
				{ "type": "slider", "condition": "equal", "name": "saturation", "value": 100 }
			],
			"uniforms": [
				{ "uniform": "u_saturation", "slider": "saturation" }
			],
			"input": [
				{ "sampler": "s_tex", "target": "internal" }
			],
			"output": "internal"
		},
		{	"effect": "pillarbox_right_horizontal/gaussian",
			"name": "Gaussian Blur 2, Horizontal",
			"uniforms": [
				{ "uniform": "u_dimension", "value": [ 1.0, 0.0 ] }
			],
			"input": [
				{ "sampler": "s_tex", "target": "internal" }
			],
			"output": "internal"
		},
		{	"effect": "pillarbox_right_horizontal/gaussian",
			"name": "Gaussian Blur 2, Vertical",
			"uniforms": [
				{ "uniform": "u_dimension", "value": [ 0.0, 1.0 ] }
			],
			"input": [
				{ "sampler": "s_tex", "target": "internal" }
			],
			"output": "internal"
		},
		{	"effect": "pillarbox_right_horizontal/blit",
			"name": "Final Blit",
			"input": [
				{ "sampler": "s_tex", "target": "internal" }
			],
			"output": "output"
		}
	]
}