mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
ecf1e166fc
* fixed target texture dimension when -intoverscan is used (this fixes the appereance of scanline and shadow mask) * added target_scale and screen_count uniforms * rounded corners now remain aligned with screen bounds when -intoverscan is used (single screen only)
43 lines
No EOL
1.9 KiB
JSON
43 lines
No EOL
1.9 KiB
JSON
// license:BSD-3-Clause
|
|
// copyright-holders:ImJezze
|
|
//============================================================
|
|
//
|
|
// distortion.json: Output distortion shader for CRT
|
|
// simulation.
|
|
//
|
|
//============================================================
|
|
{
|
|
"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 ] }
|
|
]
|
|
} |