armory/raw/deferred_light/deferred_light.shader.json
2016-05-16 12:01:12 +02:00

81 lines
1.3 KiB
JSON
Executable file

{
"contexts": [
{
"id": "deferred_light",
"params": [
{
"id": "depth_write",
"value": "true"
},
{
"id": "compare_mode",
"value": "always"
},
{
"id": "cull_mode",
"value": "none"
}
],
"links": [
{
"id": "light",
"link": "_lightPosition"
},
{
"id": "lightColor",
"link": "_lightColor"
},
{
"id": "lightStrength",
"link": "_lightStrength"
},
{
"id": "eye",
"link": "_cameraPosition"
},
{
"id": "eyeLook",
"link": "_cameraLook"
},
{
"id": "invVP",
"link": "_inverseViewProjectionMatrix"
},
{
"id": "LMVP",
"link": "_lightModelViewProjectionMatrix"
},
{
"id": "senvmapIrradiance",
"link": "_envmapIrradiance"
},
{
"id": "senvmapRadiance",
"link": "_envmapRadiance"
},
{
"id": "senvmapBrdf",
"link": "_envmapBrdf"
},
{
"id": "sltcMat",
"link": "_ltcMat",
"ifdef": ["_PolyLight"]
},
{
"id": "sltcMag",
"link": "_ltcMag",
"ifdef": ["_PolyLight"]
},
{
"id": "time",
"link": "_time",
"ifdef": ["_PolyLight"]
}
],
"vertex_shader": "deferred_light.vert.glsl",
"fragment_shader": "deferred_light.frag.glsl"
}
]
}