From 09f03905fd7400f90b79e346f2f2d94d7c4ce789 Mon Sep 17 00:00:00 2001 From: "therealmogminer@gmail.com" Date: Thu, 18 Feb 2016 18:11:42 +0100 Subject: More reshuffling, nw --- bgfx/chains/test.json | 98 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 bgfx/chains/test.json (limited to 'bgfx') diff --git a/bgfx/chains/test.json b/bgfx/chains/test.json new file mode 100644 index 00000000000..0026802d2aa --- /dev/null +++ b/bgfx/chains/test.json @@ -0,0 +1,98 @@ +{ "name": "Test Shader Chain" + "author": "Ryan Holtz" + "sliders": [ + { "type": "bool", "name": "adjustments", "text": "Enable Adjustments", "default": false }, + { "type": "float", "name": "ratio_amount", "text": "Ratio Amount", "default": 0, "max": 1 }, + + { "type": "color", "name": "red_ratios", "text": "Red Amount", "default": [ 1, 0, 0 ]}, + { "type": "color", "name": "grn_ratios", "text": "Green Amount", "default": [ 0, 1, 0 ], "max": 1, "min": 0 }, + { "type": "color", "name": "blu_ratios", "text": "Blue Amount", "default": [ 0, 0, 1 ], "max": 1, "min": 0 }, + { "type": "color", "name": "tint": "text": "Tint", "default": [ 1, 1, 1 ], "max": 1, "min": 0 } + { "type": "color", "name": "phosphor", "text": "Phosphor Amount", "default": [ 0, 0, 0 ], "max": 1, "min": 0 }, + { "type": "vec2", "name": "shift", "text": "Frame Shift", "default": [ 0, 0 ], "max": 25, "min": -25 }, + ] + "parameters": [ + { "name": "alternating", "type": "frame_mask", "period": 2 } + ] + "targets": [ + { "name": "native", + "screen": true, + }, + { "name": "previous", + "screen": true, + "prescale": true + } + ] + "passes": [ + { "effect": "ratios", + "name": "Matrix Pass" + "disable_conditions": [ + { "type": "slider", "name": "adjustments", "value": false }, + { "type": "slider", "name": "ratio_amount", "value": 0 } + ], + "uniforms": [ + { "name": "u_ratio_amount", "slider": "ratio_amount" }, + { "name": "u_red_ratios", "slider": "red_ratios" }, + { "name": "u_grn_ratios", "slider": "grn_ratios" }, + { "name": "u_blu_ratios", "slider": "blu_ratios" } + ], + "input": [ + { "sampler": "s_tex", "texture": "screen" } + ], + "output": "native" + }, + { "effect": "tint", + "name": "Tint Pass" + "disable_conditions": [ + { "type": "slider", "name": "adjustments", "value": false } + ], + "uniforms": [ + { "name": "u_tint", "slider": "tint" }, + { "name": "u_shift", "slider": "shift" } + ], + "input": [ + { "sampler": "s_tex", "texture": "native" } + ], + "output": "native" + }, + { "effect": "phosphor" + "name": "Phosphor Decay", + "disable_conditions": [ + { "type": "slider", "name": "adjustments", "value": false }, + { "type": "slider", "name": "phosphor", "value": [ 0, 0, 0 ] } + ], + "uniforms": [ + { "name": "u_passthrough", "value": [ 0.0f ] }, + { "name": "u_phosphor", "slider": "phosphor" } + ], + "input": [ + { "sampler": "s_tex", "texture": "native" }, + { "sampler": "s_prev", "texture": "previous" } + ], + "output": "native" + }, + { "effect": "phosphor" + "name": "Phosphor Store", + "disable_conditions": [ + { "type": "slider", "name": "adjustments", "value": false }, + { "type": "slider", "name": "phosphor", "value": [ 0, 0, 0 ] } + ], + "uniforms": [ + { "name": "u_passthrough", "value": [ 1.0f ] }, + { "name": "u_phosphor", "slider": "phosphor" } + ], + "input": [ + { "sampler": "s_tex", "texture": "native" }, + { "sampler": "s_prev", "texture": "native" } + ], + "output": "previous" + }, + { "effect": "blit" + "name": "Final Blit", + "input": [ + { "sampler": "s_tex", "texture": "native" } + ], + "output": "backbuffer" + } + ] +} \ No newline at end of file -- cgit v1.2.3