armory/Shaders/volumetric_light_quad/volumetric_light_quad.json

145 lines
2.8 KiB
JSON
Executable file

{
"contexts": [
{
"name": "volumetric_light_quad",
"depth_write": false,
"compare_mode": "always",
"cull_mode": "none",
"links": [
{
"name": "invVP",
"link": "_inverseViewProjectionMatrix"
},
{
"name": "LWVP",
"link": "_biasLightWorldViewProjectionMatrix",
"ifndef": ["_CSM"]
},
{
"name": "shadowsBias",
"link": "_lightShadowsBias"
},
{
"name": "lightPos",
"link": "_lightPosition",
"ifdef": ["_Disabled"]
},
{
"name": "lightRadius",
"link": "_lightRadius",
"ifdef": ["_Disabled"]
},
{
"name": "snoise",
"link": "_blueNoise64"
},
{
"name": "lightPlane",
"link": "_lightPlane",
"ifdef": ["_Disabled"]
},
{
"name": "lightShadow",
"link": "_lightCastShadow",
"ifdef": ["_Disabled"]
},
{
"name": "eye",
"link": "_cameraPosition"
},
{
"name": "eyeLook",
"link": "_cameraLook"
},
{
"name": "cameraProj",
"link": "_cameraPlaneProj"
},
{
"name": "casData",
"link": "_cascadeData",
"ifdef": ["_CSM"]
}
],
"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"
},
{
"name": "LWVP",
"link": "_biasLightWorldViewProjectionMatrix"
},
{
"name": "shadowsBias",
"link": "_lightShadowsBias"
},
{
"name": "lightPos",
"link": "_lightPosition",
"ifdef": ["_Disabled"]
},
{
"name": "lightRadius",
"link": "_lightRadius",
"ifdef": ["_Disabled"]
},
{
"name": "lightColor",
"link": "_lightColor"
},
{
"name": "snoise",
"link": "_noise8",
"ifdef": ["_Disabled"]
},
{
"name": "lightPlane",
"link": "_lightPlane",
"ifdef": ["_Disabled"]
},
{
"name": "lightShadow",
"link": "_lightCastShadow",
"ifdef": ["_Disabled"]
},
{
"name": "eye",
"link": "_cameraPosition"
},
{
"name": "eyeLook",
"link": "_cameraLook"
},
{
"name": "cameraProj",
"link": "_cameraPlaneProj"
},
{
"name": "casData",
"link": "_cascadeData",
"ifdef": ["_CSM"]
}
],
"texture_params": [],
"vertex_shader": "../include/pass_viewray.vert.glsl",
"fragment_shader": "volumetric_light_quad.frag.glsl"
}
]
}