summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2016-03-09 02:51:02 +0100
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2016-03-13 15:51:16 +0100
commit47bdc0f2541571e3032b0b951783e9838680cedd (patch)
tree6ab8e86e16aca8a98798eff84392359dc82a712c /bgfx
parenta20459a6a3722389f77d6e4671fda16898d4ae8a (diff)
Add double-buffered render target support to bgfx shader defs, nw
Diffstat (limited to 'bgfx')
-rw-r--r--bgfx/chains/test.json17
1 files changed, 7 insertions, 10 deletions
diff --git a/bgfx/chains/test.json b/bgfx/chains/test.json
index 4da0656d481..e05cee4df3e 100644
--- a/bgfx/chains/test.json
+++ b/bgfx/chains/test.json
@@ -16,11 +16,8 @@
"targets": [
{ "name": "native",
"mode": "native",
- "prescale": 1
- },
- { "name": "native2",
- "mode": "native",
- "prescale": 1
+ "prescale": 1,
+ "doublebuffer": true
},
{ "name": "previous",
"mode": "native",
@@ -31,8 +28,8 @@
{ "effect": "ratios",
"name": "Matrix Pass",
"disable_conditions": [
- { "type": "slider", "name": "adjustments", "value": false },
- { "type": "slider", "name": "ratio_amount", "value": 0 }
+ { "type": "slider", "name": "adjustments", "value": 0 },
+ { "type": "slider", "name": "ratio_amount", "value": 0.0 }
],
"uniforms": [
{ "uniform": "u_ratio_amount", "slider": "ratio_amount" },
@@ -48,7 +45,7 @@
{ "effect": "tint",
"name": "Tint Pass",
"disable_conditions": [
- { "type": "slider", "name": "adjustments", "value": false }
+ { "type": "slider", "name": "adjustments", "value": 0 }
],
"uniforms": [
{ "uniform": "u_tint", "slider": "tint" },
@@ -57,7 +54,7 @@
"input": [
{ "sampler": "s_tex", "texture": "native" }
],
- "output": "native2"
+ "output": "native"
},
{ "effect": "phosphor",
"name": "Phosphor Decay",
@@ -70,7 +67,7 @@
{ "uniform": "u_phosphor", "slider": "phosphor" }
],
"input": [
- { "sampler": "s_tex", "texture": "native2" },
+ { "sampler": "s_tex", "texture": "native" },
{ "sampler": "s_prev", "texture": "previous" }
],
"output": "native"