{
  "name": "Split",
  "id": "ide:df980d2f-264d-4174-8f0b-a03d36b299dd",
  "module": {
    "kind": "shader",
    "id": "ide:df980d2f-264d-4174-8f0b-a03d36b299dd",
    "name": "Split",
    "inputs": [
      {
        "id": "in",
        "label": "In",
        "type": "frame"
      },
      {
        "id": "in2",
        "label": "in2",
        "type": "frame"
      },
      {
        "id": "height",
        "label": "height",
        "type": "number"
      }
    ],
    "outputs": [
      {
        "id": "out",
        "label": "Out",
        "type": "frame"
      }
    ],
    "fragmentSrc": "#version 300 es\nprecision highp float;\n\nin vec2 v_texCoord;\nuniform sampler2D u_texture0;\nuniform sampler2D u_texture1;\nuniform float height;\nout vec4 fragColor;\n\nvoid main() {\n  vec4 c = texture(u_texture0, v_texCoord);\n  fragColor = vec4(\n    c.r,\n    c.g,\n    height*2., \n    c.a\n  );\n  fragColor = v_texCoord.y > height\n    ? texture(u_texture0, v_texCoord)\n    : texture(u_texture1, v_texCoord);\n}"
  }
}
