130 lines
2.1 KiB
JSON
Executable file
130 lines
2.1 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": "lightDir",
|
|
"link": "_lightDirection"
|
|
},
|
|
{
|
|
"id": "lightColor",
|
|
"link": "_lightColor"
|
|
},
|
|
{
|
|
"id": "lightStrength",
|
|
"link": "_lightStrength"
|
|
},
|
|
{
|
|
"id": "eye",
|
|
"link": "_cameraPosition"
|
|
},
|
|
{
|
|
"id": "skinBones",
|
|
"link": "_skinBones",
|
|
"ifdef": ["_Skinning"]
|
|
},
|
|
{
|
|
"id": "shirr",
|
|
"link": "_envmapIrradiance"
|
|
},
|
|
{
|
|
"id": "senvmapRadiance",
|
|
"link": "_envmapRadiance",
|
|
"ifdef": ["_Rad"]
|
|
},
|
|
{
|
|
"id": "envmapNumMipmaps",
|
|
"link": "_envmapNumMipmaps",
|
|
"ifdef": ["_Rad"]
|
|
},
|
|
{
|
|
"id": "senvmapBrdf",
|
|
"link": "_envmapBrdf",
|
|
"ifdef": ["_Rad"]
|
|
},
|
|
{
|
|
"id": "envmapStrength",
|
|
"link": "_envmapStrength"
|
|
},
|
|
{
|
|
"id": "sltcMat",
|
|
"link": "_ltcMat",
|
|
"ifdef": ["_PolyLight"]
|
|
},
|
|
{
|
|
"id": "sltcMag",
|
|
"link": "_ltcMag",
|
|
"ifdef": ["_PolyLight"]
|
|
}
|
|
],
|
|
"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"
|
|
}
|
|
]
|
|
}
|