115 lines
1.8 KiB
JSON
Executable file
115 lines
1.8 KiB
JSON
Executable file
{
|
|
"contexts": [
|
|
{
|
|
"id": "forward",
|
|
"params": [
|
|
{
|
|
"id": "depth_write",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"id": "compare_mode",
|
|
"value": "less"
|
|
},
|
|
{
|
|
"id": "cull_mode",
|
|
"value": "counter_clockwise"
|
|
}
|
|
],
|
|
"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": "forward.vert.glsl",
|
|
"fragment_shader": "forward.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"
|
|
}
|
|
]
|
|
}
|