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",
|
2019-04-26 11:12:09 +02:00
|
|
|
"link": "$brdf.png",
|
2018-11-22 11:08:03 +01:00
|
|
|
"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",
|
2018-12-10 17:25:29 +01:00
|
|
|
"ifdef": ["_Clusters", "_Spot"]
|
2018-11-22 11:08:03 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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",
|
2019-04-26 11:12:09 +02:00
|
|
|
"link": "$cloudstexture.png",
|
2018-11-22 11:08:03 +01:00
|
|
|
"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",
|
2019-04-26 11:12:09 +02:00
|
|
|
"link": "$iestexture.png",
|
2018-11-22 11:08:03 +01:00
|
|
|
"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-12-10 23:29:04 +01:00
|
|
|
"ifdef": ["_ShadowMap"]
|
2018-12-10 17:25:29 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "pointPos",
|
|
|
|
"link": "_pointPosition",
|
|
|
|
"ifdef": ["_SinglePoint"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "pointCol",
|
|
|
|
"link": "_pointColor",
|
|
|
|
"ifdef": ["_SinglePoint"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "pointBias",
|
|
|
|
"link": "_pointShadowsBias",
|
2019-01-09 21:25:09 +01:00
|
|
|
"ifdef": ["_SinglePoint", "_ShadowMap"]
|
2018-12-10 17:25:29 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "spotDir",
|
|
|
|
"link": "_spotDirection",
|
|
|
|
"ifdef": ["_SinglePoint", "_Spot"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "spotData",
|
|
|
|
"link": "_spotData",
|
|
|
|
"ifdef": ["_SinglePoint", "_Spot"]
|
2018-12-11 23:05:18 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LWVPSpot0",
|
|
|
|
"link": "_biasLightWorldViewProjectionMatrixSpot0",
|
|
|
|
"ifdef": ["_Spot", "_ShadowMap"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LWVPSpot1",
|
|
|
|
"link": "_biasLightWorldViewProjectionMatrixSpot1",
|
|
|
|
"ifdef": ["_Spot", "_ShadowMap"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LWVPSpot2",
|
|
|
|
"link": "_biasLightWorldViewProjectionMatrixSpot2",
|
|
|
|
"ifdef": ["_Spot", "_ShadowMap"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LWVPSpot3",
|
|
|
|
"link": "_biasLightWorldViewProjectionMatrixSpot3",
|
|
|
|
"ifdef": ["_Spot", "_ShadowMap"]
|
2019-01-27 23:48:54 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LWVPSpot0",
|
|
|
|
"link": "_biasLightWorldViewProjectionMatrixSpot0",
|
|
|
|
"ifdef": ["_LTC", "_ShadowMap"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LWVPSpot1",
|
|
|
|
"link": "_biasLightWorldViewProjectionMatrixSpot1",
|
|
|
|
"ifdef": ["_LTC", "_ShadowMap"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LWVPSpot2",
|
|
|
|
"link": "_biasLightWorldViewProjectionMatrixSpot2",
|
|
|
|
"ifdef": ["_LTC", "_ShadowMap"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LWVPSpot3",
|
|
|
|
"link": "_biasLightWorldViewProjectionMatrixSpot3",
|
|
|
|
"ifdef": ["_LTC", "_ShadowMap"]
|
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
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|