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.9 KB
Raw Blame
{
 "version": 4,
 "name": "SkyFog",
 "entities": [
  {
   "id": 0,
   "name": "Camera",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": 0,
       "y": 0,
       "z": 300
      },
      "rotation": {
       "x": -0.17,
       "y": 0,
       "z": 0,
       "w": 0.985
      }
     }
    },
    {
     "type": "Camera",
     "data": {
      "projectionType": 0,
      "fov": 90,
      "nearPlane": 0.1,
      "farPlane": 1000,
      "isActive": true,
      "priority": 0
     }
    },
    {
     "type": "PostProcessVolume",
     "data": {
      "isGlobal": true,
      "priority": 0,
      "weight": 1,
      "effects": [
       {
        "type": "skyAtmosphere",
        "enabled": true,
        "uniforms": {
         "u_clouds": 0.6,
         "u_cloudShadow": 0.5,
         "u_cloudBase": 1.0,
         "u_cloudThickness": 1.0
        }
       },
       {
        "type": "heightFog",
        "enabled": true,
        "uniforms": {
         "u_density": 0.004,
         "u_heightFalloff": 0.0,
         "u_skyFog": 0.3
        }
       }
      ]
     }
    }
   ]
  },
  {
   "id": 1,
   "name": "Far",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": -60,
       "y": 0,
       "z": 0
      },
      "scale": {
       "x": 0.15,
       "y": 0.15,
       "z": 1
      }
     }
    },
    {
     "type": "MeshRenderer",
     "data": {
      "color": {
       "r": 0.8,
       "g": 0.2,
       "b": 0.2,
       "a": 1
      },
      "layer": 0,
      "enabled": true,
      "opaque": true,
      "mesh": "/scenes/textured-quad.esmesh"
     }
    }
   ]
  },
  {
   "id": 2,
   "name": "Near",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": 60,
       "y": 0,
       "z": 120
      },
      "scale": {
       "x": 0.15,
       "y": 0.15,
       "z": 1
      }
     }
    },
    {
     "type": "MeshRenderer",
     "data": {
      "color": {
       "r": 0.8,
       "g": 0.2,
       "b": 0.2,
       "a": 1
      },
      "layer": 0,
      "enabled": true,
      "opaque": true,
      "mesh": "/scenes/textured-quad.esmesh"
     }
    }
   ]
  },
  {
   "id": 3,
   "name": "Wall",
   "parent": null,
   "children": [],
   "visible": true,
   "components": [
    {
     "type": "Transform",
     "data": {
      "position": {
       "x": 0,
       "y": 0,
       "z": -150
      },
      "scale": {
       "x": 5,
       "y": 5,
       "z": 1
      }
     }
    },
    {
     "type": "MeshRenderer",
     "data": {
      "color": {
       "r": 0.2,
       "g": 0.7,
       "b": 0.3,
       "a": 1
      },
      "layer": 0,
      "enabled": true,
      "opaque": true,
      "mesh": "/scenes/textured-quad.esmesh"
     }
    }
   ]
  }
 ]
}