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

156 lines
3 KiB
JSON
Executable file

{
"contexts": [
{
"name": "deferred_light",
"depth_write": false,
"compare_mode": "greater",
"cull_mode": "counter_clockwise",
"blend_source": "blend_one",
"blend_destination": "blend_one",
"blend_operation": "add",
"alpha_blend_source": "blend_one",
"alpha_blend_destination": "blend_one",
"alpha_blend_operation": "add",
"links": [
{
"name": "LVWVP",
"link": "_lampVolumeWorldViewProjectionMatrix"
},
{
"name": "lightPos",
"link": "_lampPosition"
},
{
"name": "lightDir",
"link": "_lampDirection"
},
{
"name": "lightType",
"link": "_lampType"
},
{
"name": "lightIndex",
"link": "_lampIndex",
"ifdef": ["_Disabled"]
},
{
"name": "lightColor",
"link": "_lampColor"
},
{
"name": "texlampcolor",
"link": "_lampColorTexture",
"ifdef": ["_LampColTex"]
},
{
"name": "shadowsBias",
"link": "_lampShadowsBias"
},
{
"name": "spotlightCutoff",
"link": "_spotlampCutoff"
},
{
"name": "spotlightExponent",
"link": "_spotlampExponent"
},
{
"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"]
},
{
"name": "eye",
"link": "_cameraPosition"
},
{
"name": "eyeLook",
"link": "_cameraLook",
"ifdef": ["_Disabled"]
},
{
"name": "invVP",
"link": "_inverseViewProjectionMatrix"
},
{
"name": "LWVP",
"link": "_biasLampWorldViewProjectionMatrix"
},
{
"name": "screenSize",
"link": "_screenSize",
"ifdef": ["_Disabled"]
},
{
"name": "shirr",
"link": "_envmapIrradiance",
"ifdef": ["_Disabled"]
},
{
"name": "senvmapRadiance",
"link": "_envmapRadiance",
"ifdef": ["_Disabled"]
},
{
"name": "envmapNumMipmaps",
"link": "_envmapNumMipmaps",
"ifdef": ["_Disabled"]
},
{
"name": "senvmapBrdf",
"link": "_envmapBrdf",
"ifdef": ["_Disabled"]
},
{
"name": "envmapStrength",
"link": "_envmapStrength",
"ifdef": ["_Disabled"]
},
{
"name": "snoise",
"link": "_noise64",
"ifdef": ["_PCSS"]
},
{
"name": "lampSizeUV",
"link": "_lampSizeUV",
"ifdef": ["_PCSS"]
},
{
"name": "senvmapBrdf",
"link": "_envmapBrdf",
"ifdef": ["_VoxelGI"]
}
],
"vertex_shader": "deferred_light.vert.glsl",
"vertex_shader_path": "../include/lamp_volume.vert.glsl",
"fragment_shader": "deferred_light.frag.glsl"
}
]
}