summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2016-02-18 15:57:34 +0100
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2016-02-21 03:03:23 +0100
commit9a47a870df619656e9092f2f77622e84e640307a (patch)
treeb8640bf79ffb55d0c9ed6fc27bbd4ce16a5e1a2e /bgfx
parentdadf8e7d79696996ab3ef840fe99a588ede538fa (diff)
First take on render API reorg, nw
Diffstat (limited to 'bgfx')
-rw-r--r--bgfx/effects/gui_add.json22
-rw-r--r--bgfx/effects/gui_blend.json22
-rw-r--r--bgfx/effects/gui_multiply.json22
-rw-r--r--bgfx/effects/gui_opaque.json22
-rw-r--r--bgfx/effects/screen_add.json23
-rw-r--r--bgfx/effects/screen_blend.json23
-rw-r--r--bgfx/effects/screen_multiply.json23
-rw-r--r--bgfx/effects/screen_opaque.json23
8 files changed, 180 insertions, 0 deletions
diff --git a/bgfx/effects/gui_add.json b/bgfx/effects/gui_add.json
new file mode 100644
index 00000000000..d8672a0f026
--- /dev/null
+++ b/bgfx/effects/gui_add.json
@@ -0,0 +1,22 @@
+{
+ "blend": {
+ "equation": "add",
+ "srcColor": "srcAlpha",
+ "dstColor": "1",
+ "srcAlpha": "srcAlpha",
+ "dstAlpha": "1"
+ },
+ "depth": {
+ "function": "always"
+ },
+ "cull": { "mode": "none" },
+ "write": {
+ "rgb": "true",
+ "alpha": "true"
+ },
+ "vertex": "vs_gui",
+ "fragment": "fs_gui",
+ "uniforms": [
+ { "name": "s_tex", "type": "int", "values": [ 1.0 ] }
+ ]
+} \ No newline at end of file
diff --git a/bgfx/effects/gui_blend.json b/bgfx/effects/gui_blend.json
new file mode 100644
index 00000000000..d8cfda51672
--- /dev/null
+++ b/bgfx/effects/gui_blend.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_gui",
+ "fragment": "fs_gui",
+ "uniforms": [
+ { "name": "s_tex", "type": "int", "values": [ 1.0 ] }
+ ]
+} \ No newline at end of file
diff --git a/bgfx/effects/gui_multiply.json b/bgfx/effects/gui_multiply.json
new file mode 100644
index 00000000000..fa70d303aec
--- /dev/null
+++ b/bgfx/effects/gui_multiply.json
@@ -0,0 +1,22 @@
+{
+ "blend": {
+ "equation": "add",
+ "srcColor": "dstColor",
+ "dstColor": "0",
+ "srcAlpha": "dstAlpha",
+ "dstAlpha": "0"
+ },
+ "depth": {
+ "function": "always"
+ },
+ "cull": { "mode": "none" },
+ "write": {
+ "rgb": "true",
+ "alpha": "true"
+ },
+ "vertex": "vs_gui",
+ "fragment": "fs_gui",
+ "uniforms": [
+ { "name": "s_tex", "type": "int", "values": [ 1.0 ] }
+ ]
+} \ No newline at end of file
diff --git a/bgfx/effects/gui_opaque.json b/bgfx/effects/gui_opaque.json
new file mode 100644
index 00000000000..58d1a324d2d
--- /dev/null
+++ b/bgfx/effects/gui_opaque.json
@@ -0,0 +1,22 @@
+{
+ "blend": {
+ "equation": "add",
+ "srcColor": "1",
+ "dstColor": "0",
+ "srcAlpha": "1",
+ "dstAlpha": "0"
+ },
+ "depth": {
+ "function": "always"
+ },
+ "cull": { "mode": "none" },
+ "write": {
+ "rgb": "true",
+ "alpha": "true"
+ },
+ "vertex": "vs_gui",
+ "fragment": "fs_gui",
+ "uniforms": [
+ { "name": "s_tex", "type": "int", "values": [ 1.0 ] }
+ ]
+} \ No newline at end of file
diff --git a/bgfx/effects/screen_add.json b/bgfx/effects/screen_add.json
new file mode 100644
index 00000000000..43d110fc2d1
--- /dev/null
+++ b/bgfx/effects/screen_add.json
@@ -0,0 +1,23 @@
+{
+ "blend": {
+ "equation": "add",
+ "srcColor": "srcAlpha",
+ "dstColor": "1",
+ "srcAlpha": "srcAlpha",
+ "dstAlpha": "1"
+ },
+ "depth": {
+ "function": "always"
+ },
+ "cull": { "mode": "none" },
+ "write": {
+ "rgb": "true",
+ "alpha": "true"
+ },
+ "vertex": "vs_screen",
+ "fragment": "fs_screen",
+ "uniforms": [
+ { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
+ { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] }
+ ]
+} \ No newline at end of file
diff --git a/bgfx/effects/screen_blend.json b/bgfx/effects/screen_blend.json
new file mode 100644
index 00000000000..37da6abf24f
--- /dev/null
+++ b/bgfx/effects/screen_blend.json
@@ -0,0 +1,23 @@
+{
+ "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_screen",
+ "fragment": "fs_screen",
+ "uniforms": [
+ { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
+ { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] }
+ ]
+} \ No newline at end of file
diff --git a/bgfx/effects/screen_multiply.json b/bgfx/effects/screen_multiply.json
new file mode 100644
index 00000000000..cd37b997954
--- /dev/null
+++ b/bgfx/effects/screen_multiply.json
@@ -0,0 +1,23 @@
+{
+ "blend": {
+ "equation": "add",
+ "srcColor": "dstColor",
+ "dstColor": "0",
+ "srcAlpha": "dstAlpha",
+ "dstAlpha": "0"
+ },
+ "depth": {
+ "function": "always"
+ },
+ "cull": { "mode": "none" },
+ "write": {
+ "rgb": "true",
+ "alpha": "true"
+ },
+ "vertex": "vs_screen",
+ "fragment": "fs_screen",
+ "uniforms": [
+ { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
+ { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] }
+ ]
+} \ No newline at end of file
diff --git a/bgfx/effects/screen_opaque.json b/bgfx/effects/screen_opaque.json
new file mode 100644
index 00000000000..e3ac55387c3
--- /dev/null
+++ b/bgfx/effects/screen_opaque.json
@@ -0,0 +1,23 @@
+{
+ "blend": {
+ "equation": "add",
+ "srcColor": "1",
+ "dstColor": "0",
+ "srcAlpha": "1",
+ "dstAlpha": "0"
+ },
+ "depth": {
+ "function": "always"
+ },
+ "cull": { "mode": "none" },
+ "write": {
+ "rgb": "true",
+ "alpha": "true"
+ },
+ "vertex": "vs_screen",
+ "fragment": "fs_screen",
+ "uniforms": [
+ { "name": "s_tex", "type": "int", "values": [ 1.0 ] },
+ { "name": "u_tint", "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] }
+ ]
+} \ No newline at end of file