diff options
Diffstat (limited to 'bgfx/effects/phosphor.json')
-rw-r--r-- | bgfx/effects/phosphor.json | 25 |
1 files changed, 25 insertions, 0 deletions
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 |