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.

2.8 KB
Raw Blame
{
 "version": 4,
 "name": "MeshShadowFarBackdrop",
 "entities": [
  {
   "id": 0,
   "name": "Camera",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": 0,
       "y": 0,
       "z": 500
      }
     }
    },
    {
     "type": "Camera",
     "data": {
      "projectionType": 0,
      "fov": 45,
      "nearPlane": 10,
      "farPlane": 4000,
      "isActive": true,
      "priority": 0
     }
    }
   ]
  },
  {
   "id": 1,
   "name": "Ground",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": 0,
       "y": 0,
       "z": 250
      },
      "scale": {
       "x": 600,
       "y": 600,
       "z": 1
      }
     }
    },
    {
     "type": "MeshRenderer",
     "data": {
      "mesh": "/scenes/shadow-quad.esmesh",
      "color": {
       "r": 1,
       "g": 1,
       "b": 1,
       "a": 1
      },
      "lit": true,
      "opaque": true,
      "enabled": true
     }
    }
   ]
  },
  {
   "id": 2,
   "name": "Caster",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": 0,
       "y": 60,
       "z": 900
      },
      "scale": {
       "x": 60,
       "y": 60,
       "z": 1
      }
     }
    },
    {
     "type": "MeshRenderer",
     "data": {
      "mesh": "/scenes/shadow-quad.esmesh",
      "color": {
       "r": 1,
       "g": 1,
       "b": 1,
       "a": 1
      },
      "lit": true,
      "opaque": true,
      "enabled": true
     }
    }
   ]
  },
  {
   "id": 3,
   "name": "Sun",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": 0,
       "y": 0,
       "z": 0
      }
     }
    },
    {
     "type": "Light",
     "data": {
      "type": 1,
      "color": {
       "r": 1,
       "g": 1,
       "b": 1,
       "a": 1
      },
      "intensity": 1,
      "direction": {
       "x": 0.05,
       "y": 0
      },
      "meshShadows": true,
      "shadowExtent": 400
     }
    }
   ]
  },
  {
   "id": 4,
   "name": "Backdrop",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": 6000,
       "y": 0,
       "z": 250
      },
      "scale": {
       "x": 600,
       "y": 600,
       "z": 1
      }
     }
    },
    {
     "type": "MeshRenderer",
     "data": {
      "mesh": "/scenes/shadow-quad.esmesh",
      "color": {
       "r": 1,
       "g": 1,
       "b": 1,
       "a": 1
      },
      "lit": true,
      "opaque": true,
      "enabled": true,
      "castShadows": false
     }
    }
   ]
  }
 ]
}