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