2015-12-17 20:07:23 +01:00
|
|
|
{
|
2018-11-22 11:08:03 +01:00
|
|
|
"variants": ["_VoxelAOvar"],
|
2015-12-17 20:07:23 +01:00
|
|
|
"contexts": [
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "deferred_light",
|
2016-10-17 12:02:41 +02:00
|
|
|
"depth_write": false,
|
2018-11-22 11:08:03 +01:00
|
|
|
"compare_mode": "always",
|
|
|
|
"cull_mode": "none",
|
2015-12-17 20:07:23 +01:00
|
|
|
"links": [
|
2016-08-09 23:51:40 +02:00
|
|
|
{
|
2018-11-22 11:08:03 +01:00
|
|
|
"name": "eye",
|
|
|
|
"link": "_cameraPosition"
|
2016-08-09 23:51:40 +02:00
|
|
|
},
|
2016-03-20 18:44:11 +01:00
|
|
|
{
|
2018-11-22 11:08:03 +01:00
|
|
|
"name": "eyeSnap",
|
|
|
|
"link": "_cameraPositionSnap",
|
|
|
|
"ifdef": ["_VoxelGICam"]
|
2016-03-20 18:44:11 +01:00
|
|
|
},
|
2017-03-18 18:44:21 +01:00
|
|
|
{
|
2018-11-22 11:08:03 +01:00
|
|
|
"name": "voxelBlend",
|
|
|
|
"link": "_voxelBlend",
|
|
|
|
"ifdef": ["_VoxelGITemporal"]
|
2017-03-18 18:44:21 +01:00
|
|
|
},
|
2016-06-26 12:11:51 +02:00
|
|
|
{
|
2018-11-22 11:08:03 +01:00
|
|
|
"name": "eyeLook",
|
|
|
|
"link": "_cameraLook"
|
2016-06-26 12:11:51 +02:00
|
|
|
},
|
|
|
|
{
|
2018-11-22 11:08:03 +01:00
|
|
|
"name": "invVP",
|
|
|
|
"link": "_inverseViewProjectionMatrix"
|
2016-06-26 12:11:51 +02:00
|
|
|
},
|
2016-05-16 12:01:12 +02:00
|
|
|
{
|
2018-11-22 11:08:03 +01:00
|
|
|
"name": "shirr",
|
|
|
|
"link": "_envmapIrradiance",
|
|
|
|
"ifdef": ["_Irr"]
|
2016-11-05 20:57:04 +01:00
|
|
|
},
|
2017-03-11 01:50:47 +01:00
|
|
|
{
|
2018-11-22 11:08:03 +01:00
|
|
|
"name": "senvmapRadiance",
|
|
|
|
"link": "_envmapRadiance",
|
|
|
|
"ifdef": ["_Rad"]
|
2017-03-11 01:50:47 +01:00
|
|
|
},
|
2017-08-17 14:37:04 +02:00
|
|
|
{
|
2018-11-22 11:08:03 +01:00
|
|
|
"name": "envmapNumMipmaps",
|
|
|
|
"link": "_envmapNumMipmaps",
|
|
|
|
"ifdef": ["_Rad"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "senvmapBrdf",
|
|
|
|
"link": "_envmapBrdf",
|
|
|
|
"ifdef": ["_Brdf"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "cameraProj",
|
|
|
|
"link": "_cameraPlaneProj"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "envmapStrength",
|
|
|
|
"link": "_envmapStrength"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "backgroundCol",
|
|
|
|
"link": "_backgroundCol",
|
|
|
|
"ifdef": ["_EnvCol"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightsArray",
|
|
|
|
"link": "_lightsArray",
|
|
|
|
"ifdef": ["_Clusters"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightsArraySpot",
|
|
|
|
"link": "_lightsArraySpot",
|
|
|
|
"ifdef": ["_Spot"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "clustersData",
|
|
|
|
"link": "_clustersData",
|
|
|
|
"ifdef": ["_Clusters"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "cameraPlane",
|
|
|
|
"link": "_cameraPlane",
|
|
|
|
"ifdef": ["_Clusters"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sunDir",
|
|
|
|
"link": "_sunDirection",
|
|
|
|
"ifdef": ["_Sun"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sunCol",
|
|
|
|
"link": "_sunColor",
|
|
|
|
"ifdef": ["_Sun"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "shadowsBias",
|
|
|
|
"link": "_sunShadowsBias",
|
|
|
|
"ifdef": ["_Sun", "_ShadowMap"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LWVP",
|
|
|
|
"link": "_biasLightWorldViewProjectionMatrix",
|
|
|
|
"ifndef": ["_CSM"],
|
|
|
|
"ifdef": ["_Sun", "_ShadowMap"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "casData",
|
|
|
|
"link": "_cascadeData",
|
|
|
|
"ifdef": ["_Sun", "_ShadowMap", "_CSM"]
|
2017-08-17 14:37:04 +02:00
|
|
|
},
|
2017-11-17 16:15:35 +01:00
|
|
|
{
|
|
|
|
"name": "lightPlane",
|
2018-08-28 15:10:28 +02:00
|
|
|
"link": "_lightPlane",
|
2017-11-17 16:15:35 +01:00
|
|
|
"ifdef": ["_SSS"]
|
|
|
|
},
|
2016-08-07 01:43:21 +02:00
|
|
|
{
|
2018-11-22 11:08:03 +01:00
|
|
|
"name": "VP",
|
|
|
|
"link": "_viewProjectionMatrix",
|
|
|
|
"ifdef": ["_SSRS"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "texClouds",
|
|
|
|
"link": "_cloudsTexture",
|
|
|
|
"ifdef": ["_LightClouds"]
|
2016-08-07 01:43:21 +02:00
|
|
|
},
|
2016-06-26 12:11:51 +02:00
|
|
|
{
|
2018-11-22 11:08:03 +01:00
|
|
|
"name": "time",
|
|
|
|
"link": "_time",
|
|
|
|
"ifdef": ["_LightClouds"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "texIES",
|
|
|
|
"link": "_iesTexture",
|
|
|
|
"ifdef": ["_LightIES"]
|
2016-06-26 12:11:51 +02:00
|
|
|
},
|
2016-11-06 15:07:13 +01:00
|
|
|
{
|
2018-08-28 15:10:28 +02:00
|
|
|
"name": "lightArea0",
|
|
|
|
"link": "_lightArea0",
|
2017-11-27 14:29:21 +01:00
|
|
|
"ifdef": ["_LTC"]
|
2016-11-06 15:07:13 +01:00
|
|
|
},
|
|
|
|
{
|
2018-08-28 15:10:28 +02:00
|
|
|
"name": "lightArea1",
|
|
|
|
"link": "_lightArea1",
|
2017-11-27 14:29:21 +01:00
|
|
|
"ifdef": ["_LTC"]
|
2016-11-06 15:07:13 +01:00
|
|
|
},
|
|
|
|
{
|
2018-08-28 15:10:28 +02:00
|
|
|
"name": "lightArea2",
|
|
|
|
"link": "_lightArea2",
|
2017-11-27 14:29:21 +01:00
|
|
|
"ifdef": ["_LTC"]
|
2016-11-06 15:07:13 +01:00
|
|
|
},
|
|
|
|
{
|
2018-08-28 15:10:28 +02:00
|
|
|
"name": "lightArea3",
|
|
|
|
"link": "_lightArea3",
|
2017-11-27 14:29:21 +01:00
|
|
|
"ifdef": ["_LTC"]
|
2016-11-06 15:07:13 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sltcMat",
|
|
|
|
"link": "_ltcMat",
|
2017-11-27 14:29:21 +01:00
|
|
|
"ifdef": ["_LTC"]
|
2016-11-06 15:07:13 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sltcMag",
|
|
|
|
"link": "_ltcMag",
|
2017-11-27 14:29:21 +01:00
|
|
|
"ifdef": ["_LTC"]
|
2016-11-06 15:07:13 +01:00
|
|
|
},
|
2018-11-07 13:11:38 +01:00
|
|
|
{
|
|
|
|
"name": "smSizeUniform",
|
|
|
|
"link": "_shadowMapSize",
|
|
|
|
"ifdef": ["_SMSizeUniform"]
|
2018-11-22 11:08:03 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightProj",
|
|
|
|
"link": "_lightPlaneProj",
|
2018-11-22 18:07:32 +01:00
|
|
|
"ifdef": ["_Clusters", "_ShadowMapCube"]
|
2016-03-20 18:44:11 +01:00
|
|
|
}
|
2015-12-17 20:07:23 +01:00
|
|
|
],
|
2018-12-05 17:47:45 +01:00
|
|
|
"vertex_shader": "../include/pass_viewray.vert.glsl",
|
2016-03-15 11:29:53 +01:00
|
|
|
"fragment_shader": "deferred_light.frag.glsl"
|
2015-12-17 20:07:23 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|