summaryrefslogtreecommitdiffstatshomepage
path: root/bgfx/effects/misc/deposterize-pass1.json
blob: 6a62aa367535d520d051c8b052ba8c0dbf953bee (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
27
28
29
30
31
32
33
34
35
36
37
// license:GPL-2.0+
// copyright-holders:Hyllian

/*
   Hyllian's Deposterize Shader - Pass1
   
   Copyright (C) 2011/2016 Hyllian/Jararaca - sergiogdb@gmail.com
*/

{
    "blend": {
    	"equation": "add",
    	"srcColor": "1",
    	"dstColor": "0",
    	"srcAlpha": "1",
    	"dstAlpha": "0"
    },
    "depth": {
    	"function": "always",
    	"writeenable": false
    },
    "cull": {
    	"mode": "none"
    },
    "write": {
    	"rgb": true,
    	"alpha": true
    },
    "vertex": "chains/misc/vs_deposterize-pass1",
    "fragment": "chains/misc/fs_deposterize-pass1",
    "uniforms": [
    	{ "name": "decal",        "type": "int",  "values": [ 1.0 ] },
    	{ "name": "EQ_THRESH2",   "type": "vec4", "values": [ 0.01, 0.0, 0.0, 0.0 ] },
    	{ "name": "DIFF_THRESH2", "type": "vec4", "values": [ 0.06, 0.0, 0.0, 0.0 ] },
    	{ "name": "u_tex_size0",  "type": "vec4", "values": [ 1.0,  1.0, 0.0, 0.0 ] }
    ]
}