armory/Shaders/deferred_light/deferred_light.json
2017-12-20 15:37:58 +01:00

125 lines
2.3 KiB
JSON
Executable file

{
"contexts": [
{
"name": "deferred_light",
"depth_write": false,
"color_write_alpha": 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": "lightProj",
"link": "_lampPlaneProj"
},
{
"name": "lightDir",
"link": "_lampDirection"
},
{
"name": "lightType",
"link": "_lampType"
},
{
"name": "lightColor",
"link": "_lampColor"
},
{
"name": "lightShadow",
"link": "_lampCastShadow"
},
{
"name": "texlampcolor",
"link": "_lampColorTexture",
"ifdef": ["_LampColTex"]
},
{
"name": "texIES",
"link": "_iesTexture",
"ifdef": ["_LampIES"]
},
{
"name": "lightPlane",
"link": "_lampPlane",
"ifdef": ["_SSS"]
},
{
"name": "shadowsBias",
"link": "_lampShadowsBias"
},
{
"name": "spotlightData",
"link": "_spotlampData"
},
{
"name": "lampArea0",
"link": "_lampArea0",
"ifdef": ["_LTC"]
},
{
"name": "lampArea1",
"link": "_lampArea1",
"ifdef": ["_LTC"]
},
{
"name": "lampArea2",
"link": "_lampArea2",
"ifdef": ["_LTC"]
},
{
"name": "lampArea3",
"link": "_lampArea3",
"ifdef": ["_LTC"]
},
{
"name": "sltcMat",
"link": "_ltcMat",
"ifdef": ["_LTC"]
},
{
"name": "sltcMag",
"link": "_ltcMag",
"ifdef": ["_LTC"]
},
{
"name": "eye",
"link": "_cameraPosition"
},
{
"name": "invVP",
"link": "_inverseViewProjectionMatrix"
},
{
"name": "LWVP",
"link": "_biasLampWorldViewProjectionMatrix"
},
{
"name": "VP",
"link": "_viewProjectionMatrix",
"ifdef": ["_SSRS"]
},
{
"name": "sdftex",
"link": "_sdfTexture",
"ifdef": ["_DFRS"]
}
],
"vertex_shader": "../include/pass_lamp_volume.vert.glsl",
"fragment_shader": "deferred_light.frag.glsl"
}
]
}