Major D3D and BGFX code refactoring and bug fixes: (#10858) [Ryan Holtz]

* render/bgfx: Improved clearing and blending. Added prescale support. Fixes MT07586, MT07587, MT08084.
* render/bgfx: Fixed blend and tint handling. (Fixes Github #1953).
* render/bgfx/blendreader.cpp: Support non-separated blend mode specification for BGFX effects.
* render/bgfx: Reworked how horizontally-padded screen textures are handled. Likely fixes MT08512 and MT08505.
* render/bgfx: Ensure that a texture's width margin is updated in all cases.
* render/d3d/d3dhlsl.cpp: Fixed tinting in HLSL post-processing mode.
* render/d3d/d3dhlsl.cpp: Avoid most redundant state-setting calls. Reduces D3D API calls by about 90% on fruit machine drivers.
* render/d3d/d3dhlsl.cpp: Assign SourceDims and QuadDims uniforms to only those effects that use them.
* machine/laserdsc.cpp: Always add video quad to screen container, adjust tint based on m_videoenable instead.
This commit is contained in:
MooglyGuy 2023-01-28 17:59:25 +01:00 committed by GitHub
parent cc7ad69ddd
commit 5671484fc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
567 changed files with 2077 additions and 1087 deletions

View File

@ -283,7 +283,6 @@
}, },
{ {
"effect": "crt-geom/phosphor_apply", "effect": "crt-geom/phosphor_apply",
"applytint": true,
"name": "phosphor apply", "name": "phosphor apply",
"uniforms": [ "uniforms": [
{ "uniform": "u_phosphor_power", "slider": "phosphor_power" }, { "uniform": "u_phosphor_power", "slider": "phosphor_power" },

View File

@ -163,7 +163,6 @@
"passes": [ "passes": [
{ {
"effect": "crt-geom/crt-geom", "effect": "crt-geom/crt-geom",
"applytint": true,
"name": "CRT", "name": "CRT",
"uniforms": [ "uniforms": [
{ "uniform": "curvature", "slider": "curvature" }, { "uniform": "curvature", "slider": "curvature" },

View File

@ -3,12 +3,12 @@
"targets": [ "targets": [
{ "name": "temp", { "name": "temp",
"mode": "guest", "mode": "guest",
"bilinear": true "bilinear": true,
"user_prescale": true
} }
], ],
"passes": [ "passes": [
{ "effect": "misc/blit", { "effect": "misc/blit",
"applytint": true,
"name": "Copy To Filtered Texture", "name": "Copy To Filtered Texture",
"input": [ "input": [
{ "sampler": "s_tex", "texture": "screen" } { "sampler": "s_tex", "texture": "screen" }

View File

@ -26,7 +26,6 @@
"passes": [ "passes": [
{ {
"effect": "eagle/supereagle", "effect": "eagle/supereagle",
"applytint": true,
"name": "Super Eagle pass", "name": "Super Eagle pass",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" }, { "sampler": "decal", "texture": "screen" },

View File

@ -204,7 +204,6 @@
"input": [ "input": [
{ "sampler": "s_tex", "texture": "screen" } { "sampler": "s_tex", "texture": "screen" }
], ],
"applytint": true,
"output": "ntsc" "output": "ntsc"
}, },
{ {
@ -349,7 +348,6 @@
"input": [ "input": [
{ "sampler": "s_tex", "texture": "screen" } { "sampler": "s_tex", "texture": "screen" }
], ],
"applytint": true,
"output": "guest" "output": "guest"
}, },
{ "effect": "hlsl/color", { "effect": "hlsl/color",

View File

@ -43,7 +43,6 @@
"passes": [ "passes": [
{ {
"effect": "hqx/hq2x", "effect": "hqx/hq2x",
"applytint": true,
"name": "HQ2x pass", "name": "HQ2x pass",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" }, { "sampler": "decal", "texture": "screen" },

View File

@ -43,7 +43,6 @@
"passes": [ "passes": [
{ {
"effect": "hqx/hq3x", "effect": "hqx/hq3x",
"applytint": true,
"name": "HQ3x pass", "name": "HQ3x pass",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" }, { "sampler": "decal", "texture": "screen" },

View File

@ -43,7 +43,6 @@
"passes": [ "passes": [
{ {
"effect": "hqx/hq4x", "effect": "hqx/hq4x",
"applytint": true,
"name": "HQ4x pass", "name": "HQ4x pass",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" }, { "sampler": "decal", "texture": "screen" },

View File

@ -123,7 +123,6 @@
}, },
{ {
"effect": "lcd-grid/lcd-grid", "effect": "lcd-grid/lcd-grid",
"applytint": true,
"name": "LCD", "name": "LCD",
"uniforms": [ "uniforms": [
{ "uniform": "u_rsubpix", "slider": "rsubpix" }, { "uniform": "u_rsubpix", "slider": "rsubpix" },

View File

@ -10,7 +10,6 @@
"passes": [ "passes": [
{ {
"effect": "misc/blit", "effect": "misc/blit",
"applytint": true,
"name": "Copy To Filtered Texture", "name": "Copy To Filtered Texture",
"input": [ "input": [
{ "sampler": "s_tex", "texture": "screen" } { "sampler": "s_tex", "texture": "screen" }

View File

@ -2,7 +2,6 @@
"author": "Ryan Holtz", "author": "Ryan Holtz",
"passes": [ "passes": [
{ "effect": "misc/blit", { "effect": "misc/blit",
"applytint": true,
"name": "Unfiltered Upscale", "name": "Unfiltered Upscale",
"input": [ "input": [
{ "sampler": "s_tex", "texture": "screen" } { "sampler": "s_tex", "texture": "screen" }

View File

@ -42,7 +42,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/super-xbr/super-2xbr-3d-pass0", "effect": "xbr/super-xbr/super-2xbr-3d-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "s0", "texture": "screen" } { "sampler": "s0", "texture": "screen" }

View File

@ -42,7 +42,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/super-xbr/super-2xbr-3d-pass0", "effect": "xbr/super-xbr/super-2xbr-3d-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "s0", "texture": "screen" } { "sampler": "s0", "texture": "screen" }

View File

@ -42,7 +42,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/super-xbr/super-4xbr-3d-pass0", "effect": "xbr/super-xbr/super-4xbr-3d-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "s0", "texture": "screen" } { "sampler": "s0", "texture": "screen" }

View File

@ -42,7 +42,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/super-xbr/super-4xbr-3d-pass0", "effect": "xbr/super-xbr/super-4xbr-3d-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "s0", "texture": "screen" } { "sampler": "s0", "texture": "screen" }

View File

@ -49,7 +49,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/super-xbr/super-xbr-pass0", "effect": "xbr/super-xbr/super-xbr-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "s0", "texture": "screen" } { "sampler": "s0", "texture": "screen" }

View File

@ -49,7 +49,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/super-xbr/super-xbr-pass0", "effect": "xbr/super-xbr/super-xbr-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "s0", "texture": "screen" } { "sampler": "s0", "texture": "screen" }

View File

@ -63,7 +63,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/super-xbr/super-xbr-pass0", "effect": "xbr/super-xbr/super-xbr-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "s0", "texture": "screen" } { "sampler": "s0", "texture": "screen" }

View File

@ -48,7 +48,6 @@
"passes": [ "passes": [
{ {
"effect": "misc/deposterize-pass0", "effect": "misc/deposterize-pass0",
"applytint": true,
"name": "Deposterize, Pass 0", "name": "Deposterize, Pass 0",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -42,7 +42,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/super-xbr/super-xbr-fast-pass0", "effect": "xbr/super-xbr/super-xbr-fast-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "s0", "texture": "screen" } { "sampler": "s0", "texture": "screen" }

View File

@ -55,7 +55,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/super-xbr/super-xbr-fast-pass0", "effect": "xbr/super-xbr/super-xbr-fast-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "s0", "texture": "screen" } { "sampler": "s0", "texture": "screen" }

View File

@ -22,7 +22,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-hybrid/2xbr-hybrid-v4b", "effect": "xbr/xbr-hybrid/2xbr-hybrid-v4b",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -32,7 +32,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-lv1-noblend", "effect": "xbr/xbr-lv1-noblend",
"applytint": true,
"name": "Main Pass", "name": "Main Pass",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -32,7 +32,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-lv2-3d", "effect": "xbr/xbr-lv2-3d",
"applytint": true,
"name": "Main Pass", "name": "Main Pass",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -41,7 +41,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass0", "effect": "xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -21,7 +21,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass0", "effect": "xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -15,7 +15,6 @@
"passes": [ "passes": [
{ {
"effect": "misc/deposterize-pass0", "effect": "misc/deposterize-pass0",
"applytint": true,
"name": "Deposterize, Pass 0", "name": "Deposterize, Pass 0",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -32,7 +32,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-lv2-fast", "effect": "xbr/xbr-lv2-fast",
"applytint": true,
"name": "Main Pass", "name": "Main Pass",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -42,7 +42,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-lv2-multipass/xbr-lv2-c-pass0", "effect": "xbr/xbr-lv2-multipass/xbr-lv2-c-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -32,7 +32,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-lv2-noblend", "effect": "xbr/xbr-lv2-noblend",
"applytint": true,
"name": "Main Pass", "name": "Main Pass",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -32,7 +32,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-lv2", "effect": "xbr/xbr-lv2",
"applytint": true,
"name": "Main Pass", "name": "Main Pass",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -42,7 +42,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-lv3-multipass/xbr-lv3-pass0", "effect": "xbr/xbr-lv3-multipass/xbr-lv3-pass0",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -32,7 +32,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-lv3-noblend", "effect": "xbr/xbr-lv3-noblend",
"applytint": true,
"name": "Main Pass", "name": "Main Pass",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -32,7 +32,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-lv3", "effect": "xbr/xbr-lv3",
"applytint": true,
"name": "Main Pass", "name": "Main Pass",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -56,7 +56,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass1", "effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass1",
"applytint": true,
"name": "Pass 1", "name": "Pass 1",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -49,7 +49,6 @@
"passes": [ "passes": [
{ {
"effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass1", "effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass1",
"applytint": true,
"name": "Pass 0", "name": "Pass 0",
"input": [ "input": [
{ "sampler": "decal", "texture": "screen" } { "sampler": "decal", "texture": "screen" }

View File

@ -50,6 +50,7 @@
"uniforms": [ "uniforms": [
{ "name": "s_p", "type": "int", "values": [ 1.0 ] }, { "name": "s_p", "type": "int", "values": [ 1.0 ] },
{ "name": "SB_THRESHOLD", "type": "vec4", "values": [ 0.2, 0.2, 0.2, 0.0 ] }, { "name": "SB_THRESHOLD", "type": "vec4", "values": [ 0.2, 0.2, 0.2, 0.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -47,6 +47,7 @@
{ "name": "u_interp", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, { "name": "u_interp", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
{ "name": "halation", "type": "vec4", "values": [ 0.1, 0.0, 0.0, 0.0 ] }, { "name": "halation", "type": "vec4", "values": [ 0.1, 0.0, 0.0, 0.0 ] },
{ "name": "blurwidth", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, { "name": "blurwidth", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
{ "name": "rasterbloom", "type": "vec4", "values": [ 0.01,0.0,0.0,0.0 ] } { "name": "rasterbloom", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -42,6 +42,7 @@
{ "name": "spot_size", "type": "vec4", "values": [ 0.3, 0.0, 0.0, 0.0 ] }, { "name": "spot_size", "type": "vec4", "values": [ 0.3, 0.0, 0.0, 0.0 ] },
{ "name": "spot_growth", "type": "vec4", "values": [ 0.1, 0.0, 0.0, 0.0 ] }, { "name": "spot_growth", "type": "vec4", "values": [ 0.1, 0.0, 0.0, 0.0 ] },
{ "name": "spot_growth_power", "type": "vec4", "values": [ 3.0, 0.0, 0.0, 0.0 ] }, { "name": "spot_growth_power", "type": "vec4", "values": [ 3.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_interp", "type": "vec4", "values": [ 2.0,0.0,0.0,0.0 ] } { "name": "u_interp", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -24,6 +24,7 @@
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_width", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, { "name": "u_width", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_aspect", "type": "vec4", "values": [ 1.0, 0.75, 0.0, 0.0 ] }, { "name": "u_aspect", "type": "vec4", "values": [ 1.0, 0.75, 0.0, 0.0 ] },
{ "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] } { "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -24,6 +24,7 @@
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_width", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, { "name": "u_width", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_aspect", "type": "vec4", "values": [ 1.0, 0.75, 0.0, 0.0 ] }, { "name": "u_aspect", "type": "vec4", "values": [ 1.0, 0.75, 0.0, 0.0 ] },
{ "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] } { "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -23,6 +23,7 @@
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_lowpass_cutoff","type": "vec4", "values": [ 200.0, 0.0, 0.0, 0.0 ] }, { "name": "u_lowpass_cutoff","type": "vec4", "values": [ 200.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_lowpass_width", "type": "vec4", "values": [ 80.0, 0.0, 0.0, 0.0 ] }, { "name": "u_lowpass_width", "type": "vec4", "values": [ 80.0, 0.0, 0.0, 0.0 ] },
{ "name": "s_screen", "type": "int", "values": [ 0 ] } { "name": "s_screen", "type": "int", "values": [ 0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -24,6 +24,7 @@
{ "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_smooth", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, { "name": "u_smooth", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] },
{ "name": "s_screen", "type": "int", "values": [ 0 ] }, { "name": "s_screen", "type": "int", "values": [ 0 ] },
{ "name": "s_mipmap", "type": "int", "values": [ 1 ] } { "name": "s_mipmap", "type": "int", "values": [ 1 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -25,6 +25,7 @@
{ "name": "u_phosphor_power", "type": "vec4", "values": [ 1.3, 0.0, 0.0, 0.0 ] }, { "name": "u_phosphor_power", "type": "vec4", "values": [ 1.3, 0.0, 0.0, 0.0 ] },
{ "name": "u_phosphor_amplitude", "type": "vec4", "values": [ 0.2, 0.0, 0.0, 0.0 ] }, { "name": "u_phosphor_amplitude", "type": "vec4", "values": [ 0.2, 0.0, 0.0, 0.0 ] },
{ "name": "u_phosphor_cutoff", "type": "vec4", "values": [ 300.0, 0.0, 0.0, 0.0 ] }, { "name": "u_phosphor_cutoff", "type": "vec4", "values": [ 300.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] } { "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -25,6 +25,7 @@
{ "name": "u_phosphor_power", "type": "vec4", "values": [ 1.3, 0.0, 0.0, 0.0 ] }, { "name": "u_phosphor_power", "type": "vec4", "values": [ 1.3, 0.0, 0.0, 0.0 ] },
{ "name": "u_phosphor_amplitude","type": "vec4", "values": [ 0.2, 0.0, 0.0, 0.0 ] }, { "name": "u_phosphor_amplitude","type": "vec4", "values": [ 0.2, 0.0, 0.0, 0.0 ] },
{ "name": "u_phosphor_cutoff", "type": "vec4", "values": [ 300.0 ,0.0, 0.0, 0.0 ] }, { "name": "u_phosphor_cutoff", "type": "vec4", "values": [ 300.0 ,0.0, 0.0, 0.0 ] },
{ "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] } { "name": "u_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -58,6 +58,12 @@
// //
// NOTE: Some names correspond to special values that will be automatically filled by the BGFX // NOTE: Some names correspond to special values that will be automatically filled by the BGFX
// code if they are used by the shader. These names are: // code if they are used by the shader. These names are:
// "u_view_dims"
// The dimensions of the viewport.
// Valid values: xy
// "u_inv_view_dims"
// The reciprocal of u_view_dims.
// Valid values: xy
// "u_screen_dims" // "u_screen_dims"
// The dimensions of the first texture input if present, otherwise the dimensions of the output window. // The dimensions of the first texture input if present, otherwise the dimensions of the output window.
// Valid values: xy // Valid values: xy
@ -95,6 +101,7 @@
// "mat3": 9 floats // "mat3": 9 floats
// "mat4": 16 floats // "mat4": 16 floats
"values": [ 1.0 ] "values": [ 1.0 ]
} },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -30,6 +30,7 @@
"uniforms": [ "uniforms": [
{ "name": "decal", "type": "int", "values": [ 1.0 ] }, { "name": "decal", "type": "int", "values": [ 1.0 ] },
{ "name": "LUT", "type": "int", "values": [ 1.0 ] }, { "name": "LUT", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -25,6 +25,7 @@
"vertex": "vs_gui", "vertex": "vs_gui",
"fragment": "fs_gui", "fragment": "fs_gui",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] } { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -25,6 +25,7 @@
"vertex": "vs_gui", "vertex": "vs_gui",
"fragment": "fs_gui", "fragment": "fs_gui",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] } { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -10,9 +10,7 @@
"blend": { "blend": {
"equation": "add", "equation": "add",
"srcColor": "dstcolor", "srcColor": "dstcolor",
"dstColor": "0", "dstColor": "1-srcalpha"
"srcAlpha": "dstalpha",
"dstAlpha": "0"
}, },
"depth": { "depth": {
"function": "always" "function": "always"
@ -25,6 +23,7 @@
"vertex": "vs_gui", "vertex": "vs_gui",
"fragment": "fs_gui", "fragment": "fs_gui",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] } { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -6,13 +6,6 @@
// //
//============================================================ //============================================================
{ {
"blend": {
"equation": "add",
"srcColor": "1",
"dstColor": "0",
"srcAlpha": "1",
"dstAlpha": "0"
},
"depth": { "depth": {
"function": "always" "function": "always"
}, },
@ -24,6 +17,7 @@
"vertex": "vs_gui", "vertex": "vs_gui",
"fragment": "fs_gui", "fragment": "fs_gui",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] } { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -116,6 +116,7 @@
// "mat3": 9 floats // "mat3": 9 floats
// "mat4": 16 floats // "mat4": 16 floats
"values": [ 1.0 ] "values": [ 1.0 ]
} },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -28,6 +28,7 @@
{ "name": "u_y_gain", "type": "vec4", "values": [ 0.2124, 0.7011, 0.0866, 0.0 ] }, { "name": "u_y_gain", "type": "vec4", "values": [ 0.2124, 0.7011, 0.0866, 0.0 ] },
{ "name": "u_chroma_a", "type": "vec4", "values": [ 0.630, 0.340, 0.0, 0.0 ] }, { "name": "u_chroma_a", "type": "vec4", "values": [ 0.630, 0.340, 0.0, 0.0 ] },
{ "name": "u_chroma_b", "type": "vec4", "values": [ 0.310, 0.595, 0.0, 0.0 ] }, { "name": "u_chroma_b", "type": "vec4", "values": [ 0.310, 0.595, 0.0, 0.0 ] },
{ "name": "u_chroma_c", "type": "vec4", "values": [ 0.155, 0.070, 0.0, 0.0 ] } { "name": "u_chroma_c", "type": "vec4", "values": [ 0.155, 0.070, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -30,6 +30,7 @@
{ "name": "u_blu_ratios", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 0.0 ] }, { "name": "u_blu_ratios", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 0.0 ] },
{ "name": "u_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_scale", "type": "vec4", "values": [ 0.95, 0.95, 0.95, 0.0 ] }, { "name": "u_scale", "type": "vec4", "values": [ 0.95, 0.95, 0.95, 0.0 ] },
{ "name": "u_saturation", "type": "vec4", "values": [ 1.5, 0.0, 0.0, 0.0 ] } { "name": "u_saturation", "type": "vec4", "values": [ 1.5, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -32,6 +32,7 @@
{ "name": "u_converge_blue", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_converge_blue", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_radial_converge_red", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_radial_converge_red", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_radial_converge_green", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_radial_converge_green", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_radial_converge_blue", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } { "name": "u_radial_converge_blue", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -26,6 +26,7 @@
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_defocus", "type": "vec4", "values": [ 0.5, 0.5, 0.0, 0.0 ] } { "name": "u_defocus", "type": "vec4", "values": [ 0.5, 0.5, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -38,6 +38,7 @@
{ "name": "u_round_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_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_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 ] } { "name": "u_reflection", "type": "vec4", "values": [ 0.30, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -38,6 +38,7 @@
{ "name": "u_i_freq_response", "type": "vec4", "values": [ 1.2, 0.0, 0.0, 0.0 ] }, { "name": "u_i_freq_response", "type": "vec4", "values": [ 1.2, 0.0, 0.0, 0.0 ] },
{ "name": "u_q_freq_response", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, { "name": "u_q_freq_response", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
{ "name": "u_jitter_amount", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_jitter_amount", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_jitter_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } { "name": "u_jitter_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -33,6 +33,7 @@
{ "name": "u_p_value", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_p_value", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_scan_time", "type": "vec4", "values": [ 52.6, 0.0, 0.0, 0.0 ] }, { "name": "u_scan_time", "type": "vec4", "values": [ 52.6, 0.0, 0.0, 0.0 ] },
{ "name": "u_jitter_amount", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_jitter_amount", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_jitter_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } { "name": "u_jitter_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -28,6 +28,7 @@
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "s_prev", "type": "int", "values": [ 1.0 ] }, { "name": "s_prev", "type": "int", "values": [ 1.0 ] },
{ "name": "u_passthrough", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_passthrough", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_phosphor", "type": "vec4", "values": [ 0.7, 0.7, 0.7, 0.0 ] } { "name": "u_phosphor", "type": "vec4", "values": [ 0.7, 0.7, 0.7, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -44,6 +44,7 @@
{ "name": "u_power", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 0.0 ] }, { "name": "u_power", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 0.0 ] },
{ "name": "u_floor", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_floor", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_chroma_mode", "type": "vec4", "values": [ 3.0, 0.0, 0.0, 0.0 ] }, { "name": "u_chroma_mode", "type": "vec4", "values": [ 3.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_conversion_gain", "type": "vec4", "values": [ 0.299, 0.587, 0.114, 0.0 ] } { "name": "u_conversion_gain", "type": "vec4", "values": [ 0.299, 0.587, 0.114, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -27,6 +27,7 @@
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_source_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_source_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -39,6 +39,7 @@
{ "name": "u_scanline_jitter", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_scanline_jitter", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_scanline_height", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_scanline_height", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_scanline_variation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_scanline_variation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_jitter_amount", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } { "name": "u_jitter_amount", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -24,6 +24,7 @@
"uniforms": [ "uniforms": [
{ "name": "decal", "type": "int", "values": [ 1.0 ] }, { "name": "decal", "type": "int", "values": [ 1.0 ] },
{ "name": "LUT", "type": "int", "values": [ 1.0 ] }, { "name": "LUT", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -24,6 +24,7 @@
"uniforms": [ "uniforms": [
{ "name": "decal", "type": "int", "values": [ 1.0 ] }, { "name": "decal", "type": "int", "values": [ 1.0 ] },
{ "name": "LUT", "type": "int", "values": [ 1.0 ] }, { "name": "LUT", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -24,6 +24,7 @@
"uniforms": [ "uniforms": [
{ "name": "decal", "type": "int", "values": [ 1.0 ] }, { "name": "decal", "type": "int", "values": [ 1.0 ] },
{ "name": "LUT", "type": "int", "values": [ 1.0 ] }, { "name": "LUT", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -32,6 +32,7 @@
{ "name": "u_BGR", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_BGR", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_subpixsize", "type": "vec4", "values": [ 0.5, 0.63, 0.0, 0.0 ] }, { "name": "u_subpixsize", "type": "vec4", "values": [ 0.5, 0.63, 0.0, 0.0 ] },
{ "name": "u_LCDgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] }, { "name": "u_LCDgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] },
{ "name": "u_monitorgamma","type":"vec4","values": [ 2.2, 0.0, 0.0, 0.0 ] } { "name": "u_monitorgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -22,6 +22,7 @@
"uniforms": [ "uniforms": [
{ "name": "s_screen", "type": "int", "values": [ 0 ] }, { "name": "s_screen", "type": "int", "values": [ 0 ] },
{ "name": "s_motionblur", "type": "int", "values": [ 1 ] }, { "name": "s_motionblur", "type": "int", "values": [ 1 ] },
{ "name": "u_persistence","type":"vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] } { "name": "u_persistence", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -8,10 +8,10 @@
{ {
"blend": { "blend": {
"equation": "add", "equation": "add",
"srcColor": "srcalpha", "srcColor": "1",
"dstColor": "1-srcalpha", "dstColor": "0",
"srcAlpha": "srcalpha", "srcAlpha": "1",
"dstAlpha": "1-srcalpha" "dstAlpha": "0"
}, },
"depth": { "function": "always", "writeenable": false }, "depth": { "function": "always", "writeenable": false },
"cull": { "mode": "none" }, "cull": { "mode": "none" },
@ -21,6 +21,7 @@
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "s_pal", "type": "int", "values": [ 1.0 ] }, { "name": "s_pal", "type": "int", "values": [ 1.0 ] },
{ "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -21,10 +21,10 @@
// defaults (dstColor, dstAlpha): "0" // defaults (dstColor, dstAlpha): "0"
// //
// "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha" // "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha"
"srcColor": "srcalpha", "srcColor": "1",
"dstColor": "1-srcalpha", "dstColor": "0",
"srcAlpha": "srcalpha", "srcAlpha": "1",
"dstAlpha": "1-srcalpha" "dstAlpha": "0"
}, },
// depth (required): The depth state for this effect. // depth (required): The depth state for this effect.
@ -116,6 +116,7 @@
// "mat3": 9 floats // "mat3": 9 floats
// "mat4": 16 floats // "mat4": 16 floats
"values": [ 1.0 ] "values": [ 1.0 ]
} },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -21,10 +21,10 @@
// defaults (dstColor, dstAlpha): "0" // defaults (dstColor, dstAlpha): "0"
// //
// "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha" // "zero", "one", "invsrccolor", "invdstcolor", "invsrcalpha", and "invdstalpha" are provided as aliases for "0", "1", "1-srccolor", "1-dstcolor", "1-srcalpha", and "1-dstalpha"
"srcColor": "srcalpha", "srcColor": "1",
"dstColor": "1-srcalpha", "dstColor": "0",
"srcAlpha": "srcalpha", "srcAlpha": "1",
"dstAlpha": "1-srcalpha" "dstAlpha": "0"
}, },
// depth (required): The depth state for this effect. // depth (required): The depth state for this effect.
@ -120,6 +120,7 @@
{ "name": "s_pal", "type": "int", "values": [ 1.0 ] }, { "name": "s_pal", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -32,6 +32,7 @@
{ "name": "decal", "type": "int", "values": [ 1.0 ] }, { "name": "decal", "type": "int", "values": [ 1.0 ] },
{ "name": "EQ_THRESH1", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] }, { "name": "EQ_THRESH1", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] },
{ "name": "DIFF_THRESH1", "type": "vec4", "values": [ 0.06, 0.0, 0.0, 0.0 ] }, { "name": "DIFF_THRESH1", "type": "vec4", "values": [ 0.06, 0.0, 0.0, 0.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -32,6 +32,7 @@
{ "name": "decal", "type": "int", "values": [ 1.0 ] }, { "name": "decal", "type": "int", "values": [ 1.0 ] },
{ "name": "EQ_THRESH2", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] }, { "name": "EQ_THRESH2", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] },
{ "name": "DIFF_THRESH2", "type": "vec4", "values": [ 0.06, 0.0, 0.0, 0.0 ] }, { "name": "DIFF_THRESH2", "type": "vec4", "values": [ 0.06, 0.0, 0.0, 0.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -22,6 +22,7 @@
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "s_3dlut", "type": "int", "values": [ 1.0 ] }, { "name": "s_3dlut", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -25,6 +25,7 @@
"fragment": "chains/misc/fs_saturation", "fragment": "chains/misc/fs_saturation",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -0,0 +1,27 @@
// license:BSD-3-Clause
// copyright-holders:Ryan Holtz
//===============================================================
//
// texconv_argb32.json: An basic texture-to-target copy.
//
//===============================================================
{
"blend": {
"equation": "add",
"srcColor": "1",
"dstColor": "0",
"srcAlpha": "1",
"dstAlpha": "0"
},
"depth": { "function": "always", "writeenable": false },
"cull": { "mode": "none" },
"write": { "rgb": true, "alpha": true },
"vertex": "chains/misc/vs_resize_blit",
"fragment": "chains/misc/fs_blit",
"uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "s_pal", "type": "int", "values": [ 1.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_tex_bounds0", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 1.0 ] }
]
}

View File

@ -8,21 +8,23 @@
{ {
"blend": { "blend": {
"equation": "add", "equation": "add",
"srcColor": "srcalpha", "srcColor": "1",
"dstColor": "1-srcalpha", "dstColor": "0",
"srcAlpha": "srcalpha", "srcAlpha": "1",
"dstAlpha": "1-srcalpha" "dstAlpha": "0"
}, },
"depth": { "function": "always", "writeenable": false }, "depth": { "function": "always", "writeenable": false },
"cull": { "mode": "none" }, "cull": { "mode": "none" },
"write": { "rgb": true, "alpha": true }, "write": { "rgb": true, "alpha": true },
"vertex": "chains/misc/vs_blit", "vertex": "chains/misc/vs_resize_blit",
"fragment": "chains/misc/fs_blit_palette16", "fragment": "chains/misc/fs_blit_palette16",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "s_pal", "type": "int", "values": [ 1.0 ] }, { "name": "s_pal", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_tex_bounds0", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 1.0 ] }
] ]
} }

View File

@ -8,18 +8,20 @@
{ {
"blend": { "blend": {
"equation": "add", "equation": "add",
"srcColor": "srcalpha", "srcColor": "1",
"dstColor": "1-srcalpha", "dstColor": "0",
"srcAlpha": "srcalpha", "srcAlpha": "1",
"dstAlpha": "1-srcalpha" "dstAlpha": "0"
}, },
"depth": { "function": "always", "writeenable": false }, "depth": { "function": "always", "writeenable": false },
"cull": { "mode": "none" }, "cull": { "mode": "none" },
"write": { "rgb": true, "alpha": true }, "write": { "rgb": true, "alpha": true },
"vertex": "chains/misc/vs_blit", "vertex": "chains/misc/vs_resize_blit",
"fragment": "chains/misc/fs_blit_rgb32", "fragment": "chains/misc/fs_blit_rgb32",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "s_pal", "type": "int", "values": [ 1.0 ] } { "name": "s_pal", "type": "int", "values": [ 1.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_tex_bounds0", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 1.0 ] }
] ]
} }

View File

@ -9,19 +9,21 @@
{ {
"blend": { "blend": {
"equation": "add", "equation": "add",
"srcColor": "srcalpha", "srcColor": "1",
"dstColor": "1-srcalpha", "dstColor": "0",
"srcAlpha": "srcalpha", "srcAlpha": "1",
"dstAlpha": "1-srcalpha" "dstAlpha": "0"
}, },
"depth": { "function": "always", "writeenable": false }, "depth": { "function": "always", "writeenable": false },
"cull": { "mode": "none" }, "cull": { "mode": "none" },
"write": { "rgb": true, "alpha": true }, "write": { "rgb": true, "alpha": true },
"vertex": "chains/misc/vs_blit", "vertex": "chains/misc/vs_resize_blit",
"fragment": "chains/misc/fs_blit_yuy16", "fragment": "chains/misc/fs_blit_yuy16",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_tex_bounds0", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 1.0 ] }
] ]
} }

View File

@ -27,6 +27,7 @@
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } { "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -29,6 +29,7 @@
"fragment": "chains/pillarbox_left_horizontal/fs_offset_sat", "fragment": "chains/pillarbox_left_horizontal/fs_offset_sat",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -27,6 +27,7 @@
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } { "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -29,6 +29,7 @@
"fragment": "chains/pillarbox_left_vertical/fs_offset_sat", "fragment": "chains/pillarbox_left_vertical/fs_offset_sat",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -27,6 +27,7 @@
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } { "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -29,6 +29,7 @@
"fragment": "chains/pillarbox_right_horizontal/fs_offset_sat", "fragment": "chains/pillarbox_right_horizontal/fs_offset_sat",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -27,6 +27,7 @@
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_dimension", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } { "name": "u_radius", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -29,6 +29,7 @@
"fragment": "chains/pillarbox_right_vertical/fs_offset_sat", "fragment": "chains/pillarbox_right_vertical/fs_offset_sat",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } { "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -27,6 +27,7 @@
"fragment": "fs_screen", "fragment": "fs_screen",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] } { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -27,6 +27,7 @@
"fragment": "fs_screen", "fragment": "fs_screen",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] } { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -11,8 +11,8 @@
"blend": { "blend": {
"equation": "add", "equation": "add",
"srcColor": "dstcolor", "srcColor": "dstcolor",
"dstColor": "0", "dstColor": "1-srcalpha",
"srcAlpha": "dstalpha", "srcAlpha": "1",
"dstAlpha": "0" "dstAlpha": "0"
}, },
"depth": { "depth": {
@ -27,6 +27,7 @@
"fragment": "fs_screen", "fragment": "fs_screen",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] } { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -8,13 +8,6 @@
// //
//============================================================ //============================================================
{ {
"blend": {
"equation": "add",
"srcColor": "1",
"dstColor": "0",
"srcAlpha": "1",
"dstAlpha": "0"
},
"depth": { "depth": {
"function": "always" "function": "always"
}, },
@ -26,6 +19,7 @@
"vertex": "vs_screen", "vertex": "vs_screen",
"fragment": "fs_screen", "fragment": "fs_screen",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] } { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -116,6 +116,7 @@
// "mat3": 9 floats // "mat3": 9 floats
// "mat4": 16 floats // "mat4": 16 floats
"values": [ 1.0 ] "values": [ 1.0 ]
} },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -49,6 +49,7 @@
"fragment": "chains/warp/fs_dilation-horizontal-fast", "fragment": "chains/warp/fs_dilation-horizontal-fast",
"uniforms": [ "uniforms": [
{ "name": "decal", "type": "int", "values": [ 1.0 ] }, { "name": "decal", "type": "int", "values": [ 1.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -33,6 +33,7 @@
{ "name": "JINC2_WINDOW_SINC", "type": "vec4", "values": [ 0.42, 0.0, 0.0, 0.0 ] }, { "name": "JINC2_WINDOW_SINC", "type": "vec4", "values": [ 0.42, 0.0, 0.0, 0.0 ] },
{ "name": "JINC2_SINC", "type": "vec4", "values": [ 0.92, 0.0, 0.0, 0.0 ] }, { "name": "JINC2_SINC", "type": "vec4", "values": [ 0.92, 0.0, 0.0, 0.0 ] },
{ "name": "JINC2_AR_STRENGTH", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "JINC2_AR_STRENGTH", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -53,6 +53,7 @@
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -54,6 +54,7 @@
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -54,6 +54,7 @@
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -53,6 +53,7 @@
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -54,6 +54,7 @@
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

View File

@ -53,6 +53,7 @@
{ "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] }, { "name": "XBR_EDGE_STR", "type": "vec4", "values": [ 0.6, 0.0, 0.0, 0.0 ] },
{ "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "XBR_WEIGHT", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "XBR_ANTI_RINGING", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] } { "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
] ]
} }

Some files were not shown because too many files have changed in this diff Show More