armory/raw/forward/forward.shader.json
2016-10-09 16:06:18 +02:00

313 lines
5.2 KiB
JSON
Executable file

{
"contexts": [
{
"name": "mesh",
"params": [
{
"name": "depth_write",
"value": "true"
},
{
"name": "compare_mode",
"value": "less"
},
{
"name": "cull_mode",
"value": "clockwise"
}
],
"links": [
{
"name": "W",
"link": "_worldMatrix"
},
{
"name": "N",
"link": "_normalMatrix"
},
{
"name": "V",
"link": "_viewMatrix"
},
{
"name": "P",
"link": "_projectionMatrix"
},
{
"name": "LWVP",
"link": "_lampWorldViewProjectionMatrix"
},
{
"name": "lightPos",
"link": "_lampPosition"
},
{
"name": "lightDir",
"link": "_lampDirection"
},
{
"name": "lightColor",
"link": "_lampColor"
},
{
"name": "lightStrength",
"link": "_lampStrength"
},
{
"name": "shadowsBias",
"link": "_lampShadowsBias"
},
{
"name": "spotlightCutoff",
"link": "_spotlampCutoff"
},
{
"name": "spotlightExponent",
"link": "_spotlampExponent"
},
{
"name": "lightType",
"link": "_lampType"
},
{
"name": "eye",
"link": "_cameraPosition"
},
{
"name": "skinBones",
"link": "_skinBones",
"ifdef": ["_Skinning"]
},
{
"name": "shirr",
"link": "_envmapIrradiance"
},
{
"name": "senvmapRadiance",
"link": "_envmapRadiance",
"ifdef": ["_Rad"]
},
{
"name": "envmapNumMipmaps",
"link": "_envmapNumMipmaps",
"ifdef": ["_Rad"]
},
{
"name": "senvmapBrdf",
"link": "_envmapBrdf",
"ifdef": ["_Rad"]
},
{
"name": "envmapStrength",
"link": "_envmapStrength"
},
{
"name": "sltcMat",
"link": "_ltcMat",
"ifdef": ["_PolyLight"]
},
{
"name": "sltcMag",
"link": "_ltcMag",
"ifdef": ["_PolyLight"]
},
{
"name": "U",
"link": "_undistortionMatrix",
"ifdef": ["_VR"]
},
{
"name": "maxRadSq",
"link": "_maxRadiusSq",
"ifdef": ["_VR"]
},
{
"name": "snoise",
"link": "_noise64",
"ifdef": ["_PCSS"]
},
{
"name": "lampNear",
"link": "_lampPlaneNear",
"ifdef": ["_PCSS"]
},
{
"name": "lampSizeUV",
"link": "_lampSizeUV",
"ifdef": ["_PCSS"]
}
],
"vertex_shader": "mesh.vert.glsl",
"fragment_shader": "mesh.frag.glsl"
},
{
"name": "overlay",
"params": [
{
"name": "depth_write",
"value": "true"
},
{
"name": "compare_mode",
"value": "less"
},
{
"name": "cull_mode",
"value": "clockwise"
}
],
"links": [
{
"name": "W",
"link": "_worldMatrix"
},
{
"name": "N",
"link": "_normalMatrix"
},
{
"name": "V",
"link": "_viewMatrix"
},
{
"name": "P",
"link": "_projectionMatrix"
},
{
"name": "LWVP",
"link": "_lampWorldViewProjectionMatrix"
},
{
"name": "lightDir",
"link": "_lampDirection"
},
{
"name": "lightColor",
"link": "_lampColor"
},
{
"name": "lightStrength",
"link": "_lampStrength"
},
{
"name": "eye",
"link": "_cameraPosition"
},
{
"name": "skinBones",
"link": "_skinBones",
"ifdef": ["_Skinning"]
},
{
"name": "shirr",
"link": "_envmapIrradiance"
},
{
"name": "senvmapRadiance",
"link": "_envmapRadiance",
"ifdef": ["_Rad"]
},
{
"name": "envmapNumMipmaps",
"link": "_envmapNumMipmaps",
"ifdef": ["_Rad"]
},
{
"name": "senvmapBrdf",
"link": "_envmapBrdf",
"ifdef": ["_Rad"]
},
{
"name": "envmapStrength",
"link": "_envmapStrength"
},
{
"name": "sltcMat",
"link": "_ltcMat",
"ifdef": ["_PolyLight"]
},
{
"name": "sltcMag",
"link": "_ltcMag",
"ifdef": ["_PolyLight"]
}
],
"vertex_shader": "overlay.vert.glsl",
"fragment_shader": "overlay.frag.glsl"
},
{
"name": "shadowmap",
"params": [
{
"name": "depth_write",
"value": "true"
},
{
"name": "compare_mode",
"value": "less"
},
{
"name": "cull_mode",
"value": "clockwise"
}
],
"links": [
{
"name": "LWVP",
"link": "_lampWorldViewProjectionMatrix"
},
{
"name": "skinBones",
"link": "_skinBones",
"ifdef": ["_Skinning"]
}
],
"vertex_shader": "shadowmap.vert.glsl",
"fragment_shader": "shadowmap.frag.glsl"
},
{
"name": "voxel",
"params": [
{
"name": "depth_write",
"value": "false"
},
{
"name": "compare_mode",
"value": "always"
},
{
"name": "cull_mode",
"value": "none"
}
],
"links": [
{
"name": "W",
"link": "_worldMatrix"
},
{
"name": "LWVP",
"link": "_lampWorldViewProjectionMatrix"
},
{
"name": "PX",
"link": "_projectionXMatrix"
},
{
"name": "PY",
"link": "_projectionYMatrix"
},
{
"name": "PZ",
"link": "_projectionZMatrix"
}
],
"texture_params": [],
"vertex_shader": "voxel.vert.glsl",
"fragment_shader": "voxel.frag.glsl",
"geometry_shader": "voxel.geom.glsl"
}
]
}