armory/Shaders/volumetric_light_quad/volumetric_light_quad.json

145 lines
2.8 KiB
JSON
Raw Normal View History

2017-07-08 14:12:18 +02:00
{
"contexts": [
{
"name": "volumetric_light_quad",
"depth_write": false,
"compare_mode": "always",
"cull_mode": "none",
"links": [
2018-01-06 00:33:33 +01:00
{
"name": "invVP",
"link": "_inverseViewProjectionMatrix"
},
{
"name": "LWVP",
"link": "_biasLightWorldViewProjectionMatrix",
2018-01-28 13:53:06 +01:00
"ifndef": ["_CSM"]
2018-01-06 00:33:33 +01:00
},
{
"name": "shadowsBias",
"link": "_lightShadowsBias"
2018-01-06 00:33:33 +01:00
},
{
"name": "lightPos",
"link": "_lightPosition",
2018-01-06 00:33:33 +01:00
"ifdef": ["_Disabled"]
},
{
"name": "lightRadius",
"link": "_lightRadius",
2018-01-06 00:33:33 +01:00
"ifdef": ["_Disabled"]
},
{
"name": "snoise",
2018-01-28 14:03:56 +01:00
"link": "_blueNoise64"
2018-01-06 00:33:33 +01:00
},
{
"name": "lightPlane",
"link": "_lightPlane",
2018-01-06 00:33:33 +01:00
"ifdef": ["_Disabled"]
},
{
"name": "lightShadow",
"link": "_lightCastShadow",
2018-01-06 00:33:33 +01:00
"ifdef": ["_Disabled"]
},
{
"name": "eye",
"link": "_cameraPosition"
},
{
"name": "eyeLook",
"link": "_cameraLook"
},
{
"name": "cameraProj",
"link": "_cameraPlaneProj"
2018-01-28 13:53:06 +01:00
},
{
"name": "casData",
"link": "_cascadeData",
"ifdef": ["_CSM"]
2018-01-06 00:33:33 +01:00
}
],
"texture_params": [],
"vertex_shader": "../include/pass_viewray.vert.glsl",
"fragment_shader": "volumetric_light_quad.frag.glsl"
},
{
"name": "volumetric_light_quad_blend",
"depth_write": 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"
},
2017-07-08 14:12:18 +02:00
{
"name": "LWVP",
"link": "_biasLightWorldViewProjectionMatrix"
2017-07-08 14:12:18 +02:00
},
{
"name": "shadowsBias",
"link": "_lightShadowsBias"
2017-07-08 14:12:18 +02:00
},
{
"name": "lightPos",
"link": "_lightPosition",
2018-01-06 00:33:33 +01:00
"ifdef": ["_Disabled"]
2017-07-08 14:12:18 +02:00
},
{
"name": "lightRadius",
"link": "_lightRadius",
2018-01-06 00:33:33 +01:00
"ifdef": ["_Disabled"]
2017-07-08 14:12:18 +02:00
},
{
"name": "lightColor",
"link": "_lightColor"
2017-07-08 14:12:18 +02:00
},
{
"name": "snoise",
2018-01-06 00:33:33 +01:00
"link": "_noise8",
"ifdef": ["_Disabled"]
2017-07-08 14:12:18 +02:00
},
{
"name": "lightPlane",
"link": "_lightPlane",
2017-07-08 14:12:18 +02:00
"ifdef": ["_Disabled"]
},
{
"name": "lightShadow",
"link": "_lightCastShadow",
2017-07-08 14:12:18 +02:00
"ifdef": ["_Disabled"]
},
{
"name": "eye",
"link": "_cameraPosition"
},
{
"name": "eyeLook",
"link": "_cameraLook"
2017-11-04 18:35:34 +01:00
},
{
"name": "cameraProj",
"link": "_cameraPlaneProj"
2018-01-28 13:53:06 +01:00
},
{
"name": "casData",
"link": "_cascadeData",
"ifdef": ["_CSM"]
2017-07-08 14:12:18 +02:00
}
],
"texture_params": [],
2017-12-20 15:37:58 +01:00
"vertex_shader": "../include/pass_viewray.vert.glsl",
2017-07-08 14:12:18 +02:00
"fragment_shader": "volumetric_light_quad.frag.glsl"
}
]
}