armory/Shaders/volumetric_light/volumetric_light.json
2018-01-06 00:33:33 +01:00

65 lines
1.2 KiB
JSON
Executable file

{
"contexts": [
{
"name": "volumetric_light",
"depth_write": false,
"compare_mode": "greater",
"cull_mode": "counter_clockwise",
"links": [
{
"name": "LVWVP",
"link": "_lampVolumeWorldViewProjectionMatrix"
},
{
"name": "invVP",
"link": "_inverseViewProjectionMatrix"
},
{
"name": "LWVP",
"link": "_biasLampWorldViewProjectionMatrix"
},
{
"name": "shadowsBias",
"link": "_lampShadowsBias"
},
{
"name": "screenSize",
"link": "_screenSize"
},
{
"name": "eye",
"link": "_cameraPosition"
},
{
"name": "lightPos",
"link": "_lampPosition"
},
{
"name": "lightRadius",
"link": "_lampRadius"
},
{
"name": "lightColor",
"link": "_lampColor"
},
{
"name": "snoise",
"link": "_noise8",
"ifdef": ["_Disabled"]
},
{
"name": "lightPlane",
"link": "_lampPlane"
},
{
"name": "lightShadow",
"link": "_lampCastShadow"
}
],
"texture_params": [],
"vertex_shader": "../include/pass_lamp_volume.vert.glsl",
"fragment_shader": "volumetric_light.frag.glsl"
}
]
}