summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx
diff options
context:
space:
mode:
author therealmogminer@gmail.com <therealmogminer@gmail.com>2016-03-25 18:44:18 +0100
committer therealmogminer@gmail.com <therealmogminer@gmail.com>2016-03-25 18:44:46 +0100
commit22f0c31238f40e79902d88c9860d4aebc228424d (patch)
treefacb6e639bdf31a3c424bbd73413a8af4bf1bb15 /bgfx
parent37a32099cd8072362a3ab56929bb4dddc751794a (diff)
Cleanup in the bgfx aisle, nw
Diffstat (limited to 'bgfx')
-rw-r--r--bgfx/effects/blit.json111
-rw-r--r--bgfx/effects/color.json11
-rw-r--r--bgfx/effects/deconverge.json14
-rw-r--r--bgfx/effects/defocus.json11
-rw-r--r--bgfx/effects/distortion.json12
-rw-r--r--bgfx/effects/gui_add.json16
-rw-r--r--bgfx/effects/gui_blend.json20
-rw-r--r--bgfx/effects/gui_multiply.json16
-rw-r--r--bgfx/effects/gui_opaque.json11
-rw-r--r--bgfx/effects/ntsc_decode.json12
-rw-r--r--bgfx/effects/ntsc_encode.json12
-rw-r--r--bgfx/effects/phosphor.json12
-rw-r--r--bgfx/effects/post.json12
-rw-r--r--bgfx/effects/prescale.json12
-rw-r--r--bgfx/effects/screen_add.json17
-rw-r--r--bgfx/effects/screen_blend.json21
-rw-r--r--bgfx/effects/screen_multiply.json17
-rw-r--r--bgfx/effects/screen_opaque.json21
-rw-r--r--bgfx/shaders/dx11/fs_blit.binbin42904 -> 42904 bytes
-rw-r--r--bgfx/shaders/dx11/fs_color.binbin45305 -> 45305 bytes
-rw-r--r--bgfx/shaders/dx11/fs_deconverge.binbin43108 -> 43108 bytes
-rw-r--r--bgfx/shaders/dx11/fs_defocus.binbin49898 -> 49898 bytes
-rw-r--r--bgfx/shaders/dx11/fs_distortion.binbin60482 -> 60482 bytes
-rw-r--r--bgfx/shaders/dx11/fs_gui.binbin42904 -> 42904 bytes
-rw-r--r--bgfx/shaders/dx11/fs_ntsc_decode.binbin60967 -> 60967 bytes
-rw-r--r--bgfx/shaders/dx11/fs_ntsc_encode.binbin50379 -> 50379 bytes
-rw-r--r--bgfx/shaders/dx11/fs_phosphor.binbin45190 -> 45190 bytes
-rw-r--r--bgfx/shaders/dx11/fs_post.binbin55434 -> 58147 bytes
-rw-r--r--bgfx/shaders/dx11/fs_prescale.binbin45438 -> 45438 bytes
-rw-r--r--bgfx/shaders/dx11/fs_screen.binbin42904 -> 42904 bytes
-rw-r--r--bgfx/shaders/dx11/vs_blit.binbin43083 -> 43083 bytes
-rw-r--r--bgfx/shaders/dx11/vs_color.binbin43083 -> 43083 bytes
-rw-r--r--bgfx/shaders/dx11/vs_deconverge.binbin45834 -> 45836 bytes
-rw-r--r--bgfx/shaders/dx11/vs_defocus.binbin43083 -> 43083 bytes
-rw-r--r--bgfx/shaders/dx11/vs_distortion.binbin43083 -> 43083 bytes
-rw-r--r--bgfx/shaders/dx11/vs_gui.binbin43083 -> 43083 bytes
-rw-r--r--bgfx/shaders/dx11/vs_ntsc_decode.binbin43083 -> 43083 bytes
-rw-r--r--bgfx/shaders/dx11/vs_ntsc_encode.binbin43083 -> 43083 bytes
-rw-r--r--bgfx/shaders/dx11/vs_phosphor.binbin43083 -> 43083 bytes
-rw-r--r--bgfx/shaders/dx11/vs_post.binbin43264 -> 43264 bytes
-rw-r--r--bgfx/shaders/dx11/vs_prescale.binbin43083 -> 43083 bytes
-rw-r--r--bgfx/shaders/dx11/vs_screen.binbin43083 -> 43083 bytes
-rw-r--r--bgfx/shaders/dx9/fs_post.binbin4343 -> 5228 bytes
-rw-r--r--bgfx/shaders/dx9/vs_deconverge.binbin1793 -> 1799 bytes
-rw-r--r--bgfx/shaders/gles/fs_post.binbin3433 -> 4212 bytes
-rw-r--r--bgfx/shaders/gles/vs_deconverge.binbin1403 -> 1409 bytes
-rw-r--r--bgfx/shaders/glsl/fs_post.binbin3262 -> 4012 bytes
-rw-r--r--bgfx/shaders/glsl/vs_deconverge.binbin1295 -> 1301 bytes
-rw-r--r--bgfx/shaders/metal/fs_post.binbin3947 -> 4823 bytes
-rw-r--r--bgfx/shaders/metal/vs_deconverge.binbin1543 -> 1547 bytes
50 files changed, 297 insertions, 61 deletions
diff --git a/bgfx/effects/blit.json b/bgfx/effects/blit.json
index 3954b4d0b74..bbc9fd295d4 100644
--- a/bgfx/effects/blit.json
+++ b/bgfx/effects/blit.json
@@ -1,22 +1,121 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+//============================================================
+//
+// blit.json: A simple texture-to-target copy.
+//
+//============================================================
{
+ // blend (required): The blend state for this effect.
"blend": {
+ // equation (optional): What equation to perform on the source and destination blend values.
+ // values: "add", "sub", "revSub", "min", "max"
+ // default: "add"
+ //
+ // "subtract" and "revSubtract" are provided as aliases for "sub" and "revSub"
"equation": "add",
+
+ // blend function parameters (optional): What factors to use in the blend function when calculating the final pixel.
+ // values: "0", "1", "srcColor", "1-srcColor", "dstColor", "1-dstColor", "srcAlpha", "1-srcAlpha", "dstAlpha", "1-dstAlpha"
+ // defaults (srcColor, srcAlpha): "1"
+ // defaults (dstColor, dstAlpha): "0"
+ //
+ // "zero", "one", "invSrcColor", "invDstColor", "invSrcAlpha", and "invDstAlpha" are provided as aliases for "0", "1", "1-srcColor", "1-dstColor", "1-srcAlpha", and "1-dstAlpha"
"srcColor": "1",
"dstColor": "0",
"srcAlpha": "1",
"dstAlpha": "0"
},
+
+ // depth (required): The depth state for this effect.
"depth": {
- "function": "always"
+ // function (optional): The depth function to use when drawing.
+ // values: "never", "less", "equal", "lequal", "greater", "notequal", "gequal", "always"
+ // default: "always"
+ "function": "always",
+
+ // writeenable (optional): Whether to store Z-buffer data.
+ // values: true, false
+ // default: false
+ "writeenable": false
},
- "cull": { "mode": "none" },
+
+ // cull (required): The cull mode for this effect.
+ "cull": {
+ // mode (optional): What winding, if any, to cull.
+ // values: "none", "cw", "ccw"
+ // default: "ccw"
+ //
+ // "clockwise" and "counterclockwise" are provided as aliases for "cw" and "ccw"
+ "mode": "none"
+ },
+
+ // write (required): Write enable for color and alpha channels.
"write": {
- "rgb": "true",
- "alpha": "true"
+ // rgb (optional): Whether to store color data when drawing.
+ // values: true, false
+ // default: false
+ "rgb": true,
+
+ // alpha (optional): Whether to store alpha data when drawing.
+ // values: true, false
+ // default: false
+ "alpha": true
},
+
+ // vertex (required): The vertex shader to use when drawing.
+ // value: A string containing the name of a shader file to use, minus the extension.
"vertex": "vs_blit",
+
+ // pixel/fragment (required): The pixel or fragment shader to use when drawing.
+ // value: A string containing the name of a shader file to use, minus the extension.
"fragment": "fs_blit",
- "uniforms": [
- { "name": "s_tex", "type": "int", "values": [ 1.0 ] }
+
+ // uniforms (required): The list of uniforms for this effect. Can be empty, but must exist.
+ "uniforms": [
+ {
+ // name (required): The name of the uniform, as used in either the vertex or pixel/fragment shader.
+ // value: A string containing the name of the uniform as described above.
+ //
+ // NOTE: Some names correspond to special values that will be automatically filled by the BGFX
+ // code if they are used by the shader. These names are:
+ // "u_screen_dims"
+ // The dimensions of the first texture input if present, otherwise the dimensions of the output window.
+ // Valid values: xy
+ // "u_inv_screen_dims"
+ // The reciprocal of u_screen_dims.
+ // Valid values: xy
+ // "u_source_dims"
+ // The size, in pixels, of the screen texture incoming to the chain.
+ // Valid values: xy
+ // "u_rotation_type"
+ // This screen's rotation type. 0 if ROT0, 1 if ROT90, 2 if ROT180, 3 of ROT270.
+ // Valid values: x
+ // "u_swap_xy"
+ // Whether this screen is swapped on the X and Y axes. 1 if true, 0 if false.
+ // Valid values: x
+ // "u_quad_dims"
+ // The dimensions, in pixels, occupied by this one screen primitive itself in the output window.
+ // Valid values: xy
+ // "u_tex_sizeN"
+ // The dimensions, in pixels, of the texture in input pair N. Starts at 0.
+ // valid values: xy
+ "name": "s_tex",
+
+ // type (required): The type of the uniform.
+ // values: "int", "vec4", "mat3", "mat4"
+ //
+ // Note: "int" should only be used for samplers.
+ "type": "int",
+
+ // values (required): The array of numbers with which to initialize the uniform.
+ // value: A JSON array containin the correct amount of numbers to initialize a uniform of the
+ // above-specified type. The following size rules should be followed:
+ // "int": 1 float
+ // "vec4": 4 floats
+ // "mat3": 9 floats
+ // "mat4": 16 floats
+ "values": [ 1.0 ]
+ }
]
} \ No newline at end of file
diff --git a/bgfx/effects/color.json b/bgfx/effects/color.json
index df6448631ec..5a033140233 100644
--- a/bgfx/effects/color.json
+++ b/bgfx/effects/color.json
@@ -1,3 +1,10 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz,ImJezze
+//============================================================
+//
+// color.json: Color aberration shader for CRT simulation.
+//
+//============================================================
{
"blend": {
"equation": "add",
@@ -11,8 +18,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_color",
"fragment": "fs_color",
diff --git a/bgfx/effects/deconverge.json b/bgfx/effects/deconverge.json
index f438bd4f016..dafd2fb630e 100644
--- a/bgfx/effects/deconverge.json
+++ b/bgfx/effects/deconverge.json
@@ -1,3 +1,11 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz,ImJezze
+//============================================================
+//
+// deconverge.json: Electron-gun misalignment shader for CRT
+// simulation.
+//
+//============================================================
{
"blend": {
"equation": "add",
@@ -11,14 +19,14 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_deconverge",
"fragment": "fs_deconverge",
"uniforms": [
{ "name": "s_tex", "type": "int", "values": [ 1.0 ] },
- { "name": "u_tex_size0", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] },
+ { "name": "u_source_size", "type": "vec4", "values": [ 256.0, 256.0, 0.0, 0.0 ] },
{ "name": "u_converge_red", "type": "vec4", "values": [ 0.5, 0.0, 0.0, 0.0 ] },
{ "name": "u_converge_green", "type": "vec4", "values": [ 0.0, 0.5, 0.0, 0.0 ] },
{ "name": "u_converge_blue", "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
diff --git a/bgfx/effects/defocus.json b/bgfx/effects/defocus.json
index 4c14ae05d76..7ba4b2cec49 100644
--- a/bgfx/effects/defocus.json
+++ b/bgfx/effects/defocus.json
@@ -1,3 +1,10 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz,ImJezze
+//============================================================
+//
+// defocus.json: Foucs adjustment shader for CRT simulation.
+//
+//============================================================
{
"blend": {
"equation": "add",
@@ -11,8 +18,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_defocus",
"fragment": "fs_defocus",
diff --git a/bgfx/effects/distortion.json b/bgfx/effects/distortion.json
index 13de69a40f6..e8bbac16095 100644
--- a/bgfx/effects/distortion.json
+++ b/bgfx/effects/distortion.json
@@ -1,3 +1,11 @@
+// license:BSD-3-Clause
+// copyright-holders:ImJezze
+//============================================================
+//
+// distortion.json: Output distortion shader for CRT
+// simulation.
+//
+//============================================================
{
"blend": {
"equation": "add",
@@ -11,8 +19,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_distortion",
"fragment": "fs_distortion",
diff --git a/bgfx/effects/gui_add.json b/bgfx/effects/gui_add.json
index d8672a0f026..bff6517b739 100644
--- a/bgfx/effects/gui_add.json
+++ b/bgfx/effects/gui_add.json
@@ -1,9 +1,17 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+//============================================================
+//
+// gui_add.json: Generic additive-blend shader for GUI
+// elements.
+//
+//============================================================
{
"blend": {
"equation": "add",
- "srcColor": "srcAlpha",
+ "srcColor": "srcalpha",
"dstColor": "1",
- "srcAlpha": "srcAlpha",
+ "srcAlpha": "srcalpha",
"dstAlpha": "1"
},
"depth": {
@@ -11,8 +19,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_gui",
"fragment": "fs_gui",
diff --git a/bgfx/effects/gui_blend.json b/bgfx/effects/gui_blend.json
index d8cfda51672..2ef99b816e7 100644
--- a/bgfx/effects/gui_blend.json
+++ b/bgfx/effects/gui_blend.json
@@ -1,18 +1,26 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+//============================================================
+//
+// gui_blend.json: Generic modulate-blend shader for GUI
+// elements.
+//
+//============================================================
{
"blend": {
"equation": "add",
- "srcColor": "srcAlpha",
- "dstColor": "1-srcAlpha",
- "srcAlpha": "srcAlpha",
- "dstAlpha": "1-srcAlpha"
+ "srcColor": "srcalpha",
+ "dstColor": "1-srcalpha",
+ "srcAlpha": "srcalpha",
+ "dstAlpha": "1-srcalpha"
},
"depth": {
"function": "always"
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_gui",
"fragment": "fs_gui",
diff --git a/bgfx/effects/gui_multiply.json b/bgfx/effects/gui_multiply.json
index fa70d303aec..14551be8190 100644
--- a/bgfx/effects/gui_multiply.json
+++ b/bgfx/effects/gui_multiply.json
@@ -1,9 +1,17 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+//============================================================
+//
+// gui_multiply.json: Generic multiplicative blend shader
+// for GUI elements.
+//
+//============================================================
{
"blend": {
"equation": "add",
- "srcColor": "dstColor",
+ "srcColor": "dstcolor",
"dstColor": "0",
- "srcAlpha": "dstAlpha",
+ "srcAlpha": "dstalpha",
"dstAlpha": "0"
},
"depth": {
@@ -11,8 +19,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_gui",
"fragment": "fs_gui",
diff --git a/bgfx/effects/gui_opaque.json b/bgfx/effects/gui_opaque.json
index 58d1a324d2d..53e6f732828 100644
--- a/bgfx/effects/gui_opaque.json
+++ b/bgfx/effects/gui_opaque.json
@@ -1,3 +1,10 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+//============================================================
+//
+// gui_opaque.json: Generic opaque shader for GUI elements.
+//
+//============================================================
{
"blend": {
"equation": "add",
@@ -11,8 +18,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_gui",
"fragment": "fs_gui",
diff --git a/bgfx/effects/ntsc_decode.json b/bgfx/effects/ntsc_decode.json
index 0bf1963c85f..208f35b0ff3 100644
--- a/bgfx/effects/ntsc_decode.json
+++ b/bgfx/effects/ntsc_decode.json
@@ -1,3 +1,11 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz,ImJezze
+//============================================================
+//
+// ntsc_decode.json: Composite NTSC decoder shader for CRT
+// simulation.
+//
+//============================================================
{
"blend": {
"equation": "add",
@@ -11,8 +19,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_ntsc_decode",
"fragment": "fs_ntsc_decode",
diff --git a/bgfx/effects/ntsc_encode.json b/bgfx/effects/ntsc_encode.json
index f635edad14c..8ff193398b2 100644
--- a/bgfx/effects/ntsc_encode.json
+++ b/bgfx/effects/ntsc_encode.json
@@ -1,3 +1,11 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz,ImJezze
+//============================================================
+//
+// ntsc_encode.json: Composite NTSC encoder shader for CRT
+// simulation.
+//
+//============================================================
{
"blend": {
"equation": "add",
@@ -11,8 +19,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_ntsc_encode",
"fragment": "fs_ntsc_encode",
diff --git a/bgfx/effects/phosphor.json b/bgfx/effects/phosphor.json
index 68038e3e99b..aaa3c12f727 100644
--- a/bgfx/effects/phosphor.json
+++ b/bgfx/effects/phosphor.json
@@ -1,3 +1,11 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz,ImJezze
+//============================================================
+//
+// phosphor.json: Phosphor persistence shader for CRT
+// simulation.
+//
+//============================================================
{
"blend": {
"equation": "add",
@@ -11,8 +19,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_phosphor",
"fragment": "fs_phosphor",
diff --git a/bgfx/effects/post.json b/bgfx/effects/post.json
index 4a660a70411..525bbfc39b8 100644
--- a/bgfx/effects/post.json
+++ b/bgfx/effects/post.json
@@ -1,3 +1,11 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz,ImJezze
+//============================================================
+//
+// post.json: Scanline, hum-bar, shadow-mask, and final
+// color convolution shader for CRT simulation.
+//
+//============================================================
{
"blend": {
"equation": "add",
@@ -11,8 +19,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_post",
"fragment": "fs_post",
diff --git a/bgfx/effects/prescale.json b/bgfx/effects/prescale.json
index 492f8a11ad6..a636c4316e0 100644
--- a/bgfx/effects/prescale.json
+++ b/bgfx/effects/prescale.json
@@ -1,3 +1,11 @@
+// license:BSD-3-Clause
+// copyright-holders:ImJezze
+//============================================================
+//
+// prescale.json: Unfiltered upscale shader for CRT
+// simulation.
+//
+//============================================================
{
"blend": {
"equation": "add",
@@ -11,8 +19,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_prescale",
"fragment": "fs_prescale",
diff --git a/bgfx/effects/screen_add.json b/bgfx/effects/screen_add.json
index 43d110fc2d1..ed1d6aae00c 100644
--- a/bgfx/effects/screen_add.json
+++ b/bgfx/effects/screen_add.json
@@ -1,9 +1,18 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+//============================================================
+//
+// screen_add.json: Shader used when drawing a final
+// post-processed screen image to the output window with
+// additive blending.
+//
+//============================================================
{
"blend": {
"equation": "add",
- "srcColor": "srcAlpha",
+ "srcColor": "srcalpha",
"dstColor": "1",
- "srcAlpha": "srcAlpha",
+ "srcAlpha": "srcalpha",
"dstAlpha": "1"
},
"depth": {
@@ -11,8 +20,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_screen",
"fragment": "fs_screen",
diff --git a/bgfx/effects/screen_blend.json b/bgfx/effects/screen_blend.json
index 37da6abf24f..d10e119d23d 100644
--- a/bgfx/effects/screen_blend.json
+++ b/bgfx/effects/screen_blend.json
@@ -1,18 +1,27 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+//============================================================
+//
+// screen_blend.json: Shader used when drawing a final
+// post-processed screen image to the output window with
+// modulate blending.
+//
+//============================================================
{
"blend": {
"equation": "add",
- "srcColor": "srcAlpha",
- "dstColor": "1-srcAlpha",
- "srcAlpha": "srcAlpha",
- "dstAlpha": "1-srcAlpha"
+ "srcColor": "srcalpha",
+ "dstColor": "1-srcalpha",
+ "srcAlpha": "srcalpha",
+ "dstAlpha": "1-srcalpha"
},
"depth": {
"function": "always"
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_screen",
"fragment": "fs_screen",
diff --git a/bgfx/effects/screen_multiply.json b/bgfx/effects/screen_multiply.json
index cd37b997954..feca7eb7ef0 100644
--- a/bgfx/effects/screen_multiply.json
+++ b/bgfx/effects/screen_multiply.json
@@ -1,9 +1,18 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+//============================================================
+//
+// screen_multiply.json: Shader used when drawing a final
+// post-processed screen image to the output window with
+// multiply blending.
+//
+//============================================================
{
"blend": {
"equation": "add",
- "srcColor": "dstColor",
+ "srcColor": "dstcolor",
"dstColor": "0",
- "srcAlpha": "dstAlpha",
+ "srcAlpha": "dstalpha",
"dstAlpha": "0"
},
"depth": {
@@ -11,8 +20,8 @@
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_screen",
"fragment": "fs_screen",
diff --git a/bgfx/effects/screen_opaque.json b/bgfx/effects/screen_opaque.json
index 121439837ab..6e9dc300cde 100644
--- a/bgfx/effects/screen_opaque.json
+++ b/bgfx/effects/screen_opaque.json
@@ -1,18 +1,27 @@
+// license:BSD-3-Clause
+// copyright-holders:Ryan Holtz
+//============================================================
+//
+// screen_opaque.json: Shader used when drawing a final
+// post-processed screen image to the output window with
+// no blending.
+//
+//============================================================
{
"blend": {
"equation": "add",
- "srcColor": "srcAlpha",
- "dstColor": "1-srcAlpha",
- "srcAlpha": "srcAlpha",
- "dstAlpha": "1-srcAlpha"
+ "srcColor": "1",
+ "dstColor": "0",
+ "srcAlpha": "1",
+ "dstAlpha": "0"
},
"depth": {
"function": "always"
},
"cull": { "mode": "none" },
"write": {
- "rgb": "true",
- "alpha": "true"
+ "rgb": true,
+ "alpha": true
},
"vertex": "vs_screen",
"fragment": "fs_screen",
diff --git a/bgfx/shaders/dx11/fs_blit.bin b/bgfx/shaders/dx11/fs_blit.bin
index 0d17db9e972..97c305a440d 100644
--- a/bgfx/shaders/dx11/fs_blit.bin
+++ b/bgfx/shaders/dx11/fs_blit.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/fs_color.bin b/bgfx/shaders/dx11/fs_color.bin
index 7ada1d530ff..145c0e72c3b 100644
--- a/bgfx/shaders/dx11/fs_color.bin
+++ b/bgfx/shaders/dx11/fs_color.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/fs_deconverge.bin b/bgfx/shaders/dx11/fs_deconverge.bin
index 21266fc0729..34032932b6b 100644
--- a/bgfx/shaders/dx11/fs_deconverge.bin
+++ b/bgfx/shaders/dx11/fs_deconverge.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/fs_defocus.bin b/bgfx/shaders/dx11/fs_defocus.bin
index 89a9eabf154..2b1552c0cf6 100644
--- a/bgfx/shaders/dx11/fs_defocus.bin
+++ b/bgfx/shaders/dx11/fs_defocus.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/fs_distortion.bin b/bgfx/shaders/dx11/fs_distortion.bin
index 991c224260e..19a7124084e 100644
--- a/bgfx/shaders/dx11/fs_distortion.bin
+++ b/bgfx/shaders/dx11/fs_distortion.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/fs_gui.bin b/bgfx/shaders/dx11/fs_gui.bin
index bab438f0bc8..de921a8ac60 100644
--- a/bgfx/shaders/dx11/fs_gui.bin
+++ b/bgfx/shaders/dx11/fs_gui.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/fs_ntsc_decode.bin b/bgfx/shaders/dx11/fs_ntsc_decode.bin
index 34e0a451339..e42dfd9ab0b 100644
--- a/bgfx/shaders/dx11/fs_ntsc_decode.bin
+++ b/bgfx/shaders/dx11/fs_ntsc_decode.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/fs_ntsc_encode.bin b/bgfx/shaders/dx11/fs_ntsc_encode.bin
index 82929ef7b61..76ed9fc6b9d 100644
--- a/bgfx/shaders/dx11/fs_ntsc_encode.bin
+++ b/bgfx/shaders/dx11/fs_ntsc_encode.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/fs_phosphor.bin b/bgfx/shaders/dx11/fs_phosphor.bin
index 39b9243398b..cb4067339e1 100644
--- a/bgfx/shaders/dx11/fs_phosphor.bin
+++ b/bgfx/shaders/dx11/fs_phosphor.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/fs_post.bin b/bgfx/shaders/dx11/fs_post.bin
index 9a9c4d5340b..142a5ce6296 100644
--- a/bgfx/shaders/dx11/fs_post.bin
+++ b/bgfx/shaders/dx11/fs_post.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/fs_prescale.bin b/bgfx/shaders/dx11/fs_prescale.bin
index cd3f1b4bbf6..48b30509c0b 100644
--- a/bgfx/shaders/dx11/fs_prescale.bin
+++ b/bgfx/shaders/dx11/fs_prescale.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/fs_screen.bin b/bgfx/shaders/dx11/fs_screen.bin
index 741898018e7..da6666a4c60 100644
--- a/bgfx/shaders/dx11/fs_screen.bin
+++ b/bgfx/shaders/dx11/fs_screen.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/vs_blit.bin b/bgfx/shaders/dx11/vs_blit.bin
index 7d81d4ca2c6..296cdf52be7 100644
--- a/bgfx/shaders/dx11/vs_blit.bin
+++ b/bgfx/shaders/dx11/vs_blit.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/vs_color.bin b/bgfx/shaders/dx11/vs_color.bin
index 910dcf83eb6..a0673685469 100644
--- a/bgfx/shaders/dx11/vs_color.bin
+++ b/bgfx/shaders/dx11/vs_color.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/vs_deconverge.bin b/bgfx/shaders/dx11/vs_deconverge.bin
index 57e88242548..43c6c33410e 100644
--- a/bgfx/shaders/dx11/vs_deconverge.bin
+++ b/bgfx/shaders/dx11/vs_deconverge.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/vs_defocus.bin b/bgfx/shaders/dx11/vs_defocus.bin
index add460bbedb..eb5d2fc8e4a 100644
--- a/bgfx/shaders/dx11/vs_defocus.bin
+++ b/bgfx/shaders/dx11/vs_defocus.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/vs_distortion.bin b/bgfx/shaders/dx11/vs_distortion.bin
index 42f4c175d20..2d5d08866b9 100644
--- a/bgfx/shaders/dx11/vs_distortion.bin
+++ b/bgfx/shaders/dx11/vs_distortion.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/vs_gui.bin b/bgfx/shaders/dx11/vs_gui.bin
index af3243fbdf8..b1640861f2b 100644
--- a/bgfx/shaders/dx11/vs_gui.bin
+++ b/bgfx/shaders/dx11/vs_gui.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/vs_ntsc_decode.bin b/bgfx/shaders/dx11/vs_ntsc_decode.bin
index 0ae50c5a1a4..29e62929df3 100644
--- a/bgfx/shaders/dx11/vs_ntsc_decode.bin
+++ b/bgfx/shaders/dx11/vs_ntsc_decode.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/vs_ntsc_encode.bin b/bgfx/shaders/dx11/vs_ntsc_encode.bin
index ab7d6786fbf..87c60815602 100644
--- a/bgfx/shaders/dx11/vs_ntsc_encode.bin
+++ b/bgfx/shaders/dx11/vs_ntsc_encode.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/vs_phosphor.bin b/bgfx/shaders/dx11/vs_phosphor.bin
index ac5c9fce4d4..29f497b4a65 100644
--- a/bgfx/shaders/dx11/vs_phosphor.bin
+++ b/bgfx/shaders/dx11/vs_phosphor.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/vs_post.bin b/bgfx/shaders/dx11/vs_post.bin
index f993a26347b..70639fc75f7 100644
--- a/bgfx/shaders/dx11/vs_post.bin
+++ b/bgfx/shaders/dx11/vs_post.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/vs_prescale.bin b/bgfx/shaders/dx11/vs_prescale.bin
index bf2f1254cf6..c173aff6efd 100644
--- a/bgfx/shaders/dx11/vs_prescale.bin
+++ b/bgfx/shaders/dx11/vs_prescale.bin
Binary files differ
diff --git a/bgfx/shaders/dx11/vs_screen.bin b/bgfx/shaders/dx11/vs_screen.bin
index fa7bb70f238..766a9c4e93b 100644
--- a/bgfx/shaders/dx11/vs_screen.bin
+++ b/bgfx/shaders/dx11/vs_screen.bin
Binary files differ
diff --git a/bgfx/shaders/dx9/fs_post.bin b/bgfx/shaders/dx9/fs_post.bin
index a8b1990b02f..aad4df72ddd 100644
--- a/bgfx/shaders/dx9/fs_post.bin
+++ b/bgfx/shaders/dx9/fs_post.bin
Binary files differ
diff --git a/bgfx/shaders/dx9/vs_deconverge.bin b/bgfx/shaders/dx9/vs_deconverge.bin
index 6d4cd09eaec..dbe6e584767 100644
--- a/bgfx/shaders/dx9/vs_deconverge.bin
+++ b/bgfx/shaders/dx9/vs_deconverge.bin
Binary files differ
diff --git a/bgfx/shaders/gles/fs_post.bin b/bgfx/shaders/gles/fs_post.bin
index 03e4d278687..72279deee43 100644
--- a/bgfx/shaders/gles/fs_post.bin
+++ b/bgfx/shaders/gles/fs_post.bin
Binary files differ
diff --git a/bgfx/shaders/gles/vs_deconverge.bin b/bgfx/shaders/gles/vs_deconverge.bin
index fab2c05298b..1183e5872a0 100644
--- a/bgfx/shaders/gles/vs_deconverge.bin
+++ b/bgfx/shaders/gles/vs_deconverge.bin
Binary files differ
diff --git a/bgfx/shaders/glsl/fs_post.bin b/bgfx/shaders/glsl/fs_post.bin
index 3b507c5815c..23e7d687606 100644
--- a/bgfx/shaders/glsl/fs_post.bin
+++ b/bgfx/shaders/glsl/fs_post.bin
Binary files differ
diff --git a/bgfx/shaders/glsl/vs_deconverge.bin b/bgfx/shaders/glsl/vs_deconverge.bin
index dc288268197..137a591a958 100644
--- a/bgfx/shaders/glsl/vs_deconverge.bin
+++ b/bgfx/shaders/glsl/vs_deconverge.bin
Binary files differ
diff --git a/bgfx/shaders/metal/fs_post.bin b/bgfx/shaders/metal/fs_post.bin
index c5795b2fed5..4da4ca2e2c1 100644
--- a/bgfx/shaders/metal/fs_post.bin
+++ b/bgfx/shaders/metal/fs_post.bin
Binary files differ
diff --git a/bgfx/shaders/metal/vs_deconverge.bin b/bgfx/shaders/metal/vs_deconverge.bin
index 14d0472286d..071a3a6d612 100644
--- a/bgfx/shaders/metal/vs_deconverge.bin
+++ b/bgfx/shaders/metal/vs_deconverge.bin
Binary files differ