2015-12-17 20:07:23 +01:00
|
|
|
{
|
|
|
|
"contexts": [
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "deferred_light",
|
2015-12-17 20:07:23 +01:00
|
|
|
"params": [
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "depth_write",
|
2016-07-24 19:15:36 +02:00
|
|
|
"value": "false"
|
2015-12-17 20:07:23 +01:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "compare_mode",
|
2016-08-09 23:51:40 +02:00
|
|
|
"value": "greater"
|
2015-12-17 20:07:23 +01:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "cull_mode",
|
2016-08-09 23:51:40 +02:00
|
|
|
"value": "counter_clockwise"
|
2016-06-26 12:11:51 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "blend_source",
|
2016-06-26 12:11:51 +02:00
|
|
|
"value": "blend_one"
|
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "blend_destination",
|
2016-06-26 12:11:51 +02:00
|
|
|
"value": "blend_one"
|
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "blend_operation",
|
2016-06-26 12:11:51 +02:00
|
|
|
"value": "add"
|
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "alpha_blend_source",
|
2016-06-26 12:11:51 +02:00
|
|
|
"value": "blend_one"
|
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "alpha_blend_destination",
|
2016-06-26 12:11:51 +02:00
|
|
|
"value": "blend_one"
|
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "alpha_blend_operation",
|
2016-06-26 12:11:51 +02:00
|
|
|
"value": "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",
|
|
|
|
"link": "_lampColor"
|
2016-05-16 12:01:12 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "lightStrength",
|
|
|
|
"link": "_lampStrength"
|
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-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-05-10 12:11:31 +02:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "sltcMat",
|
2016-05-12 21:03:23 +02:00
|
|
|
"link": "_ltcMat",
|
2016-05-15 12:12:21 +02:00
|
|
|
"ifdef": ["_PolyLight"]
|
2016-05-10 12:11:31 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "sltcMag",
|
2016-05-12 21:03:23 +02:00
|
|
|
"link": "_ltcMag",
|
2016-05-15 12:12:21 +02:00
|
|
|
"ifdef": ["_PolyLight"]
|
2016-05-15 00:39:44 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "time",
|
2016-05-15 00:39:44 +02:00
|
|
|
"link": "_time",
|
2016-05-15 12:12:21 +02:00
|
|
|
"ifdef": ["_PolyLight"]
|
2016-09-08 14:08:31 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "snoise",
|
|
|
|
"link": "_noise64",
|
|
|
|
"ifdef": ["_PCSS"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lampNear",
|
|
|
|
"link": "_lampPlaneNear",
|
|
|
|
"ifdef": ["_PCSS"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lampSizeUV",
|
|
|
|
"link": "_lampSizeUV",
|
|
|
|
"ifdef": ["_PCSS"]
|
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",
|
|
|
|
"fragment_shader": "deferred_light.frag.glsl"
|
2015-12-17 20:07:23 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|