2016-08-31 00:46:10 +02:00
|
|
|
{
|
|
|
|
"contexts": [
|
|
|
|
{
|
|
|
|
"name": "volumetric_light",
|
2016-10-17 12:02:41 +02:00
|
|
|
"depth_write": false,
|
|
|
|
"compare_mode": "greater",
|
|
|
|
"cull_mode": "counter_clockwise",
|
2016-08-31 00:46:10 +02:00
|
|
|
"links": [
|
|
|
|
{
|
|
|
|
"name": "LVWVP",
|
|
|
|
"link": "_lampVolumeWorldViewProjectionMatrix"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "invVP",
|
|
|
|
"link": "_inverseViewProjectionMatrix"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LWVP",
|
|
|
|
"link": "_biasLampWorldViewProjectionMatrix"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "shadowsBias",
|
|
|
|
"link": "_lampShadowsBias"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "screenSize",
|
|
|
|
"link": "_screenSize"
|
|
|
|
},
|
|
|
|
{
|
2017-07-08 14:12:18 +02:00
|
|
|
"name": "eye",
|
2016-08-31 00:46:10 +02:00
|
|
|
"link": "_cameraPosition"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightPos",
|
|
|
|
"link": "_lampPosition"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightRadius",
|
|
|
|
"link": "_lampRadius"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "snoise",
|
2018-01-28 14:03:56 +01:00
|
|
|
"link": "_blueNoise64"
|
2017-05-22 15:55:34 +02:00
|
|
|
},
|
|
|
|
{
|
2018-01-28 14:57:49 +01:00
|
|
|
"name": "lightProj",
|
|
|
|
"link": "_lampPlaneProj"
|
2017-05-22 15:55:34 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightShadow",
|
|
|
|
"link": "_lampCastShadow"
|
2016-08-31 00:46:10 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"texture_params": [],
|
2017-12-20 15:37:58 +01:00
|
|
|
"vertex_shader": "../include/pass_lamp_volume.vert.glsl",
|
2016-08-31 00:46:10 +02:00
|
|
|
"fragment_shader": "volumetric_light.frag.glsl"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|