armory/raw/deferred/deferred.shader.json
2016-04-02 13:42:07 +02:00

148 lines
2.3 KiB
JSON
Executable file

{
"contexts": [
{
"id": "deferred",
"params": [
{
"id": "depth_write",
"value": "true"
},
{
"id": "compare_mode",
"value": "less"
},
{
"id": "cull_mode",
"value": "counter_clockwise"
},
{
"id": "blend_source",
"value": "blend_one"
},
{
"id": "blend_destination",
"value": "blend_zero"
},
{
"id": "stencil_mode",
"value": "always"
},
{
"id": "stencil_pass",
"value": "keep"
},
{
"id": "stencil_fail",
"value": "keep"
},
{
"id": "stencil_reference_value",
"value": 0
},
{
"id": "stencil_read_mask",
"value": 255
},
{
"id": "stencil_write_mask",
"value": 255
}
],
"links": [
{
"id": "M",
"link": "_modelMatrix"
},
{
"id": "NM",
"link": "_normalMatrix"
},
{
"id": "V",
"link": "_viewMatrix"
},
{
"id": "P",
"link": "_projectionMatrix"
},
{
"id": "LMVP",
"link": "_lightModelViewProjectionMatrix"
},
{
"id": "light",
"link": "_lightPosition"
},
{
"id": "eye",
"link": "_cameraPosition"
},
{
"id": "skinBones",
"link": "_skinBones",
"ifdef": "_Skinning"
}
],
"vertex_shader": "deferred.vert.glsl",
"fragment_shader": "deferred.frag.glsl"
},
{
"id": "shadowmap",
"params": [
{
"id": "depth_write",
"value": "true"
},
{
"id": "compare_mode",
"value": "less"
},
{
"id": "cull_mode",
"value": "counter_clockwise"
},
{
"id": "blend_source",
"value": "blend_one"
},
{
"id": "blend_destination",
"value": "blend_zero"
},
{
"id": "stencil_mode",
"value": "always"
},
{
"id": "stencil_pass",
"value": "keep"
},
{
"id": "stencil_fail",
"value": "keep"
},
{
"id": "stencil_reference_value",
"value": 0
},
{
"id": "stencil_read_mask",
"value": 255
},
{
"id": "stencil_write_mask",
"value": 255
}
],
"links": [
{
"id": "LMVP",
"link": "_lightModelViewProjectionMatrix"
}
],
"vertex_shader": "shadowmap.vert.glsl",
"fragment_shader": "shadowmap.frag.glsl"
}
]
}