289 lines
4.9 KiB
JSON
Executable file
289 lines
4.9 KiB
JSON
Executable file
{
|
|
"contexts": [
|
|
{
|
|
"name": "mesh",
|
|
"params": [
|
|
{
|
|
"name": "depth_write",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"name": "compare_mode",
|
|
"value": "less_equal"
|
|
},
|
|
{
|
|
"name": "cull_mode",
|
|
"value": "clockwise"
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"name": "W",
|
|
"link": "_worldMatrix"
|
|
},
|
|
{
|
|
"name": "N",
|
|
"link": "_normalMatrix"
|
|
},
|
|
{
|
|
"name": "V",
|
|
"link": "_viewMatrix"
|
|
},
|
|
{
|
|
"name": "P",
|
|
"link": "_projectionMatrix"
|
|
},
|
|
{
|
|
"name": "WVP",
|
|
"link": "_worldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "LWVP",
|
|
"link": "_lampWorldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "lightPos",
|
|
"link": "_lampPosition"
|
|
},
|
|
{
|
|
"name": "lightDir",
|
|
"link": "_lampDirection"
|
|
},
|
|
{
|
|
"name": "lightColor",
|
|
"link": "_lampColor"
|
|
},
|
|
{
|
|
"name": "lightStrength",
|
|
"link": "_lampStrength"
|
|
},
|
|
{
|
|
"name": "shadowsBias",
|
|
"link": "_lampShadowsBias"
|
|
},
|
|
{
|
|
"name": "spotlightCutoff",
|
|
"link": "_spotlampCutoff"
|
|
},
|
|
{
|
|
"name": "spotlightExponent",
|
|
"link": "_spotlampExponent"
|
|
},
|
|
{
|
|
"name": "lightType",
|
|
"link": "_lampType"
|
|
},
|
|
{
|
|
"name": "eye",
|
|
"link": "_cameraPosition"
|
|
},
|
|
{
|
|
"name": "skinBones",
|
|
"link": "_skinBones",
|
|
"ifdef": ["_Skinning"]
|
|
},
|
|
{
|
|
"name": "shirr",
|
|
"link": "_envmapIrradiance"
|
|
},
|
|
{
|
|
"name": "senvmapRadiance",
|
|
"link": "_envmapRadiance",
|
|
"ifdef": ["_Rad"]
|
|
},
|
|
{
|
|
"name": "envmapNumMipmaps",
|
|
"link": "_envmapNumMipmaps",
|
|
"ifdef": ["_Rad"]
|
|
},
|
|
{
|
|
"name": "senvmapBrdf",
|
|
"link": "_envmapBrdf",
|
|
"ifdef": ["_Rad"]
|
|
},
|
|
{
|
|
"name": "envmapStrength",
|
|
"link": "_envmapStrength"
|
|
},
|
|
{
|
|
"name": "snoise",
|
|
"link": "_noise64",
|
|
"ifdef": ["_PCSS"]
|
|
},
|
|
{
|
|
"name": "lampNear",
|
|
"link": "_lampPlaneNear",
|
|
"ifdef": ["_PCSS"]
|
|
},
|
|
{
|
|
"name": "lampSizeUV",
|
|
"link": "_lampSizeUV",
|
|
"ifdef": ["_PCSS"]
|
|
}
|
|
],
|
|
"vertex_shader": "mesh.vert.glsl",
|
|
"fragment_shader": "mesh.frag.glsl"
|
|
},
|
|
{
|
|
"name": "overlay",
|
|
"params": [
|
|
{
|
|
"name": "depth_write",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"name": "compare_mode",
|
|
"value": "less"
|
|
},
|
|
{
|
|
"name": "cull_mode",
|
|
"value": "clockwise"
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"name": "W",
|
|
"link": "_worldMatrix"
|
|
},
|
|
{
|
|
"name": "N",
|
|
"link": "_normalMatrix"
|
|
},
|
|
{
|
|
"name": "V",
|
|
"link": "_viewMatrix"
|
|
},
|
|
{
|
|
"name": "P",
|
|
"link": "_projectionMatrix"
|
|
},
|
|
{
|
|
"name": "LWVP",
|
|
"link": "_lampWorldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "lightDir",
|
|
"link": "_lampDirection"
|
|
},
|
|
{
|
|
"name": "lightColor",
|
|
"link": "_lampColor"
|
|
},
|
|
{
|
|
"name": "lightStrength",
|
|
"link": "_lampStrength"
|
|
},
|
|
{
|
|
"name": "eye",
|
|
"link": "_cameraPosition"
|
|
},
|
|
{
|
|
"name": "skinBones",
|
|
"link": "_skinBones",
|
|
"ifdef": ["_Skinning"]
|
|
},
|
|
{
|
|
"name": "shirr",
|
|
"link": "_envmapIrradiance"
|
|
},
|
|
{
|
|
"name": "senvmapRadiance",
|
|
"link": "_envmapRadiance",
|
|
"ifdef": ["_Rad"]
|
|
},
|
|
{
|
|
"name": "envmapNumMipmaps",
|
|
"link": "_envmapNumMipmaps",
|
|
"ifdef": ["_Rad"]
|
|
},
|
|
{
|
|
"name": "senvmapBrdf",
|
|
"link": "_envmapBrdf",
|
|
"ifdef": ["_Rad"]
|
|
},
|
|
{
|
|
"name": "envmapStrength",
|
|
"link": "_envmapStrength"
|
|
}
|
|
],
|
|
"vertex_shader": "overlay.vert.glsl",
|
|
"fragment_shader": "overlay.frag.glsl"
|
|
},
|
|
{
|
|
"name": "shadowmap",
|
|
"params": [
|
|
{
|
|
"name": "depth_write",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"name": "compare_mode",
|
|
"value": "less"
|
|
},
|
|
{
|
|
"name": "cull_mode",
|
|
"value": "clockwise"
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"name": "LWVP",
|
|
"link": "_lampWorldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "skinBones",
|
|
"link": "_skinBones",
|
|
"ifdef": ["_Skinning"]
|
|
}
|
|
],
|
|
"vertex_shader": "shadowmap.vert.glsl",
|
|
"fragment_shader": "shadowmap.frag.glsl"
|
|
},
|
|
{
|
|
"name": "depthwrite",
|
|
"params": [
|
|
{
|
|
"name": "depth_write",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"name": "compare_mode",
|
|
"value": "less"
|
|
},
|
|
{
|
|
"name": "cull_mode",
|
|
"value": "clockwise"
|
|
},
|
|
{
|
|
"name": "color_write_red",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"name": "color_write_green",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"name": "color_write_blue",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"name": "color_write_alpha",
|
|
"value": "false"
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"name": "WVP",
|
|
"link": "_worldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "skinBones",
|
|
"link": "_skinBones",
|
|
"ifdef": ["_Skinning"]
|
|
}
|
|
],
|
|
"vertex_shader": "depthwrite.vert.glsl",
|
|
"fragment_shader": "depthwrite.frag.glsl"
|
|
}
|
|
]
|
|
}
|