455 lines
7.7 KiB
JSON
Executable file
455 lines
7.7 KiB
JSON
Executable file
{
|
|
"contexts": [
|
|
{
|
|
"name": "mesh",
|
|
"params": [
|
|
{
|
|
"name": "depth_write",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"name": "compare_mode",
|
|
"value": "less"
|
|
},
|
|
{
|
|
"name": "cull_mode",
|
|
"value": "clockwise"
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"name": "WVP",
|
|
"link": "_worldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "N",
|
|
"link": "_normalMatrix"
|
|
},
|
|
{
|
|
"name": "P",
|
|
"link": "_projectionMatrix",
|
|
"ifdef": ["_Billboard"]
|
|
},
|
|
{
|
|
"name": "WV",
|
|
"link": "_worldViewMatrix",
|
|
"ifdef": ["_Billboard"]
|
|
},
|
|
{
|
|
"name": "prevWVP",
|
|
"link": "_prevWorldViewProjectionMatrix",
|
|
"ifdef": ["_Veloc"]
|
|
},
|
|
{
|
|
"name": "light",
|
|
"link": "_lampPosition",
|
|
"ifdef": ["_HeightTex"]
|
|
},
|
|
{
|
|
"name": "eye",
|
|
"link": "_cameraPosition",
|
|
"ifdef": ["_HeightTex"]
|
|
},
|
|
{
|
|
"name": "W",
|
|
"link": "_worldMatrix",
|
|
"ifdef": ["_Probes", "_HeightTex"]
|
|
},
|
|
{
|
|
"name": "probeVolumeCenter",
|
|
"link": "_probeVolumeCenter",
|
|
"ifdef": ["_Probes"]
|
|
},
|
|
{
|
|
"name": "probeVolumeSize",
|
|
"link": "_probeVolumeSize",
|
|
"ifdef": ["_Probes"]
|
|
},
|
|
{
|
|
"name": "probeID",
|
|
"link": "_probeID",
|
|
"ifdef": ["_Probes"]
|
|
},
|
|
{
|
|
"name": "probeStrength",
|
|
"link": "_probeStrength",
|
|
"ifdef": ["_Probes"]
|
|
},
|
|
{
|
|
"name": "probeBlending",
|
|
"link": "_probeBlending",
|
|
"ifdef": ["_Probes"]
|
|
},
|
|
{
|
|
"name": "skinBones",
|
|
"link": "_skinBones",
|
|
"ifdef": ["_Skinning"]
|
|
}
|
|
],
|
|
"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"
|
|
},
|
|
{
|
|
"name": "sltcMat",
|
|
"link": "_ltcMat",
|
|
"ifdef": ["_PolyLight"]
|
|
},
|
|
{
|
|
"name": "sltcMag",
|
|
"link": "_ltcMag",
|
|
"ifdef": ["_PolyLight"]
|
|
}
|
|
],
|
|
"vertex_shader": "overlay.vert.glsl",
|
|
"fragment_shader": "overlay.frag.glsl"
|
|
},
|
|
{
|
|
"name": "shadowmap",
|
|
"params": [
|
|
{
|
|
"name": "depth_write",
|
|
"value": "true"
|
|
},
|
|
{
|
|
"name": "compare_mode",
|
|
"value": "less_equal"
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"name": "LWVP",
|
|
"link": "_lampWorldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "skinBones",
|
|
"link": "_skinBones",
|
|
"ifdef": ["_Skinning"]
|
|
}
|
|
],
|
|
"vertex_shader": "depthwrite.vert.glsl",
|
|
"fragment_shader": "depthwrite.frag.glsl"
|
|
},
|
|
|
|
|
|
|
|
{
|
|
"name": "decals",
|
|
"params": [
|
|
{
|
|
"name": "depth_write",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"name": "compare_mode",
|
|
"value": "less"
|
|
},
|
|
{
|
|
"name": "cull_mode",
|
|
"value": "clockwise"
|
|
},
|
|
{
|
|
"name": "color_write_alpha",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"name": "blend_source",
|
|
"value": "source_alpha"
|
|
},
|
|
{
|
|
"name": "blend_destination",
|
|
"value": "inverse_source_alpha"
|
|
},
|
|
{
|
|
"name": "blend_operation",
|
|
"value": "add"
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"name": "W",
|
|
"link": "_worldMatrix"
|
|
},
|
|
{
|
|
"name": "VP",
|
|
"link": "_viewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "invVP",
|
|
"link": "_inverseViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "invW",
|
|
"link": "_inverseWorldMatrix"
|
|
},
|
|
{
|
|
"name": "V",
|
|
"link": "_viewMatrix"
|
|
},
|
|
{
|
|
"name": "screenSize",
|
|
"link": "_screenSize",
|
|
"ifdef": ["_Disabled"]
|
|
},
|
|
{
|
|
"name": "uid",
|
|
"link": "_uid",
|
|
"ifdef": ["_RampID"]
|
|
}
|
|
],
|
|
"texture_params": [],
|
|
"vertex_shader": "decals.vert.glsl",
|
|
"fragment_shader": "decals.frag.glsl"
|
|
},
|
|
|
|
{
|
|
"name": "translucent",
|
|
"params": [
|
|
{
|
|
"name": "depth_write",
|
|
"value": "false"
|
|
},
|
|
{
|
|
"name": "compare_mode",
|
|
"value": "less"
|
|
},
|
|
{
|
|
"name": "cull_mode",
|
|
"value": "clockwise"
|
|
},
|
|
{
|
|
"name": "blend_source",
|
|
"value": "blend_one"
|
|
},
|
|
{
|
|
"name": "blend_destination",
|
|
"value": "blend_one"
|
|
},
|
|
{
|
|
"name": "blend_operation",
|
|
"value": "add"
|
|
},
|
|
{
|
|
"name": "alpha_blend_source",
|
|
"value": "blend_zero"
|
|
},
|
|
{
|
|
"name": "alpha_blend_destination",
|
|
"value": "inverse_source_alpha"
|
|
},
|
|
{
|
|
"name": "alpha_blend_operation",
|
|
"value": "add"
|
|
}
|
|
],
|
|
"links": [
|
|
{
|
|
"name": "W",
|
|
"link": "_worldMatrix"
|
|
},
|
|
{
|
|
"name": "N",
|
|
"link": "_normalMatrix"
|
|
},
|
|
{
|
|
"name": "V",
|
|
"link": "_viewMatrix"
|
|
},
|
|
{
|
|
"name": "P",
|
|
"link": "_projectionMatrix"
|
|
},
|
|
{
|
|
"name": "lightPos",
|
|
"link": "_lampPosition"
|
|
},
|
|
{
|
|
"name": "lightDir",
|
|
"link": "_lampDirection"
|
|
},
|
|
{
|
|
"name": "lightColor",
|
|
"link": "_lampColor"
|
|
},
|
|
{
|
|
"name": "lightStrength",
|
|
"link": "_lampStrength"
|
|
},
|
|
{
|
|
"name": "spotlightCutoff",
|
|
"link": "_spotlampCutoff"
|
|
},
|
|
{
|
|
"name": "spotlightExponent",
|
|
"link": "_spotlampExponent"
|
|
},
|
|
{
|
|
"name": "lightType",
|
|
"link": "_lampType"
|
|
},
|
|
{
|
|
"name": "eye",
|
|
"link": "_cameraPosition"
|
|
},
|
|
{
|
|
"name": "skinBones",
|
|
"link": "_skinBones",
|
|
"ifdef": ["_Skinning"]
|
|
},
|
|
{
|
|
"name": "lightPos",
|
|
"link": "_lampPosition"
|
|
},
|
|
{
|
|
"name": "lightColor",
|
|
"link": "_lampColor"
|
|
},
|
|
{
|
|
"name": "lightStrength",
|
|
"link": "_lampStrength"
|
|
},
|
|
{
|
|
"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"
|
|
}
|
|
],
|
|
"texture_params": [],
|
|
"vertex_shader": "translucent.vert.glsl",
|
|
"fragment_shader": "translucent.frag.glsl"
|
|
}
|
|
]
|
|
}
|