mirror of
https://github.com/libretro/mame.git
synced 2024-11-23 09:29:54 +00:00
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:
parent
cc7ad69ddd
commit
5671484fc8
@ -283,7 +283,6 @@
|
||||
},
|
||||
{
|
||||
"effect": "crt-geom/phosphor_apply",
|
||||
"applytint": true,
|
||||
"name": "phosphor apply",
|
||||
"uniforms": [
|
||||
{ "uniform": "u_phosphor_power", "slider": "phosphor_power" },
|
||||
|
@ -163,7 +163,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "crt-geom/crt-geom",
|
||||
"applytint": true,
|
||||
"name": "CRT",
|
||||
"uniforms": [
|
||||
{ "uniform": "curvature", "slider": "curvature" },
|
||||
|
@ -3,12 +3,12 @@
|
||||
"targets": [
|
||||
{ "name": "temp",
|
||||
"mode": "guest",
|
||||
"bilinear": true
|
||||
"bilinear": true,
|
||||
"user_prescale": true
|
||||
}
|
||||
],
|
||||
"passes": [
|
||||
{ "effect": "misc/blit",
|
||||
"applytint": true,
|
||||
"name": "Copy To Filtered Texture",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "texture": "screen" }
|
||||
|
@ -26,7 +26,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "eagle/supereagle",
|
||||
"applytint": true,
|
||||
"name": "Super Eagle pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" },
|
||||
|
@ -204,7 +204,6 @@
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "texture": "screen" }
|
||||
],
|
||||
"applytint": true,
|
||||
"output": "ntsc"
|
||||
},
|
||||
{
|
||||
@ -349,7 +348,6 @@
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "texture": "screen" }
|
||||
],
|
||||
"applytint": true,
|
||||
"output": "guest"
|
||||
},
|
||||
{ "effect": "hlsl/color",
|
||||
|
@ -43,7 +43,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "hqx/hq2x",
|
||||
"applytint": true,
|
||||
"name": "HQ2x pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" },
|
||||
|
@ -43,7 +43,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "hqx/hq3x",
|
||||
"applytint": true,
|
||||
"name": "HQ3x pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" },
|
||||
|
@ -43,7 +43,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "hqx/hq4x",
|
||||
"applytint": true,
|
||||
"name": "HQ4x pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" },
|
||||
|
@ -123,7 +123,6 @@
|
||||
},
|
||||
{
|
||||
"effect": "lcd-grid/lcd-grid",
|
||||
"applytint": true,
|
||||
"name": "LCD",
|
||||
"uniforms": [
|
||||
{ "uniform": "u_rsubpix", "slider": "rsubpix" },
|
||||
|
@ -10,7 +10,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "misc/blit",
|
||||
"applytint": true,
|
||||
"name": "Copy To Filtered Texture",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "texture": "screen" }
|
||||
|
@ -2,7 +2,6 @@
|
||||
"author": "Ryan Holtz",
|
||||
"passes": [
|
||||
{ "effect": "misc/blit",
|
||||
"applytint": true,
|
||||
"name": "Unfiltered Upscale",
|
||||
"input": [
|
||||
{ "sampler": "s_tex", "texture": "screen" }
|
||||
|
@ -42,7 +42,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-2xbr-3d-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
|
@ -42,7 +42,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-2xbr-3d-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
|
@ -42,7 +42,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-4xbr-3d-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
|
@ -42,7 +42,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-4xbr-3d-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
|
@ -49,7 +49,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
|
@ -49,7 +49,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
|
@ -63,7 +63,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
|
@ -48,7 +48,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "misc/deposterize-pass0",
|
||||
"applytint": true,
|
||||
"name": "Deposterize, Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -42,7 +42,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
|
@ -55,7 +55,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/super-xbr/super-xbr-fast-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "s0", "texture": "screen" }
|
||||
|
@ -22,7 +22,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-hybrid/2xbr-hybrid-v4b",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -32,7 +32,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv1-noblend",
|
||||
"applytint": true,
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -32,7 +32,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-3d",
|
||||
"applytint": true,
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -41,7 +41,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -21,7 +21,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-multipass/xbr-lv2-accuracy-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -15,7 +15,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "misc/deposterize-pass0",
|
||||
"applytint": true,
|
||||
"name": "Deposterize, Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -32,7 +32,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-fast",
|
||||
"applytint": true,
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -42,7 +42,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-multipass/xbr-lv2-c-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -32,7 +32,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2-noblend",
|
||||
"applytint": true,
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -32,7 +32,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv2",
|
||||
"applytint": true,
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -42,7 +42,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv3-multipass/xbr-lv3-pass0",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -32,7 +32,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv3-noblend",
|
||||
"applytint": true,
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -32,7 +32,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-lv3",
|
||||
"applytint": true,
|
||||
"name": "Main Pass",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -56,7 +56,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass1",
|
||||
"applytint": true,
|
||||
"name": "Pass 1",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -49,7 +49,6 @@
|
||||
"passes": [
|
||||
{
|
||||
"effect": "xbr/xbr-mlv4-multipass/xbr-mlv4-pass1",
|
||||
"applytint": true,
|
||||
"name": "Pass 0",
|
||||
"input": [
|
||||
{ "sampler": "decal", "texture": "screen" }
|
||||
|
@ -48,8 +48,9 @@
|
||||
"vertex": "chains/blurs/vs_smart-blur",
|
||||
"fragment": "chains/blurs/fs_smart-blur",
|
||||
"uniforms": [
|
||||
{ "name": "s_p", "type": "int", "values": [ 1.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": "s_p", "type": "int", "values": [ 1.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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -20,33 +20,34 @@
|
||||
"vertex": "chains/crt-geom/vs_crt-geom",
|
||||
"fragment": "chains/crt-geom/fs_crt-geom-deluxe",
|
||||
"uniforms": [
|
||||
{ "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_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": "mpass_texture", "type": "int", "values": [ 0 ] },
|
||||
{ "name": "mask_texture", "type": "int", "values": [ 1 ] },
|
||||
{ "name": "blur_texture", "type": "int", "values": [ 2 ] },
|
||||
{ "name": "mipmap_texture", "type": "int", "values": [ 3 ] },
|
||||
{ "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": "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": "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": "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": "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": "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_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_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": "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": "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": "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_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": "mpass_texture", "type": "int", "values": [ 0 ] },
|
||||
{ "name": "mask_texture", "type": "int", "values": [ 1 ] },
|
||||
{ "name": "blur_texture", "type": "int", "values": [ 2 ] },
|
||||
{ "name": "mipmap_texture", "type": "int", "values": [ 3 ] },
|
||||
{ "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": "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": "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": "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": "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": "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_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_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": "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": "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": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -20,28 +20,29 @@
|
||||
"vertex": "chains/crt-geom/vs_crt-geom",
|
||||
"fragment": "chains/crt-geom/fs_crt-geom",
|
||||
"uniforms": [
|
||||
{ "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_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": "mpass_texture", "type": "int", "values": [ 0 ] },
|
||||
{ "name": "mask_texture", "type": "int", "values": [ 1 ] },
|
||||
{ "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": "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": "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": "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": "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": "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_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_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": "u_interp", "type": "vec4", "values": [ 2.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_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_rotation_type", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "mpass_texture", "type": "int", "values": [ 0 ] },
|
||||
{ "name": "mask_texture", "type": "int", "values": [ 1 ] },
|
||||
{ "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": "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": "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": "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": "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": "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_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_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": "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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -20,10 +20,11 @@
|
||||
"vertex": "chains/crt-geom/vs_gaussx",
|
||||
"fragment": "chains/crt-geom/fs_gaussx",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 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_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": "s_tex", "type": "int", "values": [ 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_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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -20,10 +20,11 @@
|
||||
"vertex": "chains/crt-geom/vs_gaussy",
|
||||
"fragment": "chains/crt-geom/fs_gaussy",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 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_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": "s_tex", "type": "int", "values": [ 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_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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -20,9 +20,10 @@
|
||||
"vertex": "chains/crt-geom/vs_lowpass",
|
||||
"fragment": "chains/crt-geom/fs_lowpass",
|
||||
"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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -20,10 +20,11 @@
|
||||
"vertex": "chains/crt-geom/vs_mipmap8",
|
||||
"fragment": "chains/crt-geom/fs_mipmap8",
|
||||
"uniforms": [
|
||||
{ "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_smooth", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "s_screen", "type": "int", "values": [ 0 ] },
|
||||
{ "name": "s_mipmap", "type": "int", "values": [ 1 ] }
|
||||
{ "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_smooth", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "s_screen", "type": "int", "values": [ 0 ] },
|
||||
{ "name": "s_mipmap", "type": "int", "values": [ 1 ] },
|
||||
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -20,11 +20,12 @@
|
||||
"vertex": "chains/crt-geom/vs_phosphor_apply",
|
||||
"fragment": "chains/crt-geom/fs_phosphor_apply",
|
||||
"uniforms": [
|
||||
{ "name": "s_screen", "type": "int", "values": [ 0 ] },
|
||||
{ "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_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_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] }
|
||||
{ "name": "s_screen", "type": "int", "values": [ 0 ] },
|
||||
{ "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_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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -20,11 +20,12 @@
|
||||
"vertex": "chains/crt-geom/vs_phosphor_update",
|
||||
"fragment": "chains/crt-geom/fs_phosphor_update",
|
||||
"uniforms": [
|
||||
{ "name": "s_screen", "type": "int", "values": [ 0 ] },
|
||||
{ "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_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_gamma", "type": "vec4", "values": [ 2.2, 0.0, 0.0, 0.0 ] }
|
||||
{ "name": "s_screen", "type": "int", "values": [ 0 ] },
|
||||
{ "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_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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -58,6 +58,12 @@
|
||||
//
|
||||
// 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:
|
||||
// "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"
|
||||
// The dimensions of the first texture input if present, otherwise the dimensions of the output window.
|
||||
// Valid values: xy
|
||||
@ -95,6 +101,7 @@
|
||||
// "mat3": 9 floats
|
||||
// "mat4": 16 floats
|
||||
"values": [ 1.0 ]
|
||||
}
|
||||
},
|
||||
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -28,8 +28,9 @@
|
||||
"vertex": "chains/eagle/vs_eagle",
|
||||
"fragment": "chains/eagle/fs_eagle",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "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": "decal", "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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -25,6 +25,7 @@
|
||||
"vertex": "vs_gui",
|
||||
"fragment": "fs_gui",
|
||||
"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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -25,6 +25,7 @@
|
||||
"vertex": "vs_gui",
|
||||
"fragment": "fs_gui",
|
||||
"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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -10,9 +10,7 @@
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "dstcolor",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "dstalpha",
|
||||
"dstAlpha": "0"
|
||||
"dstColor": "1-srcalpha"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always"
|
||||
@ -25,6 +23,7 @@
|
||||
"vertex": "vs_gui",
|
||||
"fragment": "fs_gui",
|
||||
"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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -6,13 +6,6 @@
|
||||
//
|
||||
//============================================================
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always"
|
||||
},
|
||||
@ -24,6 +17,7 @@
|
||||
"vertex": "vs_gui",
|
||||
"fragment": "fs_gui",
|
||||
"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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -116,6 +116,7 @@
|
||||
// "mat3": 9 floats
|
||||
// "mat4": 16 floats
|
||||
"values": [ 1.0 ]
|
||||
}
|
||||
},
|
||||
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -24,10 +24,11 @@
|
||||
"vertex": "chains/hlsl/vs_chroma",
|
||||
"fragment": "chains/hlsl/fs_chroma",
|
||||
"uniforms": [
|
||||
{ "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_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_c", "type": "vec4", "values": [ 0.155, 0.070, 0.0, 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_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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -24,12 +24,13 @@
|
||||
"vertex": "chains/hlsl/vs_color",
|
||||
"fragment": "chains/hlsl/fs_color",
|
||||
"uniforms": [
|
||||
{ "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_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_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_saturation", "type": "vec4", "values": [ 1.5, 0.0, 0.0, 0.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_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_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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -25,13 +25,14 @@
|
||||
"vertex": "chains/hlsl/vs_deconverge",
|
||||
"fragment": "chains/hlsl/fs_deconverge",
|
||||
"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_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_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_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_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_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_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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -24,8 +24,9 @@
|
||||
"vertex": "chains/hlsl/vs_defocus",
|
||||
"fragment": "chains/hlsl/fs_defocus",
|
||||
"uniforms": [
|
||||
{ "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_defocus", "type": "vec4", "values": [ 0.5, 0.5, 0.0, 0.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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -38,6 +38,7 @@
|
||||
{ "name": "u_round_corner", "type": "vec4", "values": [ 0.20, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_smooth_border", "type": "vec4", "values": [ 0.05, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_vignetting", "type": "vec4", "values": [ 0.20, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_reflection", "type": "vec4", "values": [ 0.30, 0.0, 0.0, 0.0 ] }
|
||||
{ "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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -31,13 +31,14 @@
|
||||
{ "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_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_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_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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -26,13 +26,14 @@
|
||||
"fragment": "chains/hlsl/fs_ntsc_encode",
|
||||
"uniforms": [
|
||||
{ "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_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_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_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_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_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_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_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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -25,9 +25,10 @@
|
||||
"vertex": "chains/hlsl/vs_phosphor",
|
||||
"fragment": "chains/hlsl/fs_phosphor",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "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_phosphor", "type": "vec4", "values": [ 0.7, 0.7, 0.7, 0.0 ] }
|
||||
{ "name": "s_tex", "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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -27,23 +27,24 @@
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 0.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_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_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_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_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_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_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_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_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_conversion_gain", "type": "vec4", "values": [ 0.299, 0.587, 0.114, 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_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_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_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_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_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_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_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_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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -25,8 +25,9 @@
|
||||
"vertex": "chains/hlsl/vs_prescale",
|
||||
"fragment": "chains/hlsl/fs_prescale",
|
||||
"uniforms": [
|
||||
{ "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_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -25,20 +25,21 @@
|
||||
"fragment": "chains/hlsl/fs_scanline",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 0.0 ] },
|
||||
{ "name": "u_swap_xy", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
|
||||
{ "name": "u_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_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_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_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_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_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_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_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_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_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_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_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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -22,8 +22,9 @@
|
||||
"vertex": "chains/hqx/vs_hq2x",
|
||||
"fragment": "chains/hqx/fs_hq2x",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "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": "decal", "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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -22,8 +22,9 @@
|
||||
"vertex": "chains/hqx/vs_hq3x",
|
||||
"fragment": "chains/hqx/fs_hq3x",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "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": "decal", "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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -22,8 +22,9 @@
|
||||
"vertex": "chains/hqx/vs_hq4x",
|
||||
"fragment": "chains/hqx/fs_hq4x",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "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": "decal", "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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -20,18 +20,19 @@
|
||||
"vertex": "chains/lcd-grid/vs_lcd-grid",
|
||||
"fragment": "chains/lcd-grid/fs_lcd-grid",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 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_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_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_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_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_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": "s_tex", "type": "int", "values": [ 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_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_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_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_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_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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -20,8 +20,9 @@
|
||||
"vertex": "chains/lcd-grid/vs_persistence",
|
||||
"fragment": "chains/lcd-grid/fs_persistence",
|
||||
"uniforms": [
|
||||
{ "name": "s_screen", "type": "int", "values": [ 0 ] },
|
||||
{ "name": "s_motionblur", "type": "int", "values": [ 1 ] },
|
||||
{ "name": "u_persistence","type":"vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }
|
||||
{ "name": "s_screen", "type": "int", "values": [ 0 ] },
|
||||
{ "name": "s_motionblur", "type": "int", "values": [ 1 ] },
|
||||
{ "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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -8,10 +8,10 @@
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": { "function": "always", "writeenable": false },
|
||||
"cull": { "mode": "none" },
|
||||
@ -19,8 +19,9 @@
|
||||
"vertex": "chains/misc/vs_blit",
|
||||
"fragment": "chains/misc/fs_blit_bcg",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "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": "s_tex", "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_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -21,10 +21,10 @@
|
||||
// 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"
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
|
||||
// depth (required): The depth state for this effect.
|
||||
@ -116,6 +116,7 @@
|
||||
// "mat3": 9 floats
|
||||
// "mat4": 16 floats
|
||||
"values": [ 1.0 ]
|
||||
}
|
||||
},
|
||||
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -21,10 +21,10 @@
|
||||
// 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"
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
|
||||
// depth (required): The depth state for this effect.
|
||||
@ -117,9 +117,10 @@
|
||||
// "mat4": 16 floats
|
||||
"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": "s_pal", "type": "int", "values": [ 1.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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -29,9 +29,10 @@
|
||||
"vertex": "chains/misc/vs_deposterize-pass0",
|
||||
"fragment": "chains/misc/fs_deposterize-pass0",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.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": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
{ "name": "decal", "type": "int", "values": [ 1.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": "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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -29,9 +29,10 @@
|
||||
"vertex": "chains/misc/vs_deposterize-pass1",
|
||||
"fragment": "chains/misc/fs_deposterize-pass1",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.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": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
{ "name": "decal", "type": "int", "values": [ 1.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": "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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -19,9 +19,10 @@
|
||||
"vertex": "chains/misc/vs_lut",
|
||||
"fragment": "chains/misc/fs_lut",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "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_inv_tex_size1", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
{ "name": "s_tex", "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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -24,7 +24,8 @@
|
||||
"vertex": "chains/misc/vs_saturation",
|
||||
"fragment": "chains/misc/fs_saturation",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
27
bgfx/effects/misc/texconv_argb32.json
Normal file
27
bgfx/effects/misc/texconv_argb32.json
Normal 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 ] }
|
||||
]
|
||||
}
|
@ -8,21 +8,23 @@
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
"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_blit",
|
||||
"vertex": "chains/misc/vs_resize_blit",
|
||||
"fragment": "chains/misc/fs_blit_palette16",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "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": "s_tex", "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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -8,18 +8,20 @@
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
"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_blit",
|
||||
"vertex": "chains/misc/vs_resize_blit",
|
||||
"fragment": "chains/misc/fs_blit_rgb32",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "s_pal", "type": "int", "values": [ 1.0 ] }
|
||||
{ "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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -9,19 +9,21 @@
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "srcalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "srcalpha",
|
||||
"dstAlpha": "1-srcalpha"
|
||||
"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_blit",
|
||||
"vertex": "chains/misc/vs_resize_blit",
|
||||
"fragment": "chains/misc/fs_blit_yuy16",
|
||||
"uniforms": [
|
||||
{ "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_inv_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -24,9 +24,10 @@
|
||||
"vertex": "chains/pillarbox_left_horizontal/vs_gaussian",
|
||||
"fragment": "chains/pillarbox_left_horizontal/fs_gaussian",
|
||||
"uniforms": [
|
||||
{ "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_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": "s_tex", "type": "int", "values": [ 1.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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -28,7 +28,8 @@
|
||||
"vertex": "chains/pillarbox_left_horizontal/vs_offset_sat",
|
||||
"fragment": "chains/pillarbox_left_horizontal/fs_offset_sat",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -24,9 +24,10 @@
|
||||
"vertex": "chains/pillarbox_left_vertical/vs_gaussian",
|
||||
"fragment": "chains/pillarbox_left_vertical/fs_gaussian",
|
||||
"uniforms": [
|
||||
{ "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_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": "s_tex", "type": "int", "values": [ 1.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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -28,7 +28,8 @@
|
||||
"vertex": "chains/pillarbox_left_vertical/vs_offset_sat",
|
||||
"fragment": "chains/pillarbox_left_vertical/fs_offset_sat",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -24,9 +24,10 @@
|
||||
"vertex": "chains/pillarbox_right_horizontal/vs_gaussian",
|
||||
"fragment": "chains/pillarbox_right_horizontal/fs_gaussian",
|
||||
"uniforms": [
|
||||
{ "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_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": "s_tex", "type": "int", "values": [ 1.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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -28,7 +28,8 @@
|
||||
"vertex": "chains/pillarbox_right_horizontal/vs_offset_sat",
|
||||
"fragment": "chains/pillarbox_right_horizontal/fs_offset_sat",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -24,9 +24,10 @@
|
||||
"vertex": "chains/pillarbox_right_vertical/vs_gaussian",
|
||||
"fragment": "chains/pillarbox_right_vertical/fs_gaussian",
|
||||
"uniforms": [
|
||||
{ "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_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": "s_tex", "type": "int", "values": [ 1.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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -28,7 +28,8 @@
|
||||
"vertex": "chains/pillarbox_right_vertical/vs_offset_sat",
|
||||
"fragment": "chains/pillarbox_right_vertical/fs_offset_sat",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_saturation", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -26,7 +26,8 @@
|
||||
"vertex": "vs_screen",
|
||||
"fragment": "fs_screen",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -26,7 +26,8 @@
|
||||
"vertex": "vs_screen",
|
||||
"fragment": "fs_screen",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -11,8 +11,8 @@
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "dstcolor",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "dstalpha",
|
||||
"dstColor": "1-srcalpha",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
@ -26,7 +26,8 @@
|
||||
"vertex": "vs_screen",
|
||||
"fragment": "fs_screen",
|
||||
"uniforms": [
|
||||
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -8,13 +8,6 @@
|
||||
//
|
||||
//============================================================
|
||||
{
|
||||
"blend": {
|
||||
"equation": "add",
|
||||
"srcColor": "1",
|
||||
"dstColor": "0",
|
||||
"srcAlpha": "1",
|
||||
"dstAlpha": "0"
|
||||
},
|
||||
"depth": {
|
||||
"function": "always"
|
||||
},
|
||||
@ -26,6 +19,7 @@
|
||||
"vertex": "vs_screen",
|
||||
"fragment": "fs_screen",
|
||||
"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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -116,6 +116,7 @@
|
||||
// "mat3": 9 floats
|
||||
// "mat4": 16 floats
|
||||
"values": [ 1.0 ]
|
||||
}
|
||||
},
|
||||
{ "name": "u_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -48,7 +48,8 @@
|
||||
"vertex": "chains/warp/vs_dilation-horizontal-fast",
|
||||
"fragment": "chains/warp/fs_dilation-horizontal-fast",
|
||||
"uniforms": [
|
||||
{ "name": "decal", "type": "int", "values": [ 1.0 ] },
|
||||
{ "name": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -32,7 +32,8 @@
|
||||
{ "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_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": "u_tex_size0", "type": "vec4", "values": [ 1.0, 1.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_inv_view_dims", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
|
||||
]
|
||||
}
|
||||
|
@ -53,6 +53,7 @@
|
||||
{ "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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -54,6 +54,7 @@
|
||||
{ "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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -54,6 +54,7 @@
|
||||
{ "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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -53,6 +53,7 @@
|
||||
{ "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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -54,6 +54,7 @@
|
||||
{ "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_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 ] }
|
||||
]
|
||||
}
|
||||
|
@ -53,6 +53,7 @@
|
||||
{ "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_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
Loading…
Reference in New Issue
Block a user