mirror of
https://github.com/holub/mame
synced 2025-06-05 04:16:28 +03:00
Minor fixups to pillarboxing shaders
This commit is contained in:
parent
250a5cc805
commit
e6a54bcc23
@ -58,20 +58,6 @@
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "pillarbox_left_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_left_horizontal/gaussian",
|
||||
"name": "Gaussian Blur 2, Horizontal",
|
||||
"uniforms": [
|
||||
@ -92,6 +78,20 @@
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "pillarbox_left_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_left_horizontal/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
|
@ -58,20 +58,6 @@
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "pillarbox_left_vertical/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_left_vertical/gaussian",
|
||||
"name": "Gaussian Blur 2, Horizontal",
|
||||
"uniforms": [
|
||||
@ -92,6 +78,20 @@
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "pillarbox_left_vertical/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_left_vertical/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
|
@ -58,20 +58,6 @@
|
||||
],
|
||||
"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": [
|
||||
@ -92,6 +78,20 @@
|
||||
],
|
||||
"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/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
|
@ -58,20 +58,6 @@
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "pillarbox_right_vertical/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_vertical/gaussian",
|
||||
"name": "Gaussian Blur 2, Horizontal",
|
||||
"uniforms": [
|
||||
@ -92,6 +78,20 @@
|
||||
],
|
||||
"output": "internal"
|
||||
},
|
||||
{
|
||||
"effect": "pillarbox_right_vertical/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_vertical/blit",
|
||||
"name": "Final Blit",
|
||||
"input": [
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -9,6 +9,6 @@ $output v_texcoord0, v_color0
|
||||
void main()
|
||||
{
|
||||
gl_Position = mul(u_viewProj, vec4(a_position.xy, 0.0, 1.0));
|
||||
v_texcoord0 = a_texcoord0 * vec2(0.16666666 * 0.8, 1.0 * 0.8) + vec2(0.2, 0.1);
|
||||
v_texcoord0 = a_texcoord0 * vec2(0.16666666 * 0.9, 1.0 * 0.8) + vec2(0.1, 0.1);
|
||||
v_color0 = a_color0;
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ $output v_texcoord0, v_color0
|
||||
void main()
|
||||
{
|
||||
gl_Position = mul(u_viewProj, vec4(a_position.xy, 0.0, 1.0));
|
||||
v_texcoord0 = a_texcoord0 * vec2(1.0 * 0.8, 0.740740 * 0.8) + vec2(0.1, 0.25926);
|
||||
v_texcoord0 = a_texcoord0 * vec2(1.0 * 0.8, 0.685185 * 0.9) + vec2(0.1, 0.1);
|
||||
v_color0 = a_color0;
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ $output v_texcoord0, v_color0
|
||||
void main()
|
||||
{
|
||||
gl_Position = mul(u_viewProj, vec4(a_position.xy, 0.0, 1.0));
|
||||
v_texcoord0 = a_texcoord0 * vec2(0.16666666 * 0.8, 1.0 * 0.8) + vec2(1.0 - 0.3333333333, 0.1);
|
||||
v_texcoord0 = a_texcoord0 * vec2(0.16666666 * 0.9, 1.0 * 0.8) + vec2(0.9 - 0.16666666 * 0.9, 0.1);
|
||||
v_color0 = a_color0;
|
||||
}
|
||||
|
@ -9,6 +9,6 @@ $output v_texcoord0, v_color0
|
||||
void main()
|
||||
{
|
||||
gl_Position = mul(u_viewProj, vec4(a_position.xy, 0.0, 1.0));
|
||||
v_texcoord0 = a_texcoord0 * vec2(1.0 * 0.8, 0.740740 * 0.8) + vec2(0.1, 0.055555);
|
||||
v_texcoord0 = a_texcoord0 * vec2(1.0 * 0.8, 0.685185 * 0.9) + vec2(0.1, 0.9 - 0.685185 * 0.9);
|
||||
v_color0 = a_color0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user