125 lines
2.4 KiB
JSON
Executable file
125 lines
2.4 KiB
JSON
Executable file
{
|
|
"contexts": [
|
|
{
|
|
"name": "deferred_light",
|
|
"depth_write": false,
|
|
"color_write_alpha": 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",
|
|
"links": [
|
|
{
|
|
"name": "VWVP",
|
|
"link": "_lightVolumeWorldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "lightPos",
|
|
"link": "_lightPosition"
|
|
},
|
|
{
|
|
"name": "lightProj",
|
|
"link": "_lightPlaneProj"
|
|
},
|
|
{
|
|
"name": "lightDir",
|
|
"link": "_lightDirection"
|
|
},
|
|
{
|
|
"name": "lightType",
|
|
"link": "_lightType"
|
|
},
|
|
{
|
|
"name": "lightColor",
|
|
"link": "_lightColor"
|
|
},
|
|
{
|
|
"name": "lightShadow",
|
|
"link": "_lightCastShadow"
|
|
},
|
|
{
|
|
"name": "texlightcolor",
|
|
"link": "_lightColorTexture",
|
|
"ifdef": ["_LightColTex"]
|
|
},
|
|
{
|
|
"name": "texIES",
|
|
"link": "_iesTexture",
|
|
"ifdef": ["_LightIES"]
|
|
},
|
|
{
|
|
"name": "lightPlane",
|
|
"link": "_lightPlane",
|
|
"ifdef": ["_SSS"]
|
|
},
|
|
{
|
|
"name": "shadowsBias",
|
|
"link": "_lightShadowsBias"
|
|
},
|
|
{
|
|
"name": "spotlightData",
|
|
"link": "_spotlightData"
|
|
},
|
|
{
|
|
"name": "lightArea0",
|
|
"link": "_lightArea0",
|
|
"ifdef": ["_LTC"]
|
|
},
|
|
{
|
|
"name": "lightArea1",
|
|
"link": "_lightArea1",
|
|
"ifdef": ["_LTC"]
|
|
},
|
|
{
|
|
"name": "lightArea2",
|
|
"link": "_lightArea2",
|
|
"ifdef": ["_LTC"]
|
|
},
|
|
{
|
|
"name": "lightArea3",
|
|
"link": "_lightArea3",
|
|
"ifdef": ["_LTC"]
|
|
},
|
|
{
|
|
"name": "sltcMat",
|
|
"link": "_ltcMat",
|
|
"ifdef": ["_LTC"]
|
|
},
|
|
{
|
|
"name": "sltcMag",
|
|
"link": "_ltcMag",
|
|
"ifdef": ["_LTC"]
|
|
},
|
|
{
|
|
"name": "eye",
|
|
"link": "_cameraPosition"
|
|
},
|
|
{
|
|
"name": "invVP",
|
|
"link": "_inverseViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "LWVP",
|
|
"link": "_biasLightWorldViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "VP",
|
|
"link": "_viewProjectionMatrix",
|
|
"ifdef": ["_SSRS"]
|
|
},
|
|
{
|
|
"name": "smSizeUniform",
|
|
"link": "_shadowMapSize",
|
|
"ifdef": ["_SMSizeUniform"]
|
|
}
|
|
],
|
|
"vertex_shader": "../include/pass_volume.vert.glsl",
|
|
"fragment_shader": "deferred_light.frag.glsl"
|
|
}
|
|
]
|
|
}
|