2016-05-05 19:50:03 +02:00
|
|
|
{
|
|
|
|
"contexts": [
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "water_pass",
|
2016-10-17 12:02:41 +02:00
|
|
|
"depth_write": false,
|
|
|
|
"compare_mode": "always",
|
|
|
|
"cull_mode": "none",
|
2017-07-05 23:15:40 +02:00
|
|
|
"blend_source": "source_alpha",
|
|
|
|
"blend_destination": "inverse_source_alpha",
|
|
|
|
"blend_operation": "add",
|
|
|
|
"alpha_blend_source": "blend_one",
|
|
|
|
"alpha_blend_destination": "blend_one",
|
|
|
|
"alpha_blend_operation": "add",
|
2016-05-05 19:50:03 +02:00
|
|
|
"links": [
|
2016-07-17 20:29:53 +02:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "transpV",
|
2016-07-17 20:29:53 +02:00
|
|
|
"link": "_transposeViewMatrix"
|
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "invP",
|
2016-07-17 20:29:53 +02:00
|
|
|
"link": "_inverseProjectionMatrix"
|
|
|
|
},
|
2016-05-05 19:50:03 +02:00
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "eye",
|
2016-05-05 19:50:03 +02:00
|
|
|
"link": "_cameraPosition"
|
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "eyeLook",
|
2016-05-05 19:50:03 +02:00
|
|
|
"link": "_cameraLook"
|
|
|
|
},
|
|
|
|
{
|
2017-07-04 13:29:01 +02:00
|
|
|
"name": "ld",
|
|
|
|
"link": "_lampDirection"
|
2016-05-05 19:50:03 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "invVP",
|
2016-05-05 19:50:03 +02:00
|
|
|
"link": "_inverseViewProjectionMatrix"
|
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "time",
|
2016-05-05 19:50:03 +02:00
|
|
|
"link": "_time"
|
2016-08-04 22:38:56 +02:00
|
|
|
},
|
|
|
|
{
|
2016-08-25 00:26:01 +02:00
|
|
|
"name": "envmapStrength",
|
2016-08-04 22:38:56 +02:00
|
|
|
"link": "_envmapStrength"
|
2017-07-07 17:23:32 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "LWVP",
|
|
|
|
"link": "_biasLampWorldViewProjectionMatrix",
|
|
|
|
"ifdef": ["_Disabled"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "shadowsBias",
|
|
|
|
"link": "_lampShadowsBias",
|
|
|
|
"ifdef": ["_Disabled"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightPlane",
|
|
|
|
"link": "_lampPlane",
|
|
|
|
"ifdef": ["_Disabled"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightShadow",
|
|
|
|
"link": "_lampCastShadow",
|
|
|
|
"ifdef": ["_Disabled"]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "lightPos",
|
|
|
|
"link": "_lampPosition",
|
|
|
|
"ifdef": ["_Disabled"]
|
2017-11-04 18:35:34 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "cameraProj",
|
|
|
|
"link": "_cameraPlaneProj"
|
2016-05-05 19:50:03 +02:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"texture_params": [],
|
|
|
|
"vertex_shader": "water_pass.vert.glsl",
|
|
|
|
"fragment_shader": "water_pass.frag.glsl"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|