summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/effects/tint.json
blob: 7dfe9c8d7091ae2f36b02201589062034e3fc549 (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
{
    "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_tint",
    "fragment": "fs_tint",
    "uniforms": [
    	{ "name": "s_tex",     "type": "int",  "values": [ 1.0 ] },
    	{ "name": "u_tint",    "type": "vec4", "values": [ 1.0, 1.0, 1.0, 1.0 ] },
    	{ "name": "u_shift",   "type": "vec4", "values": [ 0.1, 0.1, 0.0, 0.0 ] },
    	{ "name": "u_texsize", "type": "vec4", "values": [ 1.0, 1.0, 0.0, 0.0 ] }
    ]
}