summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/effects/defocus.json
blob: ddf8abf1b62d9fb3dd61610598a23ef805e2d8fb (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_defocus",
    "fragment": "fs_defocus",
    "uniforms": [
    	{ "name": "DiffuseSampler", "type": "int",  "values": [ 1.0 ] },
    	{ "name": "u_screen_dims",  "type": "vec4", "values": [ 1.0, 0.0, 0.0, 0.0 ] },
    	{ "name": "u_swap_xy",      "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
    	{ "name": "u_quad_dims",    "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] },
    	{ "name": "u_defocus",      "type": "vec4", "values": [ 0.0, 0.0, 0.0, 0.0 ] }
    ]
}