armory/raw/deferred_light/deferred_light.shader.json

136 lines
2.3 KiB
JSON
Raw Normal View History

2015-12-17 20:07:23 +01:00
{
"contexts": [
{
2016-03-15 11:29:53 +01:00
"id": "deferred_light",
2015-12-17 20:07:23 +01:00
"params": [
{
"id": "depth_write",
2016-07-24 19:15:36 +02:00
"value": "false"
2015-12-17 20:07:23 +01:00
},
{
"id": "compare_mode",
"value": "always"
},
{
"id": "cull_mode",
"value": "none"
2016-06-26 12:11:51 +02:00
},
{
"id": "blend_source",
"value": "blend_one"
},
{
"id": "blend_destination",
"value": "blend_one"
},
{
"id": "blend_operation",
"value": "add"
},
{
"id": "alpha_blend_source",
"value": "blend_one"
},
{
"id": "alpha_blend_destination",
"value": "blend_one"
},
{
"id": "alpha_blend_operation",
"value": "add"
2015-12-17 20:07:23 +01:00
}
],
"links": [
2016-03-20 18:44:11 +01:00
{
2016-06-26 12:11:51 +02:00
"id": "lightPos",
2016-03-20 18:44:11 +01:00
"link": "_lightPosition"
},
2016-06-26 12:11:51 +02:00
{
"id": "lightDir",
"link": "_lightDirection"
},
{
"id": "lightType",
"link": "_lightType"
},
{
"id": "lightIndex",
"link": "_lightIndex"
},
2016-05-16 12:01:12 +02:00
{
"id": "lightColor",
"link": "_lightColor"
},
{
"id": "lightStrength",
"link": "_lightStrength"
},
2016-06-26 12:11:51 +02:00
{
"id": "spotlightCutoff",
"link": "_spotlightCutoff"
},
{
"id": "spotlightExponent",
"link": "_spotlightExponent"
},
2016-03-20 18:44:11 +01:00
{
"id": "eye",
"link": "_cameraPosition"
2016-03-22 23:35:54 +01:00
},
2016-04-17 16:07:54 +02:00
{
"id": "eyeLook",
"link": "_cameraLook"
2016-04-17 16:07:54 +02:00
},
{
"id": "invVP",
"link": "_inverseViewProjectionMatrix"
2016-04-17 16:07:54 +02:00
},
2016-03-22 23:35:54 +01:00
{
"id": "LMVP",
"link": "_lightModelViewProjectionMatrix"
2016-04-08 16:17:57 +02:00
},
{
"id": "shirr",
2016-04-08 16:17:57 +02:00
"link": "_envmapIrradiance"
},
{
"id": "senvmapRadiance",
2016-06-30 13:22:05 +02:00
"link": "_envmapRadiance",
"ifdef": ["_Rad"]
},
{
"id": "envmapNumMipmaps",
"link": "_envmapNumMipmaps",
"ifdef": ["_Rad"]
2016-04-08 16:17:57 +02:00
},
{
"id": "senvmapBrdf",
2016-06-30 13:22:05 +02:00
"link": "_envmapBrdf",
"ifdef": ["_Rad"]
2016-05-10 12:11:31 +02:00
},
{
"id": "envmapStrength",
"link": "_envmapStrength"
},
2016-05-10 12:11:31 +02:00
{
"id": "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
},
{
"id": "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
},
{
"id": "time",
"link": "_time",
2016-05-15 12:12:21 +02:00
"ifdef": ["_PolyLight"]
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
}
]
}