armory/Assets/pipeline_resource.json
2016-01-03 19:41:00 +01:00

74 lines
2 KiB
JSON

{
"pipeline_resources": [
{
"id": "blender_pipeline",
"render_targets": [],
"stages": [
{
"command": "set_target",
"params": [""]
},
{
"command": "clear_target",
"params": ["depth", "color"]
},
{
"command": "draw_geometry",
"params": ["blender"]
}
]
},
{
"id": "deferred_pipeline",
"render_targets": [
{
"id": "gbuffer",
"width": 1136,
"height": 640,
"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"]
}
]
}
]
}