This is as far I gotten. I don't know what else to do. I want to port this from CRT to BGFX HLSL. For extra screen effect. These just pieces that I rewrote for it.

{ "type": "float", "name": "halation", "text": "Halation amplitude", "default": 0.03, "max": 1.00, "min": 0.0, "step": 0.01, "format": "%1.2f", "screen": "raster" },
{ "type": "float", "name": "blurwidth", "text": "Halation blur width", "default": 1.80, "max": 4.00, "min": 0.0, "step": 0.01, "format": "%1.1f", "screen": "raster" },

{ "effect": "hlsl/halation",
"name": "Halation amplitude",
"disablewhen": [
{ "type": "slider", "condition": "equal", "combine": "or", "name": "adjustments", "value": 0 },
{ "type": "slider", "condition": "equal", "combine": "and", "name": "halation", "value": 0.0 },
],
"uniforms": [
{ "uniform": "u_halation", "slider": "halation" }
],
"input": [
{ "sampler": "s_tex", "target": "internal" }
],
"output": "internal"
},
{ "effect": "hlsl/blurwidth",
"name": "Halation blur width",
"disablewhen": [
{ "type": "slider", "condition": "equal", "combine": "or", "name": "adjustments", "value": 0 },
{ "type": "slider", "condition": "equal", "combine": "and", "name": "blurwidth", "value": 0.0 },
],
"uniforms": [
{ "uniform": "u_blurwidth", "slider": "blurwidth" }
],
"input": [
{ "sampler": "s_tex", "target": "internal" }
],
"output": "internal"
},

Can you add these onto HLSL please. HLSL will do, If you don't want to mess with the BGFX files. Ether way, Thanks.


Windows 10 Home 64-bit / AMD Radeon RX 5700 XT / AMD Ryzen 7 3700X 8-Core 3.59 GHz / RAM 16 GB