armory/Shaders/deferred/deferred.json
2016-12-13 01:09:17 +01:00

461 lines
9.3 KiB
JSON
Executable file

{
"contexts": [
{
"name": "mesh",
"depth_write": true,
"compare_mode": "less",
"cull_mode": "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": "W",
"link": "_worldMatrix",
"ifdef": ["_Probes"]
},
{
"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": "meshheight",
"depth_write": true,
"compare_mode": "less",
"cull_mode": "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": "W",
"link": "_worldMatrix",
"ifdef": ["_Probes"]
},
{
"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": "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_equal",
"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": "decals",
"depth_write": false,
"compare_mode": "less",
"cull_mode": "clockwise",
"blend_source": "source_alpha",
"blend_destination": "inverse_source_alpha",
"blend_operation": "add",
"color_write_alpha": false,
"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",
"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"
}
]
}