summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx
diff options
context:
space:
mode:
author sairuk <sairuk@users.noreply.github.com>2021-10-12 23:00:21 +1100
committer GitHub <noreply@github.com>2021-10-12 23:00:21 +1100
commit498491a6976672fea8de2ef650828f97caf8a1bc (patch)
tree4804945ae0a053ae4c56707456aca08ad6245c0c /bgfx
parent694f040217db2183b863c467ec8bc240f4d6acdc (diff)
bgfx: Updated mipmap support in Fighters chain. (#8692)
Fixes crashes on Linux using Vulkan backend (GitHub #8538).
Diffstat (limited to 'bgfx')
-rw-r--r--bgfx/chains/Fighters.json36
1 files changed, 35 insertions, 1 deletions
diff --git a/bgfx/chains/Fighters.json b/bgfx/chains/Fighters.json
index e7a8f8340ff..75afcdc066f 100644
--- a/bgfx/chains/Fighters.json
+++ b/bgfx/chains/Fighters.json
@@ -30,6 +30,24 @@
"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",
"default": 0.0,
@@ -145,6 +163,9 @@
{ "name": "internal2",
"mode": "guest"
},
+ { "name": "mipmap",
+ "mode": "guest"
+ },
{ "name": "blur",
"mode": "guest"
},
@@ -155,6 +176,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",
"uniforms": [
@@ -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"