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

@ -48,8 +48,9 @@
"vertex": "chains/blurs/vs_smart-blur", "vertex": "chains/blurs/vs_smart-blur",
"fragment": "chains/blurs/fs_smart-blur", "fragment": "chains/blurs/fs_smart-blur",
"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

@ -20,33 +20,34 @@
"vertex": "chains/crt-geom/vs_crt-geom", "vertex": "chains/crt-geom/vs_crt-geom",
"fragment": "chains/crt-geom/fs_crt-geom-deluxe", "fragment": "chains/crt-geom/fs_crt-geom-deluxe",
"uniforms": [ "uniforms": [
{ "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_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_quad_dims", "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_rotation_type", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_rotation_type", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "mpass_texture", "type": "int", "values": [ 0 ] }, { "name": "mpass_texture", "type": "int", "values": [ 0 ] },
{ "name": "mask_texture", "type": "int", "values": [ 1 ] }, { "name": "mask_texture", "type": "int", "values": [ 1 ] },
{ "name": "blur_texture", "type": "int", "values": [ 2 ] }, { "name": "blur_texture", "type": "int", "values": [ 2 ] },
{ "name": "mipmap_texture", "type": "int", "values": [ 3 ] }, { "name": "mipmap_texture", "type": "int", "values": [ 3 ] },
{ "name": "curvature", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "curvature", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "CRTgamma", "type": "vec4", "values": [ 2.4, 0.0, 0.0, 0.0 ] }, { "name": "CRTgamma", "type": "vec4", "values": [ 2.4, 0.0, 0.0, 0.0 ] },
{ "name": "monitorsRGB", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "monitorsRGB", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "monitorgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] }, { "name": "monitorgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] },
{ "name": "overscan", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "overscan", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "aspect", "type": "vec4", "values": [ 1.0, 0.75,0.0, 0.0 ] }, { "name": "aspect", "type": "vec4", "values": [ 1.0, 0.75, 0.0, 0.0 ] },
{ "name": "d", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, { "name": "d", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
{ "name": "R", "type": "vec4", "values": [ 3.5, 0.0, 0.0, 0.0 ] }, { "name": "R", "type": "vec4", "values": [ 3.5, 0.0, 0.0, 0.0 ] },
{ "name": "angle", "type": "vec4", "values": [ 0.0,-0.05,0.0, 0.0 ] }, { "name": "angle", "type": "vec4", "values": [ 0.0, -0.05, 0.0, 0.0 ] },
{ "name": "cornersize", "type": "vec4", "values": [ 0.01,0.0, 0.0, 0.0 ] }, { "name": "cornersize", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] },
{ "name": "cornersmooth", "type": "vec4", "values": [ 1000.0,0.0,0.0,0.0 ] }, { "name": "cornersmooth", "type": "vec4", "values": [ 1000.0, 0.0, 0.0, 0.0 ] },
{ "name": "aperture_strength", "type": "vec4", "values": [ 0.25,0.0,0.0,0.0 ] }, { "name": "aperture_strength", "type": "vec4", "values": [ 0.25, 0.0, 0.0, 0.0 ] },
{ "name": "aperture_brightboost","type": "vec4", "values": [ 0.25,0.0,0.0,0.0 ] }, { "name": "aperture_brightboost","type": "vec4", "values": [ 0.25, 0.0, 0.0, 0.0 ] },
{ "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": "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

@ -20,28 +20,29 @@
"vertex": "chains/crt-geom/vs_crt-geom", "vertex": "chains/crt-geom/vs_crt-geom",
"fragment": "chains/crt-geom/fs_crt-geom", "fragment": "chains/crt-geom/fs_crt-geom",
"uniforms": [ "uniforms": [
{ "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_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_quad_dims", "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_rotation_type", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_rotation_type", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "mpass_texture", "type": "int", "values": [ 0 ] }, { "name": "mpass_texture", "type": "int", "values": [ 0 ] },
{ "name": "mask_texture", "type": "int", "values": [ 1 ] }, { "name": "mask_texture", "type": "int", "values": [ 1 ] },
{ "name": "curvature", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "curvature", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "CRTgamma", "type": "vec4", "values": [ 2.4, 0.0, 0.0, 0.0 ] }, { "name": "CRTgamma", "type": "vec4", "values": [ 2.4, 0.0, 0.0, 0.0 ] },
{ "name": "monitorsRGB", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "monitorsRGB", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "monitorgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] }, { "name": "monitorgamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] },
{ "name": "overscan", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "overscan", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "aspect", "type": "vec4", "values": [ 1.0, 0.75,0.0, 0.0 ] }, { "name": "aspect", "type": "vec4", "values": [ 1.0, 0.75, 0.0, 0.0 ] },
{ "name": "d", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, { "name": "d", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
{ "name": "R", "type": "vec4", "values": [ 3.5, 0.0, 0.0, 0.0 ] }, { "name": "R", "type": "vec4", "values": [ 3.5, 0.0, 0.0, 0.0 ] },
{ "name": "angle", "type": "vec4", "values": [ 0.0,-0.05,0.0, 0.0 ] }, { "name": "angle", "type": "vec4", "values": [ 0.0, -0.05, 0.0, 0.0 ] },
{ "name": "cornersize", "type": "vec4", "values": [ 0.01,0.0, 0.0, 0.0 ] }, { "name": "cornersize", "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] },
{ "name": "cornersmooth", "type": "vec4", "values": [ 1000.0,0.0,0.0,0.0 ] }, { "name": "cornersmooth", "type": "vec4", "values": [ 1000.0, 0.0, 0.0, 0.0 ] },
{ "name": "aperture_strength", "type": "vec4", "values": [ 0.25,0.0,0.0,0.0 ] }, { "name": "aperture_strength", "type": "vec4", "values": [ 0.25, 0.0, 0.0, 0.0 ] },
{ "name": "aperture_brightboost","type": "vec4", "values": [ 0.25,0.0,0.0,0.0 ] }, { "name": "aperture_brightboost","type": "vec4", "values": [ 0.25, 0.0, 0.0, 0.0 ] },
{ "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

@ -20,10 +20,11 @@
"vertex": "chains/crt-geom/vs_gaussx", "vertex": "chains/crt-geom/vs_gaussx",
"fragment": "chains/crt-geom/fs_gaussx", "fragment": "chains/crt-geom/fs_gaussx",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 0 ] }, { "name": "s_tex", "type": "int", "values": [ 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_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

@ -20,10 +20,11 @@
"vertex": "chains/crt-geom/vs_gaussy", "vertex": "chains/crt-geom/vs_gaussy",
"fragment": "chains/crt-geom/fs_gaussy", "fragment": "chains/crt-geom/fs_gaussy",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 0 ] }, { "name": "s_tex", "type": "int", "values": [ 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_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

@ -20,9 +20,10 @@
"vertex": "chains/crt-geom/vs_lowpass", "vertex": "chains/crt-geom/vs_lowpass",
"fragment": "chains/crt-geom/fs_lowpass", "fragment": "chains/crt-geom/fs_lowpass",
"uniforms": [ "uniforms": [
{ "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

@ -20,10 +20,11 @@
"vertex": "chains/crt-geom/vs_mipmap8", "vertex": "chains/crt-geom/vs_mipmap8",
"fragment": "chains/crt-geom/fs_mipmap8", "fragment": "chains/crt-geom/fs_mipmap8",
"uniforms": [ "uniforms": [
{ "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_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

@ -20,11 +20,12 @@
"vertex": "chains/crt-geom/vs_phosphor_apply", "vertex": "chains/crt-geom/vs_phosphor_apply",
"fragment": "chains/crt-geom/fs_phosphor_apply", "fragment": "chains/crt-geom/fs_phosphor_apply",
"uniforms": [ "uniforms": [
{ "name": "s_screen", "type": "int", "values": [ 0 ] }, { "name": "s_screen", "type": "int", "values": [ 0 ] },
{ "name": "s_phosphor", "type": "int", "values": [ 1 ] }, { "name": "s_phosphor", "type": "int", "values": [ 1 ] },
{ "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

@ -20,11 +20,12 @@
"vertex": "chains/crt-geom/vs_phosphor_update", "vertex": "chains/crt-geom/vs_phosphor_update",
"fragment": "chains/crt-geom/fs_phosphor_update", "fragment": "chains/crt-geom/fs_phosphor_update",
"uniforms": [ "uniforms": [
{ "name": "s_screen", "type": "int", "values": [ 0 ] }, { "name": "s_screen", "type": "int", "values": [ 0 ] },
{ "name": "s_phosphor", "type": "int", "values": [ 1 ] }, { "name": "s_phosphor", "type": "int", "values": [ 1 ] },
{ "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

@ -28,8 +28,9 @@
"vertex": "chains/eagle/vs_eagle", "vertex": "chains/eagle/vs_eagle",
"fragment": "chains/eagle/fs_eagle", "fragment": "chains/eagle/fs_eagle",
"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

@ -24,10 +24,11 @@
"vertex": "chains/hlsl/vs_chroma", "vertex": "chains/hlsl/vs_chroma",
"fragment": "chains/hlsl/fs_chroma", "fragment": "chains/hlsl/fs_chroma",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 0.0 ] }, { "name": "s_tex", "type": "int", "values": [ 0.0 ] },
{ "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

@ -24,12 +24,13 @@
"vertex": "chains/hlsl/vs_color", "vertex": "chains/hlsl/vs_color",
"fragment": "chains/hlsl/fs_color", "fragment": "chains/hlsl/fs_color",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_red_ratios", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_red_ratios", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_grn_ratios", "type": "vec4", "values": [ 0.0, 1.0, 0.0, 0.0 ] }, { "name": "u_grn_ratios", "type": "vec4", "values": [ 0.0, 1.0, 0.0, 0.0 ] },
{ "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

@ -25,13 +25,14 @@
"vertex": "chains/hlsl/vs_deconverge", "vertex": "chains/hlsl/vs_deconverge",
"fragment": "chains/hlsl/fs_deconverge", "fragment": "chains/hlsl/fs_deconverge",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] }, { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
{ "name": "u_source_size", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, { "name": "u_source_size", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] },
{ "name": "u_converge_red", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, { "name": "u_converge_red", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] },
{ "name": "u_converge_green", "type": "vec4", "values": [ 0.0, 0.5, 0.0, 0.0 ] }, { "name": "u_converge_green", "type": "vec4", "values": [ 0.0, 0.5, 0.0, 0.0 ] },
{ "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

@ -24,8 +24,9 @@
"vertex": "chains/hlsl/vs_defocus", "vertex": "chains/hlsl/vs_defocus",
"fragment": "chains/hlsl/fs_defocus", "fragment": "chains/hlsl/fs_defocus",
"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

@ -31,13 +31,14 @@
{ "name": "u_a_value", "type": "vec4", "values": [ 0.5, 0.5, 0.5, 0.5 ] }, { "name": "u_a_value", "type": "vec4", "values": [ 0.5, 0.5, 0.5, 0.5 ] },
{ "name": "u_b_value", "type": "vec4", "values": [ 0.5, 0.5, 0.5, 0.5 ] }, { "name": "u_b_value", "type": "vec4", "values": [ 0.5, 0.5, 0.5, 0.5 ] },
{ "name": "u_cc_value", "type": "vec4", "values": [ 3.5795454, 3.5795454, 3.5795454, 3.5795454 ] }, { "name": "u_cc_value", "type": "vec4", "values": [ 3.5795454, 3.5795454, 3.5795454, 3.5795454 ] },
{ "name": "u_o_value", "type": "vec4", "values": [ 1.570796325, 1.570796325, 1.570796325, 1.570796325 ] }, { "name": "u_o_value", "type": "vec4", "values": [ 1.570796325, 1.570796325, 1.570796325, 1.570796325 ] },
{ "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_notch_width", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] }, { "name": "u_notch_width", "type": "vec4", "values": [ 2.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_y_freq_response", "type": "vec4", "values": [ 6.0, 0.0, 0.0, 0.0 ] }, { "name": "u_y_freq_response", "type": "vec4", "values": [ 6.0, 0.0, 0.0, 0.0 ] },
{ "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

@ -26,13 +26,14 @@
"fragment": "chains/hlsl/fs_ntsc_encode", "fragment": "chains/hlsl/fs_ntsc_encode",
"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_a_value", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, { "name": "u_a_value", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] },
{ "name": "u_b_value", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, { "name": "u_b_value", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] },
{ "name": "u_cc_value", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] }, { "name": "u_cc_value", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] },
{ "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

@ -25,9 +25,10 @@
"vertex": "chains/hlsl/vs_phosphor", "vertex": "chains/hlsl/vs_phosphor",
"fragment": "chains/hlsl/fs_phosphor", "fragment": "chains/hlsl/fs_phosphor",
"uniforms": [ "uniforms": [
{ "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

@ -27,23 +27,24 @@
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 0.0 ] }, { "name": "s_tex", "type": "int", "values": [ 0.0 ] },
{ "name": "s_shadow", "type": "int", "values": [ 1.0 ] }, { "name": "s_shadow", "type": "int", "values": [ 1.0 ] },
{ "name": "u_swap_xy", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_swap_xy", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_source_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, { "name": "u_source_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] },
{ "name": "u_target_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, { "name": "u_target_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] },
{ "name": "u_target_scale", "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_humbar_hertz_rate", "type": "vec4", "values": [ 0.001, 0.0, 0.0, 0.0 ] }, { "name": "u_humbar_hertz_rate", "type": "vec4", "values": [ 0.001, 0.0, 0.0, 0.0 ] },
{ "name": "u_humbar_alpha", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_humbar_alpha", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_time", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_time", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_screen_scale", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_screen_scale", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_screen_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_screen_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_shadow_tile_mode", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_shadow_tile_mode", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_shadow_alpha", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_shadow_alpha", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_shadow_count", "type": "vec4", "values": [ 12.0, 12.0, 0.0, 0.0 ] }, { "name": "u_shadow_count", "type": "vec4", "values": [ 12.0, 12.0, 0.0, 0.0 ] },
{ "name": "u_shadow_uv", "type": "vec4", "values": [ 0.25, 0.25, 0.0, 0.0 ] }, { "name": "u_shadow_uv", "type": "vec4", "values": [ 0.25, 0.25, 0.0, 0.0 ] },
{ "name": "u_shadow_uv_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_shadow_uv_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "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

@ -25,8 +25,9 @@
"vertex": "chains/hlsl/vs_prescale", "vertex": "chains/hlsl/vs_prescale",
"fragment": "chains/hlsl/fs_prescale", "fragment": "chains/hlsl/fs_prescale",
"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

@ -25,20 +25,21 @@
"fragment": "chains/hlsl/fs_scanline", "fragment": "chains/hlsl/fs_scanline",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 0.0 ] }, { "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_swap_xy", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_source_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, { "name": "u_source_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] },
{ "name": "u_target_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, { "name": "u_target_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] },
{ "name": "u_quad_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] }, { "name": "u_quad_dims", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] },
{ "name": "u_time", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_time", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_screen_scale", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }, { "name": "u_screen_scale", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_screen_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_screen_offset", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_scanline_alpha", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_scanline_alpha", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_scanline_scale", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_scanline_scale", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_scanline_bright_scale", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_scanline_bright_scale", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_scanline_bright_offset", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_scanline_bright_offset", "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_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

@ -22,8 +22,9 @@
"vertex": "chains/hqx/vs_hq2x", "vertex": "chains/hqx/vs_hq2x",
"fragment": "chains/hqx/fs_hq2x", "fragment": "chains/hqx/fs_hq2x",
"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

@ -22,8 +22,9 @@
"vertex": "chains/hqx/vs_hq3x", "vertex": "chains/hqx/vs_hq3x",
"fragment": "chains/hqx/fs_hq3x", "fragment": "chains/hqx/fs_hq3x",
"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

@ -22,8 +22,9 @@
"vertex": "chains/hqx/vs_hq4x", "vertex": "chains/hqx/vs_hq4x",
"fragment": "chains/hqx/fs_hq4x", "fragment": "chains/hqx/fs_hq4x",
"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

@ -20,18 +20,19 @@
"vertex": "chains/lcd-grid/vs_lcd-grid", "vertex": "chains/lcd-grid/vs_lcd-grid",
"fragment": "chains/lcd-grid/fs_lcd-grid", "fragment": "chains/lcd-grid/fs_lcd-grid",
"uniforms": [ "uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 0 ] }, { "name": "s_tex", "type": "int", "values": [ 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_quad_dims", "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_rsubpix", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_rsubpix", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_gsubpix", "type": "vec4", "values": [ 0.0, 1.0, 0.0, 0.0 ] }, { "name": "u_gsubpix", "type": "vec4", "values": [ 0.0, 1.0, 0.0, 0.0 ] },
{ "name": "u_bsubpix", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 0.0 ] }, { "name": "u_bsubpix", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 0.0 ] },
{ "name": "u_gain", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, { "name": "u_gain", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_blacklevel","type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_blacklevel", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
{ "name": "u_ambient", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }, { "name": "u_ambient", "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_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

@ -20,8 +20,9 @@
"vertex": "chains/lcd-grid/vs_persistence", "vertex": "chains/lcd-grid/vs_persistence",
"fragment": "chains/lcd-grid/fs_persistence", "fragment": "chains/lcd-grid/fs_persistence",
"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" },
@ -19,8 +19,9 @@
"vertex": "chains/misc/vs_blit", "vertex": "chains/misc/vs_blit",
"fragment": "chains/misc/fs_blit_bcg", "fragment": "chains/misc/fs_blit_bcg",
"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.
@ -117,9 +117,10 @@
// "mat4": 16 floats // "mat4": 16 floats
"values": [ 1.0 ] "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 ] }
] ]
} }

View File

@ -29,9 +29,10 @@
"vertex": "chains/misc/vs_deposterize-pass0", "vertex": "chains/misc/vs_deposterize-pass0",
"fragment": "chains/misc/fs_deposterize-pass0", "fragment": "chains/misc/fs_deposterize-pass0",
"uniforms": [ "uniforms": [
{ "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

@ -29,9 +29,10 @@
"vertex": "chains/misc/vs_deposterize-pass1", "vertex": "chains/misc/vs_deposterize-pass1",
"fragment": "chains/misc/fs_deposterize-pass1", "fragment": "chains/misc/fs_deposterize-pass1",
"uniforms": [ "uniforms": [
{ "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

@ -19,9 +19,10 @@
"vertex": "chains/misc/vs_lut", "vertex": "chains/misc/vs_lut",
"fragment": "chains/misc/fs_lut", "fragment": "chains/misc/fs_lut",
"uniforms": [ "uniforms": [
{ "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

@ -24,7 +24,8 @@
"vertex": "chains/misc/vs_saturation", "vertex": "chains/misc/vs_saturation",
"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

@ -24,9 +24,10 @@
"vertex": "chains/pillarbox_left_horizontal/vs_gaussian", "vertex": "chains/pillarbox_left_horizontal/vs_gaussian",
"fragment": "chains/pillarbox_left_horizontal/fs_gaussian", "fragment": "chains/pillarbox_left_horizontal/fs_gaussian",
"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_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

@ -28,7 +28,8 @@
"vertex": "chains/pillarbox_left_horizontal/vs_offset_sat", "vertex": "chains/pillarbox_left_horizontal/vs_offset_sat",
"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

@ -24,9 +24,10 @@
"vertex": "chains/pillarbox_left_vertical/vs_gaussian", "vertex": "chains/pillarbox_left_vertical/vs_gaussian",
"fragment": "chains/pillarbox_left_vertical/fs_gaussian", "fragment": "chains/pillarbox_left_vertical/fs_gaussian",
"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_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

@ -28,7 +28,8 @@
"vertex": "chains/pillarbox_left_vertical/vs_offset_sat", "vertex": "chains/pillarbox_left_vertical/vs_offset_sat",
"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

@ -24,9 +24,10 @@
"vertex": "chains/pillarbox_right_horizontal/vs_gaussian", "vertex": "chains/pillarbox_right_horizontal/vs_gaussian",
"fragment": "chains/pillarbox_right_horizontal/fs_gaussian", "fragment": "chains/pillarbox_right_horizontal/fs_gaussian",
"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_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

@ -28,7 +28,8 @@
"vertex": "chains/pillarbox_right_horizontal/vs_offset_sat", "vertex": "chains/pillarbox_right_horizontal/vs_offset_sat",
"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

@ -24,9 +24,10 @@
"vertex": "chains/pillarbox_right_vertical/vs_gaussian", "vertex": "chains/pillarbox_right_vertical/vs_gaussian",
"fragment": "chains/pillarbox_right_vertical/fs_gaussian", "fragment": "chains/pillarbox_right_vertical/fs_gaussian",
"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_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

@ -28,7 +28,8 @@
"vertex": "chains/pillarbox_right_vertical/vs_offset_sat", "vertex": "chains/pillarbox_right_vertical/vs_offset_sat",
"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

@ -26,7 +26,8 @@
"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_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

@ -26,7 +26,8 @@
"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_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": {
@ -26,7 +26,8 @@
"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_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

@ -48,7 +48,8 @@
"vertex": "chains/warp/vs_dilation-horizontal-fast", "vertex": "chains/warp/vs_dilation-horizontal-fast",
"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

@ -32,7 +32,8 @@
{ "name": "s_p", "type": "int", "values": [ 1.0 ] }, { "name": "s_p", "type": "int", "values": [ 1.0 ] },
{ "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