566 lines
11 KiB
JSON
Executable file
566 lines
11 KiB
JSON
Executable file
{
|
|
"contexts": [
|
|
{
|
|
"name": "mesh",
|
|
"depth_write": true,
|
|
"compare_mode": "less",
|
|
"cull_mode": "clockwise",
|
|
"links": [
|
|
{
|
|
"name": "W",
|
|
"link": "_worldMatrix"
|
|
},
|
|
{
|
|
"name": "N",
|
|
"link": "_normalMatrix"
|
|
},
|
|
{
|
|
"name": "V",
|
|
"link": "_viewMatrix"
|
|
},
|
|
{
|
|
"name": "P",
|
|
"link": "_projectionMatrix"
|
|
},
|
|
{
|
|
"name": "LWVP",
|
|
"link": "_lampWorldViewProjectionMatrix",
|
|
"ifndef": "_NoShadows"
|
|
},
|
|
{
|
|
"name": "lightPos",
|
|
"link": "_lampPosition"
|
|
},
|
|
{
|
|
"name": "lightDir",
|
|
"link": "_lampDirection"
|
|
},
|
|
{
|
|
"name": "lightColor",
|
|
"link": "_lampColor"
|
|
},
|
|
{
|
|
"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": "U",
|
|
"link": "_undistortionMatrix",
|
|
"ifdef": ["_VR"]
|
|
},
|
|
{
|
|
"name": "maxRadSq",
|
|
"link": "_maxRadiusSq",
|
|
"ifdef": ["_VR"]
|
|
},
|
|
{
|
|
"name": "snoise",
|
|
"link": "_noise64",
|
|
"ifdef": ["_PCSS"]
|
|
},
|
|
{
|
|
"name": "lampSizeUV",
|
|
"link": "_lampSizeUV",
|
|
"ifdef": ["_PCSS"]
|
|
},
|
|
{
|
|
"name": "lampArea0",
|
|
"link": "_lampArea0",
|
|
"ifdef": ["_PolyLight"]
|
|
},
|
|
{
|
|
"name": "lampArea1",
|
|
"link": "_lampArea1",
|
|
"ifdef": ["_PolyLight"]
|
|
},
|
|
{
|
|
"name": "lampArea2",
|
|
"link": "_lampArea2",
|
|
"ifdef": ["_PolyLight"]
|
|
},
|
|
{
|
|
"name": "lampArea3",
|
|
"link": "_lampArea3",
|
|
"ifdef": ["_PolyLight"]
|
|
},
|
|
{
|
|
"name": "sltcMat",
|
|
"link": "_ltcMat",
|
|
"ifdef": ["_PolyLight"]
|
|
},
|
|
{
|
|
"name": "sltcMag",
|
|
"link": "_ltcMag",
|
|
"ifdef": ["_PolyLight"]
|
|
}
|
|
],
|
|
"vertex_shader": "mesh.vert.glsl",
|
|
"fragment_shader": "mesh.frag.glsl"
|
|
},
|
|
{
|
|
"name": "meshheight",
|
|
"depth_write": true,
|
|
"compare_mode": "less",
|
|
"cull_mode": "clockwise",
|
|
"links": [
|
|
{
|
|
"name": "WVP",
|
|
"link": "_worldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "W",
|
|
"link": "_worldMatrix"
|
|
},
|
|
{
|
|
"name": "N",
|
|
"link": "_normalMatrix"
|
|
},
|
|
{
|
|
"name": "V",
|
|
"link": "_viewMatrix"
|
|
},
|
|
{
|
|
"name": "P",
|
|
"link": "_projectionMatrix"
|
|
},
|
|
{
|
|
"name": "LWVP",
|
|
"link": "_lampWorldViewProjectionMatrix",
|
|
"ifndef": "_NoShadows"
|
|
},
|
|
{
|
|
"name": "lightPos",
|
|
"link": "_lampPosition"
|
|
},
|
|
{
|
|
"name": "lightDir",
|
|
"link": "_lampDirection"
|
|
},
|
|
{
|
|
"name": "lightColor",
|
|
"link": "_lampColor"
|
|
},
|
|
{
|
|
"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": "U",
|
|
"link": "_undistortionMatrix",
|
|
"ifdef": ["_VR"]
|
|
},
|
|
{
|
|
"name": "maxRadSq",
|
|
"link": "_maxRadiusSq",
|
|
"ifdef": ["_VR"]
|
|
},
|
|
{
|
|
"name": "snoise",
|
|
"link": "_noise64",
|
|
"ifdef": ["_PCSS"]
|
|
},
|
|
{
|
|
"name": "lampSizeUV",
|
|
"link": "_lampSizeUV",
|
|
"ifdef": ["_PCSS"]
|
|
},
|
|
{
|
|
"name": "lampArea0",
|
|
"link": "_lampArea0",
|
|
"ifdef": ["_PolyLight"]
|
|
},
|
|
{
|
|
"name": "lampArea1",
|
|
"link": "_lampArea1",
|
|
"ifdef": ["_PolyLight"]
|
|
},
|
|
{
|
|
"name": "lampArea2",
|
|
"link": "_lampArea2",
|
|
"ifdef": ["_PolyLight"]
|
|
},
|
|
{
|
|
"name": "lampArea3",
|
|
"link": "_lampArea3",
|
|
"ifdef": ["_PolyLight"]
|
|
},
|
|
{
|
|
"name": "sltcMat",
|
|
"link": "_ltcMat",
|
|
"ifdef": ["_PolyLight"]
|
|
},
|
|
{
|
|
"name": "sltcMag",
|
|
"link": "_ltcMag",
|
|
"ifdef": ["_PolyLight"]
|
|
}
|
|
],
|
|
"vertex_shader": "meshheight.vert.glsl",
|
|
"fragment_shader": "meshheight.frag.glsl",
|
|
"fragment_shader_path": "mesh.frag.glsl",
|
|
"tesscontrol_shader": "meshheight.tesc.glsl",
|
|
"tesseval_shader": "meshheight.tese.glsl"
|
|
},
|
|
{
|
|
"name": "overlay",
|
|
"depth_write": true,
|
|
"compare_mode": "less",
|
|
"cull_mode": "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": "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",
|
|
"vertex_shader_path": "../include/overlay.vert.glsl",
|
|
"fragment_shader": "overlay.frag.glsl",
|
|
"fragment_shader_path": "../include/overlay.frag.glsl"
|
|
},
|
|
{
|
|
"name": "shadowmap",
|
|
"depth_write": true,
|
|
"compare_mode": "less",
|
|
"cull_mode": "clockwise",
|
|
"links": [
|
|
{
|
|
"name": "LWVP",
|
|
"link": "_lampWorldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "skinBones",
|
|
"link": "_skinBones",
|
|
"ifdef": ["_Skinning"]
|
|
}
|
|
],
|
|
"vertex_shader": "shadowmap.vert.glsl",
|
|
"vertex_shader_path": "../include/shadowmap.vert.glsl",
|
|
"fragment_shader": "shadowmap.frag.glsl",
|
|
"fragment_shader_path": "../include/shadowmap.frag.glsl"
|
|
},
|
|
{
|
|
"name": "shadowmapheight",
|
|
"depth_write": true,
|
|
"compare_mode": "less_equal",
|
|
"cull_mode": "clockwise",
|
|
"links": [
|
|
{
|
|
"name": "LWVP",
|
|
"link": "_lampWorldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "skinBones",
|
|
"link": "_skinBones",
|
|
"ifdef": ["_Skinning"]
|
|
}
|
|
],
|
|
"vertex_shader": "shadowmapheight.vert.glsl",
|
|
"vertex_shader_path": "../include/shadowmapheight.vert.glsl",
|
|
"fragment_shader": "shadowmapheight.frag.glsl",
|
|
"fragment_shader_path": "../include/shadowmap.frag.glsl",
|
|
"tesscontrol_shader": "shadowmapheight.tesc.glsl",
|
|
"tesscontrol_shader_path": "../include/shadowmapheight.tesc.glsl",
|
|
"tesseval_shader": "shadowmapheight.tese.glsl",
|
|
"tesseval_shader_path": "../include/shadowmapheight.tese.glsl"
|
|
},
|
|
{
|
|
"name": "translucent",
|
|
"depth_write": false,
|
|
"compare_mode": "less",
|
|
"cull_mode": "clockwise",
|
|
"blend_source": "blend_one",
|
|
"blend_destination": "blend_one",
|
|
"blend_operation": "add",
|
|
"alpha_blend_source": "blend_zero",
|
|
"alpha_blend_destination": "inverse_source_alpha",
|
|
"alpha_blend_operation": "add",
|
|
"links": [
|
|
{
|
|
"name": "W",
|
|
"link": "_worldMatrix"
|
|
},
|
|
{
|
|
"name": "N",
|
|
"link": "_normalMatrix"
|
|
},
|
|
{
|
|
"name": "V",
|
|
"link": "_viewMatrix"
|
|
},
|
|
{
|
|
"name": "P",
|
|
"link": "_projectionMatrix"
|
|
},
|
|
{
|
|
"name": "LWVP",
|
|
"link": "_lampWorldViewProjectionMatrix",
|
|
"ifndef": "_NoShadows"
|
|
},
|
|
{
|
|
"name": "shadowsBias",
|
|
"link": "_lampShadowsBias",
|
|
"ifndef": "_NoShadows"
|
|
},
|
|
{
|
|
"name": "lightPos",
|
|
"link": "_lampPosition"
|
|
},
|
|
{
|
|
"name": "lightDir",
|
|
"link": "_lampDirection"
|
|
},
|
|
{
|
|
"name": "lightColor",
|
|
"link": "_lampColor"
|
|
},
|
|
{
|
|
"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": "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",
|
|
"vertex_shader_path": "../include/translucent.vert.glsl",
|
|
"fragment_shader": "translucent.frag.glsl",
|
|
"fragment_shader_path": "../include/translucent.frag.glsl"
|
|
},
|
|
{
|
|
"name": "voxel",
|
|
"depth_write": false,
|
|
"compare_mode": "always",
|
|
"cull_mode": "none",
|
|
"links": [
|
|
{
|
|
"name": "W",
|
|
"link": "_worldMatrix"
|
|
},
|
|
{
|
|
"name": "LWVP",
|
|
"link": "_lampWorldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "PX",
|
|
"link": "_projectionXMatrix"
|
|
},
|
|
{
|
|
"name": "PY",
|
|
"link": "_projectionYMatrix"
|
|
},
|
|
{
|
|
"name": "PZ",
|
|
"link": "_projectionZMatrix"
|
|
}
|
|
],
|
|
"texture_params": [],
|
|
"vertex_shader": "voxel.vert.glsl",
|
|
"vertex_shader_path": "../include/voxel.vert.glsl",
|
|
"fragment_shader": "voxel.frag.glsl",
|
|
"fragment_shader_path": "../include/voxel.frag.glsl",
|
|
"geometry_shader": "voxel.geom.glsl",
|
|
"geometry_shader_path": "../include/voxel.geom.glsl"
|
|
}
|
|
]
|
|
}
|