{
	"name": "edge_detect_2",
	"node_position": {
		"x": 0,
		"y": 0
	},
	"parameters": {
		"size": 6
	},
	"seed_int": 0,
	"shader_model": {
		"code": "",
		"global": "",
		"inputs": [
			{
				"default": "vec3(0.0)",
				"function": true,
				"label": "",
				"longdesc": "The input image",
				"name": "in",
				"shortdesc": "Input",
				"type": "rgb"
			}
		],
		"instance": [
			"float $(name)_fct(vec2 uv) {",
			"\tvec2 e = vec2(1.0/$size, 0.0);",
			"\tvec3 rv = 4.0*$in(uv);",
			"\trv -= $in(uv+e.xy);",
			"\trv -= $in(uv-e.xy);",
			"\trv -= $in(uv+e.yx);",
			"\trv -= $in(uv-e.yx);",
			"\trv = abs(rv);",
			"\treturn max(rv.x, max(rv.y ,rv.z))*$size;",
			"}"
		],
		"longdesc": "An edge detect filter that detects edges horizontally and vertically and draws them in white on a black background",
		"name": "AA Edge Detect",
		"outputs": [
			{
				"f": "clamp($(name)_fct($uv), 0.0, 1.0)",
				"longdesc": "Shows the generated outlines",
				"shortdesc": "Output",
				"type": "f"
			}
		],
		"parameters": [
			{
				"default": 9,
				"first": 4,
				"label": "Size",
				"last": 12,
				"longdesc": "The resolution of the input image",
				"name": "size",
				"shortdesc": "Size",
				"type": "size"
			}
		],
		"shortdesc": "Edge Detect"
	},
	"type": "shader"
}