2015-12-17 20:07:23 +01:00
|
|
|
{
|
|
|
|
"contexts": [
|
|
|
|
{
|
2016-01-11 13:07:44 +01:00
|
|
|
"id": "forward",
|
2015-12-17 20:07:23 +01:00
|
|
|
"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"
|
|
|
|
},
|
|
|
|
{
|
2016-01-31 00:20:07 +01:00
|
|
|
"id": "LMVP",
|
|
|
|
"link": "_lightModelViewProjectionMatrix"
|
2015-12-17 20:07:23 +01:00
|
|
|
},
|
|
|
|
{
|
2016-06-26 12:11:51 +02:00
|
|
|
"id": "lightDir",
|
|
|
|
"link": "_lightDirection"
|
2015-12-17 20:07:23 +01:00
|
|
|
},
|
|
|
|
{
|
2016-05-16 12:01:12 +02:00
|
|
|
"id": "lightColor",
|
|
|
|
"link": "_lightColor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "lightStrength",
|
|
|
|
"link": "_lightStrength"
|
|
|
|
},
|
|
|
|
{
|
2015-12-17 20:07:23 +01:00
|
|
|
"id": "eye",
|
|
|
|
"link": "_cameraPosition"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "skinBones",
|
|
|
|
"link": "_skinBones",
|
2016-04-29 11:11:45 +02:00
|
|
|
"ifdef": ["_Skinning"]
|
2016-04-08 16:17:57 +02:00
|
|
|
},
|
|
|
|
{
|
2016-06-26 12:11:51 +02:00
|
|
|
"id": "shirr",
|
2016-04-08 16:17:57 +02:00
|
|
|
"link": "_envmapIrradiance"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "senvmapRadiance",
|
2016-06-30 13:22:05 +02:00
|
|
|
"link": "_envmapRadiance",
|
|
|
|
"ifdef": ["_Rad"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "envmapNumMipmaps",
|
|
|
|
"link": "_envmapNumMipmaps",
|
|
|
|
"ifdef": ["_Rad"]
|
2016-04-08 16:17:57 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "senvmapBrdf",
|
2016-06-30 13:22:05 +02:00
|
|
|
"link": "_envmapBrdf",
|
|
|
|
"ifdef": ["_Rad"]
|
2016-05-10 12:11:31 +02:00
|
|
|
},
|
2016-05-25 00:13:44 +02:00
|
|
|
{
|
|
|
|
"id": "envmapStrength",
|
|
|
|
"link": "_envmapStrength"
|
|
|
|
},
|
2016-05-10 12:11:31 +02:00
|
|
|
{
|
|
|
|
"id": "sltcMat",
|
2016-05-12 21:03:23 +02:00
|
|
|
"link": "_ltcMat",
|
|
|
|
"ifdef": ["_PolyLight"]
|
2016-05-10 12:11:31 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "sltcMag",
|
2016-05-12 21:03:23 +02:00
|
|
|
"link": "_ltcMag",
|
|
|
|
"ifdef": ["_PolyLight"]
|
2015-12-17 20:07:23 +01:00
|
|
|
}
|
|
|
|
],
|
2016-01-11 13:07:44 +01:00
|
|
|
"vertex_shader": "forward.vert.glsl",
|
|
|
|
"fragment_shader": "forward.frag.glsl"
|
2016-02-07 23:03:52 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "shadowmap",
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"id": "depth_write",
|
|
|
|
"value": "true"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "compare_mode",
|
|
|
|
"value": "less"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "cull_mode",
|
2016-03-09 13:08:46 +01:00
|
|
|
"value": "counter_clockwise"
|
2016-02-07 23:03:52 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"links": [
|
|
|
|
{
|
|
|
|
"id": "LMVP",
|
|
|
|
"link": "_lightModelViewProjectionMatrix"
|
2016-04-07 00:06:57 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "skinBones",
|
|
|
|
"link": "_skinBones",
|
2016-04-29 11:11:45 +02:00
|
|
|
"ifdef": ["_Skinning"]
|
2016-02-07 23:03:52 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"vertex_shader": "shadowmap.vert.glsl",
|
|
|
|
"fragment_shader": "shadowmap.frag.glsl"
|
2015-12-17 20:07:23 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|