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,
|
|
|
|
"compare_mode": "greater",
|
|
|
|
"cull_mode": "counter_clockwise",
|
|
|
|
"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",
|
2015-12-17 20:07:23 +01:00
|
|
|
"links": [
|
2016-08-09 23:51:40 +02:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "LVWVP",
|
|
|
|
"link": "_lampVolumeWorldViewProjectionMatrix"
|
2016-08-09 23:51:40 +02:00
|
|
|
},
|
2016-03-20 18:44:11 +01:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "lightPos",
|
|
|
|
"link": "_lampPosition"
|
2016-03-20 18:44:11 +01:00
|
|
|
},
|
2016-06-26 12:11:51 +02:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "lightDir",
|
|
|
|
"link": "_lampDirection"
|
2016-06-26 12:11:51 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "lightType",
|
|
|
|
"link": "_lampType"
|
2016-06-26 12:11:51 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "lightIndex",
|
|
|
|
"link": "_lampIndex",
|
2016-08-09 23:51:40 +02:00
|
|
|
"ifdef": ["_Disabled"]
|
2016-06-26 12:11:51 +02:00
|
|
|
},
|
2016-05-16 12:01:12 +02:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "lightColor",
|
2016-12-13 01:09:17 +01:00
|
|
|
"link": "_lampColor"
|
2016-11-05 20:57:04 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "texlampcolor",
|
|
|
|
"link": "_lampColorTexture",
|
|
|
|
"ifdef": ["_LampColTex"]
|
2016-05-16 12:01:12 +02:00
|
|
|
},
|
2016-08-07 01:43:21 +02:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "shadowsBias",
|
|
|
|
"link": "_lampShadowsBias"
|
2016-08-07 01:43:21 +02:00
|
|
|
},
|
2016-06-26 12:11:51 +02:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "spotlightCutoff",
|
|
|
|
"link": "_spotlampCutoff"
|
2016-06-26 12:11:51 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "spotlightExponent",
|
|
|
|
"link": "_spotlampExponent"
|
2016-06-26 12:11:51 +02:00
|
|
|
},
|
2016-11-06 15:07:13 +01:00
|
|
|
{
|
|
|
|
"name": "lampArea0",
|
|
|
|
"link": "_lampArea0",
|
2016-11-08 15:14:56 +01:00
|
|
|
"ifdef": ["_PolyLight"]
|
2016-11-06 15:07:13 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lampArea1",
|
|
|
|
"link": "_lampArea1",
|
2016-11-08 15:14:56 +01:00
|
|
|
"ifdef": ["_PolyLight"]
|
2016-11-06 15:07:13 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lampArea2",
|
|
|
|
"link": "_lampArea2",
|
2016-11-08 15:14:56 +01:00
|
|
|
"ifdef": ["_PolyLight"]
|
2016-11-06 15:07:13 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lampArea3",
|
|
|
|
"link": "_lampArea3",
|
2016-11-08 15:14:56 +01:00
|
|
|
"ifdef": ["_PolyLight"]
|
2016-11-06 15:07:13 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sltcMat",
|
|
|
|
"link": "_ltcMat",
|
2016-11-08 15:14:56 +01:00
|
|
|
"ifdef": ["_PolyLight"]
|
2016-11-06 15:07:13 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "sltcMag",
|
|
|
|
"link": "_ltcMag",
|
2016-11-08 15:14:56 +01:00
|
|
|
"ifdef": ["_PolyLight"]
|
2016-11-06 15:07:13 +01:00
|
|
|
},
|
2016-03-20 18:44:11 +01:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "eye",
|
2016-03-20 18:44:11 +01:00
|
|
|
"link": "_cameraPosition"
|
2016-03-22 23:35:54 +01:00
|
|
|
},
|
2016-04-17 16:07:54 +02:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "eyeLook",
|
2016-08-09 23:51:40 +02:00
|
|
|
"link": "_cameraLook",
|
|
|
|
"ifdef": ["_Disabled"]
|
2016-04-17 16:07:54 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "invVP",
|
2016-04-20 19:35:22 +02:00
|
|
|
"link": "_inverseViewProjectionMatrix"
|
2016-04-17 16:07:54 +02:00
|
|
|
},
|
2016-03-22 23:35:54 +01:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "LWVP",
|
|
|
|
"link": "_biasLampWorldViewProjectionMatrix"
|
2016-04-08 16:17:57 +02:00
|
|
|
},
|
2016-08-09 23:51:40 +02:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "screenSize",
|
2016-09-08 14:08:31 +02:00
|
|
|
"link": "_screenSize",
|
|
|
|
"ifdef": ["_Disabled"]
|
2016-08-09 23:51:40 +02:00
|
|
|
},
|
2016-04-08 16:17:57 +02:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "shirr",
|
2016-08-09 23:51:40 +02:00
|
|
|
"link": "_envmapIrradiance",
|
|
|
|
"ifdef": ["_Disabled"]
|
2016-04-08 16:17:57 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "senvmapRadiance",
|
2016-06-30 13:22:05 +02:00
|
|
|
"link": "_envmapRadiance",
|
2016-08-09 23:51:40 +02:00
|
|
|
"ifdef": ["_Disabled"]
|
2016-06-30 13:22:05 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "envmapNumMipmaps",
|
2016-06-30 13:22:05 +02:00
|
|
|
"link": "_envmapNumMipmaps",
|
2016-08-09 23:51:40 +02:00
|
|
|
"ifdef": ["_Disabled"]
|
2016-04-08 16:17:57 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "senvmapBrdf",
|
2016-06-30 13:22:05 +02:00
|
|
|
"link": "_envmapBrdf",
|
2016-08-09 23:51:40 +02:00
|
|
|
"ifdef": ["_Disabled"]
|
2016-05-10 12:11:31 +02:00
|
|
|
},
|
2016-05-25 00:13:44 +02:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "envmapStrength",
|
2016-08-09 23:51:40 +02:00
|
|
|
"link": "_envmapStrength",
|
|
|
|
"ifdef": ["_Disabled"]
|
2016-05-25 00:13:44 +02:00
|
|
|
},
|
2016-09-08 14:08:31 +02:00
|
|
|
{
|
|
|
|
"name": "snoise",
|
|
|
|
"link": "_noise64",
|
|
|
|
"ifdef": ["_PCSS"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lampSizeUV",
|
|
|
|
"link": "_lampSizeUV",
|
|
|
|
"ifdef": ["_PCSS"]
|
2016-10-09 16:06:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "senvmapBrdf",
|
|
|
|
"link": "_envmapBrdf",
|
|
|
|
"ifdef": ["_VoxelGI"]
|
2016-03-20 18:44:11 +01:00
|
|
|
}
|
2015-12-17 20:07:23 +01:00
|
|
|
],
|
2016-03-15 11:29:53 +01:00
|
|
|
"vertex_shader": "deferred_light.vert.glsl",
|
2016-10-17 02:29:37 +02:00
|
|
|
"vertex_shader_path": "../include/lamp_volume.vert.glsl",
|
2016-03-15 11:29:53 +01:00
|
|
|
"fragment_shader": "deferred_light.frag.glsl"
|
2015-12-17 20:07:23 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|