Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

1.7 KB
Raw Blame
{
  "version": 4,
  "name": "DepthOutlineFlat",
  "entities": [
    {
      "id": 0,
      "name": "Camera",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 10
            }
          }
        },
        {
          "type": "Camera",
          "data": {
            "projectionType": 1,
            "orthoSize": 300,
            "isActive": true,
            "priority": 0
          }
        },
        {
          "type": "PostProcessVolume",
          "data": {
            "isGlobal": true,
            "priority": 0,
            "weight": 1,
            "effects": [
              {
                "type": "depthOutline",
                "enabled": true,
                "uniforms": {
                  "u_intensity": 1,
                  "u_threshold": 0.01,
                  "u_thickness": 4
                }
              }
            ]
          }
        }
      ]
    },
    {
      "id": 1,
      "name": "Sprite",
      "parent": null,
      "children": [],
      "visible": true,
      "components": [
        {
          "type": "Transform",
          "data": {
            "position": {
              "x": 0,
              "y": 0,
              "z": 0
            }
          }
        },
        {
          "type": "Sprite",
          "data": {
            "size": {
              "x": 5,
              "y": 5
            },
            "color": {
              "r": 0.9,
              "g": 0.4,
              "b": 0.1,
              "a": 1
            }
          }
        }
      ]
    }
  ]
}