armory/Assets/pipeline_resource.json
2016-01-17 22:31:31 +01:00

73 lines
2 KiB
JSON

{
"pipeline_resources": [
{
"id": "forward_pipeline",
"render_targets": [],
"stages": [
{
"command": "set_target",
"params": [""]
},
{
"command": "clear_target",
"params": ["depth", "color"]
},
{
"command": "draw_geometry",
"params": ["forward"]
}
]
},
{
"id": "deferred_pipeline",
"render_targets": [
{
"id": "gbuffer",
"width": 0,
"height": 0,
"color_buffers": 3,
"depth": true,
"format": "RGBA128"
}
],
"stages": [
{
"command": "set_target",
"params": ["gbuffer"]
},
{
"command": "clear_target",
"params": ["depth", "color"]
},
{
"command": "draw_geometry",
"params": ["attrib_pass"]
},
{
"command": "set_target",
"params": [""]
},
{
"command": "clear_target",
"params": ["depth", "color"]
},
{
"command": "draw_quad",
"params": ["material_resource", "material1", "env_map"]
},
{
"command": "bind_target",
"params": ["gbuffer", "gbuffer"]
},
{
"command": "draw_quad",
"params": ["material_resource", "material_deferred", "deferred_pass"]
}
]
}
]
}