diff options
| author | 2016-02-25 03:22:14 +0100 | |
|---|---|---|
| committer | 2016-02-27 16:11:01 +0100 | |
| commit | cdee786a5d7f04a882dc93617f4c164cd5691c5a (patch) | |
| tree | e3fca5e0e6f083d8105b5dda53a5b2cbf59acb83 /bgfx/effects | |
| parent | cedd799978c1751464e68032ed8e2bfafee8e27f (diff) | |
Fix up a few things in chain JSON loading, nw
Diffstat (limited to 'bgfx/effects')
| -rw-r--r-- | bgfx/effects/blit.json | 22 | ||||
| -rw-r--r-- | bgfx/effects/phosphor.json | 25 | ||||
| -rw-r--r-- | bgfx/effects/ratios.json | 26 | ||||
| -rw-r--r-- | bgfx/effects/tint.json | 24 |
4 files changed, 97 insertions, 0 deletions
diff --git a/bgfx/effects/blit.json b/bgfx/effects/blit.json new file mode 100644 index 00000000000..2d2d281df62 --- /dev/null +++ b/bgfx/effects/blit.json @@ -0,0 +1,22 @@ +{ + "blend": { + "equation": "add", + "srcColor": "srcAlpha", + "dstColor": "1-srcAlpha", + "srcAlpha": "srcAlpha", + "dstAlpha": "1-srcAlpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": "true", + "alpha": "true" + }, + "vertex": "vs_blit", + "fragment": "fs_blit", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] } + ] +}
\ No newline at end of file diff --git a/bgfx/effects/phosphor.json b/bgfx/effects/phosphor.json new file mode 100644 index 00000000000..0efbad997de --- /dev/null +++ b/bgfx/effects/phosphor.json @@ -0,0 +1,25 @@ +{ + "blend": { + "equation": "add", + "srcColor": "srcAlpha", + "dstColor": "1-srcAlpha", + "srcAlpha": "srcAlpha", + "dstAlpha": "1-srcAlpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": "true", + "alpha": "true" + }, + "vertex": "vs_phosphor", + "fragment": "fs_phosphor", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "s_prev", "type": "int", "values": [ 1.0 ] }, + { "name": "u_passthrough", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] }, + { "name": "u_phosphor", "type": "vec4", "values": [ 0.7, 0.7, 0.7, 0.0 ] } + ] +}
\ No newline at end of file diff --git a/bgfx/effects/ratios.json b/bgfx/effects/ratios.json new file mode 100644 index 00000000000..0949172b0c9 --- /dev/null +++ b/bgfx/effects/ratios.json @@ -0,0 +1,26 @@ +{ + "blend": { + "equation": "add", + "srcColor": "srcAlpha", + "dstColor": "1-srcAlpha", + "srcAlpha": "srcAlpha", + "dstAlpha": "1-srcAlpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": "true", + "alpha": "true" + }, + "vertex": "vs_ratios", + "fragment": "fs_ratios", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_red_ratios", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 1.0 ] }, + { "name": "u_grn_ratios", "type": "vec4", "values": [ 0.0, 1.0, 0.0, 1.0 ] }, + { "name": "u_blu_ratios", "type": "vec4", "values": [ 0.0, 0.0, 1.0, 1.0 ] }, + { "name": "u_ratio_amount", "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] } + ] +}
\ No newline at end of file diff --git a/bgfx/effects/tint.json b/bgfx/effects/tint.json new file mode 100644 index 00000000000..19cd7687f15 --- /dev/null +++ b/bgfx/effects/tint.json @@ -0,0 +1,24 @@ +{ + "blend": { + "equation": "add", + "srcColor": "srcAlpha", + "dstColor": "1-srcAlpha", + "srcAlpha": "srcAlpha", + "dstAlpha": "1-srcAlpha" + }, + "depth": { + "function": "always" + }, + "cull": { "mode": "none" }, + "write": { + "rgb": "true", + "alpha": "true" + }, + "vertex": "vs_tint", + "fragment": "fs_tint", + "uniforms": [ + { "name": "s_tex", "type": "int", "values": [ 1.0 ] }, + { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] }, + { "name": "u_shift", "type": "vec4", "values": [ 0.1, 0.1, 0.0, 0.0 ] } + ] +}
\ No newline at end of file |
