82 lines
1.6 KiB
JSON
Executable file
82 lines
1.6 KiB
JSON
Executable file
{
|
|
"contexts": [
|
|
{
|
|
"name": "water_pass",
|
|
"depth_write": false,
|
|
"compare_mode": "always",
|
|
"cull_mode": "none",
|
|
"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",
|
|
"links": [
|
|
{
|
|
"name": "transpV",
|
|
"link": "_transposeViewMatrix"
|
|
},
|
|
{
|
|
"name": "invP",
|
|
"link": "_inverseProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "eye",
|
|
"link": "_cameraPosition"
|
|
},
|
|
{
|
|
"name": "eyeLook",
|
|
"link": "_cameraLook"
|
|
},
|
|
{
|
|
"name": "ld",
|
|
"link": "_lampDirection"
|
|
},
|
|
{
|
|
"name": "invVP",
|
|
"link": "_inverseViewProjectionMatrix"
|
|
},
|
|
{
|
|
"name": "time",
|
|
"link": "_time"
|
|
},
|
|
{
|
|
"name": "envmapStrength",
|
|
"link": "_envmapStrength"
|
|
},
|
|
{
|
|
"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"]
|
|
},
|
|
{
|
|
"name": "cameraProj",
|
|
"link": "_cameraPlaneProj"
|
|
}
|
|
],
|
|
"texture_params": [],
|
|
"vertex_shader": "water_pass.vert.glsl",
|
|
"fragment_shader": "water_pass.frag.glsl"
|
|
}
|
|
]
|
|
}
|