101 lines
1.6 KiB
JSON
Executable file
101 lines
1.6 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"]
|
|
},
|
|
{
|
|
"id": "senvmapIrradiance",
|
|
"link": "_envmapIrradiance"
|
|
},
|
|
{
|
|
"id": "senvmapRadiance",
|
|
"link": "_envmapRadiance"
|
|
},
|
|
{
|
|
"id": "senvmapBrdf",
|
|
"link": "_envmapBrdf"
|
|
}
|
|
],
|
|
"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"
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"id": "LMVP",
|
|
"link": "_lightModelViewProjectionMatrix"
|
|
},
|
|
{
|
|
"id": "skinBones",
|
|
"link": "_skinBones",
|
|
"ifdef": ["_Skinning"]
|
|
}
|
|
],
|
|
"vertex_shader": "shadowmap.vert.glsl",
|
|
"fragment_shader": "shadowmap.frag.glsl"
|
|
}
|
|
]
|
|
}
|