summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/effects/ratios.json
blob: 7b8af5c1875074cac352be747f08f6bef2ae8f75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
    "blend": {
    	"equation": "add",
    	"srcColor": "1",
    	"dstColor": "0",
    	"srcAlpha": "1",
    	"dstAlpha": "0"
    },
    "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 ] }
    ]
}