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

94 lines
1.8 KiB
JSON
Executable file

{
"contexts": [
{
"name": "deferred_light_quad",
"depth_write": false,
"color_write_alpha": false,
"compare_mode": "always",
"cull_mode": "none",
"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": "invVP",
"link": "_inverseViewProjectionMatrix"
},
{
"name": "l",
"link": "_lampDirection"
},
{
"name": "lightColor",
"link": "_lampColor"
},
{
"name": "lightShadow",
"link": "_lampCastShadow"
},
{
"name": "texlampcolor",
"link": "_lampColorTexture",
"ifdef": ["_LampColTex"]
},
{
"name": "texClouds",
"link": "_cloudsTexture",
"ifdef": ["_LampClouds"]
},
{
"name": "time",
"link": "_time",
"ifdef": ["_LampClouds"]
},
{
"name": "shadowsBias",
"link": "_lampShadowsBias"
},
{
"name": "eye",
"link": "_cameraPosition"
},
{
"name": "eyeSnap",
"link": "_cameraPositionSnap",
"ifdef": ["_VoxelGICam"]
},
{
"name": "eyeLook",
"link": "_cameraLook"
},
{
"name": "lightPlane",
"link": "_lampPlane",
"ifdef": ["_SSS"]
},
{
"name": "LWVP",
"link": "_biasLampWorldViewProjectionMatrix",
"ifndef": ["_CSM"]
},
{
"name": "casData",
"link": "_cascadeData",
"ifdef": ["_CSM"]
},
{
"name": "VP",
"link": "_viewProjectionMatrix",
"ifdef": ["_SSRS"]
},
{
"name": "cameraProj",
"link": "_cameraPlaneProj"
}
],
"vertex_shader": "../include/pass_viewray.vert.glsl",
"fragment_shader": "deferred_light_quad.frag.glsl"
}
]
}