bgfx: Updated mipmap support in Fighters chain. (#8692)

Fixes crashes on Linux using Vulkan backend (GitHub #8538).
This commit is contained in:
sairuk 2021-10-12 23:00:21 +11:00 committed by GitHub
parent 694f040217
commit 498491a697
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,24 @@
"step" : 0.01,
"format": "%1.2f",
"screen": "raster" },
{ "type": "float",
"name": "rasterbloom_smooth",
"text": "Raster bloom temporal smoothing",
"default": 0.5,
"max" : 0.99,
"min" : 0.0,
"step" : 0.01,
"format": "%1.2f",
"screen": "raster" },
{ "type": "float",
"name": "rasterbloom",
"text": "Raster bloom amplitude",
"default": 0.01,
"max" : 0.1,
"min" : 0.0,
"step" : 0.001,
"format": "%1.3f",
"screen": "raster" },
{ "type": "float",
"name": "halation",
"text": "Halation amplitude",
@ -145,6 +163,9 @@
{ "name": "internal2",
"mode": "guest"
},
{ "name": "mipmap",
"mode": "guest"
},
{ "name": "blur",
"mode": "guest"
},
@ -154,6 +175,18 @@
],
"passes": [
{
"effect": "crt-geom/mipmap8",
"name": "mipmap",
"uniforms": [
{ "uniform": "u_smooth", "slider": "rasterbloom_smooth" }
],
"input": [
{ "sampler": "s_screen", "target": "internal2" },
{ "sampler": "s_mipmap", "target": "mipmap" }
],
"output": "mipmap"
},
{
"effect": "crt-geom/phosphor_apply",
"name": "phosphor apply",
@ -229,7 +262,8 @@
"input": [
{ "sampler": "mpass_texture", "target": "internal1" },
{ "sampler": "mask_texture", "texture": "bgfx/chains/crt-geom/aperture_2_4_rgb.png", "selection": "Shadow mask" },
{ "sampler": "blur_texture", "target": "blur" }
{ "sampler": "blur_texture", "target": "blur" },
{ "sampler": "mipmap_texture", "target": "mipmap" }
],
"output": "output"