summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/chains/test.json
diff options
context:
space:
mode:
Diffstat (limited to 'bgfx/chains/test.json')
-rw-r--r--bgfx/chains/test.json30
1 files changed, 15 insertions, 15 deletions
diff --git a/bgfx/chains/test.json b/bgfx/chains/test.json
index d5b815ca3fc..bc5603a18f2 100644
--- a/bgfx/chains/test.json
+++ b/bgfx/chains/test.json
@@ -1,5 +1,5 @@
-{ "name": "Test Shader Chain"
- "author": "Ryan Holtz"
+{ "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, "min": 0 },
@@ -7,25 +7,25 @@
{ "type": "color", "name": "red_ratios", "text": "Red Amount", "default": [ 1, 0, 0 ], "max": [ 1, 1, 1 ], "min": [ 0, 0, 0 ] },
{ "type": "color", "name": "grn_ratios", "text": "Green Amount", "default": [ 0, 1, 0 ], "max": [ 1, 1, 1 ], "min": [ 0, 0, 0 ] },
{ "type": "color", "name": "blu_ratios", "text": "Blue Amount", "default": [ 0, 0, 1 ], "max": [ 1, 1, 1 ], "min": [ 0, 0, 0 ] },
- { "type": "color", "name": "tint": "text": "Tint", "default": [ 1, 1, 1 ], "max": [ 1, 1, 1 ], "min": [ 0, 0, 0 ] }
- { "type": "color", "name": "phosphor", "text": "Phosphor Amount", "default": [ 0, 0, 0 ], "max": [ 1, 1, 1 ], "min": [ 0, 0 ,0 ] },
+ { "type": "color", "name": "tint", "text": "Tint", "default": [ 1, 1, 1 ], "max": [ 1, 1, 1 ], "min": [ 0, 0, 0 ] },
+ { "type": "color", "name": "phosphor", "text": "Phosphor Amount", "default": [ 0, 0, 0 ], "max": [ 1, 1, 1 ], "min": [ 0, 0, 0 ] },
{ "type": "vec2", "name": "shift", "text": "Frame Shift", "default": [ 0, 0 ], "max": [ 25, 25 ], "min": [ -25, -25 ] }
- ]
+ ],
"parameters": [
{ "name": "alternating", "type": "frame_mask", "period": 2 }
- ]
+ ],
"targets": [
{ "name": "native",
- "screen": true,
+ "screen": true
},
{ "name": "previous",
"screen": true,
"prescale": true
}
- ]
+ ],
"passes": [
{ "effect": "ratios",
- "name": "Matrix Pass"
+ "name": "Matrix Pass",
"disable_conditions": [
{ "type": "slider", "name": "adjustments", "value": false },
{ "type": "slider", "name": "ratio_amount", "value": 0 }
@@ -42,7 +42,7 @@
"output": "native"
},
{ "effect": "tint",
- "name": "Tint Pass"
+ "name": "Tint Pass",
"disable_conditions": [
{ "type": "slider", "name": "adjustments", "value": false }
],
@@ -55,14 +55,14 @@
],
"output": "native"
},
- { "effect": "phosphor"
+ { "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_passthrough", "value": [ 0 ] },
{ "name": "u_phosphor", "slider": "phosphor" }
],
"input": [
@@ -71,14 +71,14 @@
],
"output": "native"
},
- { "effect": "phosphor"
+ { "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_passthrough", "value": [ 1 ] },
{ "name": "u_phosphor", "slider": "phosphor" }
],
"input": [
@@ -87,7 +87,7 @@
],
"output": "previous"
},
- { "effect": "blit"
+ { "effect": "blit",
"name": "Final Blit",
"input": [
{ "sampler": "s_tex", "texture": "native" }