2017-07-08 14:12:18 +02:00
|
|
|
{
|
|
|
|
"contexts": [
|
|
|
|
{
|
|
|
|
"name": "volumetric_light_quad",
|
|
|
|
"depth_write": false,
|
|
|
|
"compare_mode": "always",
|
|
|
|
"cull_mode": "none",
|
|
|
|
"links": [
|
2018-01-06 00:33:33 +01:00
|
|
|
{
|
|
|
|
"name": "invVP",
|
|
|
|
"link": "_inverseViewProjectionMatrix"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LWVP",
|
|
|
|
"link": "_biasLampWorldViewProjectionMatrix"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "shadowsBias",
|
|
|
|
"link": "_lampShadowsBias"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightPos",
|
|
|
|
"link": "_lampPosition",
|
|
|
|
"ifdef": ["_Disabled"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightRadius",
|
|
|
|
"link": "_lampRadius",
|
|
|
|
"ifdef": ["_Disabled"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightColor",
|
|
|
|
"link": "_lampColor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "snoise",
|
|
|
|
"link": "_noise8",
|
|
|
|
"ifdef": ["_Disabled"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightPlane",
|
|
|
|
"link": "_lampPlane",
|
|
|
|
"ifdef": ["_Disabled"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightShadow",
|
|
|
|
"link": "_lampCastShadow",
|
|
|
|
"ifdef": ["_Disabled"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "eye",
|
|
|
|
"link": "_cameraPosition"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "eyeLook",
|
|
|
|
"link": "_cameraLook"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "cameraProj",
|
|
|
|
"link": "_cameraPlaneProj"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"texture_params": [],
|
|
|
|
"vertex_shader": "../include/pass_viewray.vert.glsl",
|
|
|
|
"fragment_shader": "volumetric_light_quad.frag.glsl"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "volumetric_light_quad_blend",
|
|
|
|
"depth_write": false,
|
|
|
|
"compare_mode": "always",
|
|
|
|
"cull_mode": "none",
|
|
|
|
"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": "invVP",
|
|
|
|
"link": "_inverseViewProjectionMatrix"
|
|
|
|
},
|
2017-07-08 14:12:18 +02:00
|
|
|
{
|
|
|
|
"name": "LWVP",
|
|
|
|
"link": "_biasLampWorldViewProjectionMatrix"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "shadowsBias",
|
|
|
|
"link": "_lampShadowsBias"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightPos",
|
2018-01-06 00:33:33 +01:00
|
|
|
"link": "_lampPosition",
|
|
|
|
"ifdef": ["_Disabled"]
|
2017-07-08 14:12:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightRadius",
|
2018-01-06 00:33:33 +01:00
|
|
|
"link": "_lampRadius",
|
|
|
|
"ifdef": ["_Disabled"]
|
2017-07-08 14:12:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightColor",
|
|
|
|
"link": "_lampColor"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "snoise",
|
2018-01-06 00:33:33 +01:00
|
|
|
"link": "_noise8",
|
|
|
|
"ifdef": ["_Disabled"]
|
2017-07-08 14:12:18 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightPlane",
|
|
|
|
"link": "_lampPlane",
|
|
|
|
"ifdef": ["_Disabled"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightShadow",
|
|
|
|
"link": "_lampCastShadow",
|
|
|
|
"ifdef": ["_Disabled"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "eye",
|
|
|
|
"link": "_cameraPosition"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "eyeLook",
|
|
|
|
"link": "_cameraLook"
|
2017-11-04 18:35:34 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "cameraProj",
|
|
|
|
"link": "_cameraPlaneProj"
|
2017-07-08 14:12:18 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"texture_params": [],
|
2017-12-20 15:37:58 +01:00
|
|
|
"vertex_shader": "../include/pass_viewray.vert.glsl",
|
2017-07-08 14:12:18 +02:00
|
|
|
"fragment_shader": "volumetric_light_quad.frag.glsl"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|