Includes: - Editor project configuration and cache files - Sample scene with example meshes and geometries - Asset files (asteroid, base GLB models, environment map) - Vite/TypeScript configuration for editor preview - Editor script components for game objects 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
527 lines
17 KiB
JSON
527 lines
17 KiB
JSON
{
|
|
"meshes": [
|
|
{
|
|
"name": "Base",
|
|
"id": "df3bdc41-8314-45f8-9add-ccfd1d06451f",
|
|
"uniqueId": 1764786749144,
|
|
"type": "Mesh",
|
|
"position": [
|
|
0,
|
|
-8.583544731140137,
|
|
0
|
|
],
|
|
"rotationQuaternion": [
|
|
0,
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"scaling": [
|
|
33.146690368652344,
|
|
1,
|
|
37.254390716552734
|
|
],
|
|
"localMatrix": [
|
|
1,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"isEnabled": true,
|
|
"isVisible": true,
|
|
"infiniteDistance": false,
|
|
"pickable": true,
|
|
"receiveShadows": true,
|
|
"billboardMode": 0,
|
|
"visibility": 1,
|
|
"alwaysSelectAsActiveMesh": false,
|
|
"checkCollisions": false,
|
|
"ellipsoid": [
|
|
0.5,
|
|
1,
|
|
0.5
|
|
],
|
|
"ellipsoidOffset": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"doNotSyncBoundingInfo": false,
|
|
"isBlocker": false,
|
|
"sideOrientation": 0,
|
|
"isUnIndexed": false,
|
|
"geometryUniqueId": 1764786749146,
|
|
"geometryId": "101bd857-f8e8-4230-a021-5d519fefb26c",
|
|
"subMeshes": null,
|
|
"materialUniqueId": 1764786749147,
|
|
"materialId": "00d2631a-e346-4509-b0bb-64e0467c0622",
|
|
"metadata": {
|
|
"parentId": 1764786749143
|
|
},
|
|
"instances": [],
|
|
"animations": [],
|
|
"ranges": [],
|
|
"layerMask": 268435455,
|
|
"alphaIndex": 1.7976931348623157e+308,
|
|
"hasVertexAlpha": false,
|
|
"overlayAlpha": 0,
|
|
"overlayColor": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"renderOverlay": false,
|
|
"applyFog": true,
|
|
"delayLoadingFile": "assets/example.scene/geometries/101bd857-f8e8-4230-a021-5d519fefb26c.babylonbinarymeshdata",
|
|
"boundingBoxMaximum": [
|
|
1,
|
|
0.7045964002609253,
|
|
1
|
|
],
|
|
"boundingBoxMinimum": [
|
|
-1,
|
|
-2.1139473915100098,
|
|
-1
|
|
],
|
|
"_binaryInfo": {
|
|
"positionsAttrDesc": {
|
|
"count": 264,
|
|
"stride": 3,
|
|
"offset": 0,
|
|
"dataType": 1
|
|
},
|
|
"normalsAttrDesc": {
|
|
"count": 264,
|
|
"stride": 3,
|
|
"offset": 1056,
|
|
"dataType": 1
|
|
},
|
|
"uvsAttrDesc": {
|
|
"count": 176,
|
|
"stride": 2,
|
|
"offset": 2112,
|
|
"dataType": 1
|
|
},
|
|
"indicesAttrDesc": {
|
|
"count": 132,
|
|
"stride": 1,
|
|
"offset": 2816,
|
|
"dataType": 0
|
|
},
|
|
"subMeshesAttrDesc": {
|
|
"count": 1,
|
|
"stride": 5,
|
|
"offset": 3344,
|
|
"dataType": 0
|
|
}
|
|
},
|
|
"positions": null,
|
|
"normals": null,
|
|
"uvs": null,
|
|
"hasUVs": true,
|
|
"indices": null
|
|
}
|
|
],
|
|
"transformNodes": [],
|
|
"cameras": [],
|
|
"lights": [],
|
|
"materials": [
|
|
{
|
|
"tags": null,
|
|
"directIntensity": 1,
|
|
"emissiveIntensity": 1.399999976158142,
|
|
"environmentIntensity": 1,
|
|
"specularIntensity": 1,
|
|
"disableBumpMap": false,
|
|
"albedoTexture": {
|
|
"tags": null,
|
|
"url": "assets/editor-generated_9f6c774a10727dd45e1e2122a14a3957.jpg",
|
|
"uOffset": 0,
|
|
"vOffset": 0,
|
|
"uScale": 1,
|
|
"vScale": -1,
|
|
"uAng": 0,
|
|
"vAng": 0,
|
|
"wAng": 0,
|
|
"uRotationCenter": 0.5,
|
|
"vRotationCenter": 0.5,
|
|
"wRotationCenter": 0.5,
|
|
"homogeneousRotationInUVTransform": false,
|
|
"isBlocking": true,
|
|
"name": "assets/editor-generated_9f6c774a10727dd45e1e2122a14a3957.jpg",
|
|
"metadata": {
|
|
"baseSize": {
|
|
"width": 2048,
|
|
"height": 2048
|
|
}
|
|
},
|
|
"hasAlpha": false,
|
|
"getAlphaFromRGB": false,
|
|
"level": 1,
|
|
"coordinatesIndex": 0,
|
|
"optimizeUVAllocation": true,
|
|
"coordinatesMode": 0,
|
|
"wrapU": 1,
|
|
"wrapV": 1,
|
|
"wrapR": 1,
|
|
"anisotropicFilteringLevel": 4,
|
|
"isCube": false,
|
|
"is3D": false,
|
|
"is2DArray": false,
|
|
"gammaSpace": false,
|
|
"invertZ": false,
|
|
"lodLevelInAlpha": false,
|
|
"lodGenerationOffset": 0,
|
|
"lodGenerationScale": 0,
|
|
"linearSpecularLOD": false,
|
|
"isRenderTarget": false,
|
|
"animations": [],
|
|
"invertY": true,
|
|
"samplingMode": 3,
|
|
"_useSRGBBuffer": false,
|
|
"internalTextureLabel": "/Users/michaelmainguy/WebstormProjects/space-game/gameEditor",
|
|
"noMipmap": false
|
|
},
|
|
"ambientTextureStrength": 1,
|
|
"ambientTextureImpactOnAnalyticalLights": 0,
|
|
"emissiveTexture": {
|
|
"tags": null,
|
|
"url": "assets/editor-generated_9f6c774a10727dd45e1e2122a14a3957.jpg",
|
|
"uOffset": 0,
|
|
"vOffset": 0,
|
|
"uScale": 1,
|
|
"vScale": -1,
|
|
"uAng": 0,
|
|
"vAng": 0,
|
|
"wAng": 0,
|
|
"uRotationCenter": 0.5,
|
|
"vRotationCenter": 0.5,
|
|
"wRotationCenter": 0.5,
|
|
"homogeneousRotationInUVTransform": false,
|
|
"isBlocking": true,
|
|
"name": "assets/editor-generated_9f6c774a10727dd45e1e2122a14a3957.jpg",
|
|
"metadata": {
|
|
"baseSize": {
|
|
"width": 2048,
|
|
"height": 2048
|
|
}
|
|
},
|
|
"hasAlpha": false,
|
|
"getAlphaFromRGB": false,
|
|
"level": 1,
|
|
"coordinatesIndex": 0,
|
|
"optimizeUVAllocation": true,
|
|
"coordinatesMode": 0,
|
|
"wrapU": 1,
|
|
"wrapV": 1,
|
|
"wrapR": 1,
|
|
"anisotropicFilteringLevel": 4,
|
|
"isCube": false,
|
|
"is3D": false,
|
|
"is2DArray": false,
|
|
"gammaSpace": false,
|
|
"invertZ": false,
|
|
"lodLevelInAlpha": false,
|
|
"lodGenerationOffset": 0,
|
|
"lodGenerationScale": 0,
|
|
"linearSpecularLOD": false,
|
|
"isRenderTarget": false,
|
|
"animations": [],
|
|
"invertY": true,
|
|
"samplingMode": 3,
|
|
"_useSRGBBuffer": false,
|
|
"internalTextureLabel": "/Users/michaelmainguy/WebstormProjects/space-game/gameEditor",
|
|
"noMipmap": false
|
|
},
|
|
"metallic": 0,
|
|
"roughness": 0.5,
|
|
"metallicF0Factor": 1,
|
|
"metallicReflectanceColor": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"useOnlyMetallicFromMetallicReflectanceTexture": false,
|
|
"ambient": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"albedo": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"baseWeight": 1,
|
|
"reflectivity": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"reflection": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"emissive": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"microSurface": 1,
|
|
"useLightmapAsShadowmap": false,
|
|
"useAlphaFromAlbedoTexture": false,
|
|
"forceAlphaTest": false,
|
|
"alphaCutOff": 0.4,
|
|
"useSpecularOverAlpha": true,
|
|
"useMicroSurfaceFromReflectivityMapAlpha": false,
|
|
"useRoughnessFromMetallicTextureAlpha": true,
|
|
"useRoughnessFromMetallicTextureGreen": false,
|
|
"useMetallnessFromMetallicTextureBlue": false,
|
|
"useAmbientOcclusionFromMetallicTextureRed": false,
|
|
"useAmbientInGrayScale": false,
|
|
"useAutoMicroSurfaceFromReflectivityMap": false,
|
|
"usePhysicalLightFalloff": true,
|
|
"useGLTFLightFalloff": false,
|
|
"useRadianceOverAlpha": true,
|
|
"useObjectSpaceNormalMap": false,
|
|
"useParallax": false,
|
|
"useParallaxOcclusion": false,
|
|
"parallaxScaleBias": 0.05,
|
|
"disableLighting": false,
|
|
"forceIrradianceInFragment": false,
|
|
"maxSimultaneousLights": 32,
|
|
"invertNormalMapX": false,
|
|
"invertNormalMapY": false,
|
|
"twoSidedLighting": true,
|
|
"useAlphaFresnel": false,
|
|
"useLinearAlphaFresnel": false,
|
|
"forceNormalForward": false,
|
|
"enableSpecularAntiAliasing": true,
|
|
"useHorizonOcclusion": true,
|
|
"useRadianceOcclusion": true,
|
|
"unlit": false,
|
|
"applyDecalMapAfterDetailMap": false,
|
|
"id": "00d2631a-e346-4509-b0bb-64e0467c0622",
|
|
"name": "Material.001",
|
|
"metadata": {},
|
|
"checkReadyOnEveryCall": false,
|
|
"checkReadyOnlyOnce": false,
|
|
"state": "",
|
|
"alpha": 1,
|
|
"backFaceCulling": false,
|
|
"cullBackFaces": true,
|
|
"_alphaMode": [
|
|
2
|
|
],
|
|
"_needDepthPrePass": false,
|
|
"disableDepthWrite": false,
|
|
"disableColorWrite": false,
|
|
"forceDepthWrite": false,
|
|
"depthFunction": 0,
|
|
"separateCullingPass": false,
|
|
"fogEnabled": true,
|
|
"pointSize": 1,
|
|
"zOffset": 0,
|
|
"zOffsetUnits": 0,
|
|
"pointsCloud": false,
|
|
"fillMode": 0,
|
|
"_isVertexOutputInvariant": false,
|
|
"transparencyMode": 0,
|
|
"stencil": {
|
|
"tags": null,
|
|
"func": 519,
|
|
"backFunc": 519,
|
|
"funcRef": 1,
|
|
"funcMask": 255,
|
|
"opStencilFail": 7680,
|
|
"opDepthFail": 7680,
|
|
"opStencilDepthPass": 7681,
|
|
"backOpStencilFail": 7680,
|
|
"backOpDepthFail": 7680,
|
|
"backOpStencilDepthPass": 7681,
|
|
"mask": 255,
|
|
"enabled": false
|
|
},
|
|
"uniqueId": 1764786749147,
|
|
"plugins": {
|
|
"PBRBRDFConfiguration": {
|
|
"tags": null,
|
|
"useEnergyConservation": true,
|
|
"useSmithVisibilityHeightCorrelated": true,
|
|
"useSphericalHarmonics": true,
|
|
"useSpecularGlossinessInputEnergyConservation": true,
|
|
"mixIblRadianceWithIrradiance": true,
|
|
"useLegacySpecularEnergyConservation": true,
|
|
"baseDiffuseModel": 0,
|
|
"dielectricSpecularModel": 0,
|
|
"conductorSpecularModel": 0,
|
|
"name": "PBRBRDF",
|
|
"priority": 90,
|
|
"resolveIncludes": false,
|
|
"registerForExtraEvents": false
|
|
},
|
|
"PBRClearCoatConfiguration": {
|
|
"tags": null,
|
|
"isEnabled": false,
|
|
"intensity": 1,
|
|
"roughness": 0,
|
|
"indexOfRefraction": 1.5,
|
|
"useRoughnessFromMainTexture": true,
|
|
"remapF0OnInterfaceChange": true,
|
|
"isTintEnabled": false,
|
|
"tintColor": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"tintColorAtDistance": 1,
|
|
"tintThickness": 1,
|
|
"name": "PBRClearCoat",
|
|
"priority": 100,
|
|
"resolveIncludes": false,
|
|
"registerForExtraEvents": false
|
|
},
|
|
"PBRIridescenceConfiguration": {
|
|
"tags": null,
|
|
"isEnabled": false,
|
|
"intensity": 1,
|
|
"minimumThickness": 100,
|
|
"maximumThickness": 400,
|
|
"indexOfRefraction": 1.3,
|
|
"name": "PBRIridescence",
|
|
"priority": 110,
|
|
"resolveIncludes": false,
|
|
"registerForExtraEvents": false
|
|
},
|
|
"PBRAnisotropicConfiguration": {
|
|
"tags": null,
|
|
"isEnabled": false,
|
|
"intensity": 1,
|
|
"direction": [
|
|
1,
|
|
0
|
|
],
|
|
"legacy": false,
|
|
"name": "PBRAnisotropic",
|
|
"priority": 110,
|
|
"resolveIncludes": false,
|
|
"registerForExtraEvents": false
|
|
},
|
|
"PBRSheenConfiguration": {
|
|
"tags": null,
|
|
"isEnabled": false,
|
|
"linkSheenWithAlbedo": false,
|
|
"intensity": 1,
|
|
"color": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"useRoughnessFromMainTexture": true,
|
|
"albedoScaling": false,
|
|
"name": "Sheen",
|
|
"priority": 120,
|
|
"resolveIncludes": false,
|
|
"registerForExtraEvents": false
|
|
},
|
|
"PBRSubSurfaceConfiguration": {
|
|
"tags": null,
|
|
"isRefractionEnabled": false,
|
|
"isTranslucencyEnabled": false,
|
|
"isDispersionEnabled": false,
|
|
"isScatteringEnabled": false,
|
|
"_scatteringDiffusionProfileIndex": 0,
|
|
"refractionIntensity": 1,
|
|
"translucencyIntensity": 1,
|
|
"useAlbedoToTintRefraction": false,
|
|
"useAlbedoToTintTranslucency": false,
|
|
"indexOfRefraction": 1.5,
|
|
"_volumeIndexOfRefraction": -1,
|
|
"invertRefractionY": false,
|
|
"linkRefractionWithTransparency": false,
|
|
"minimumThickness": 0,
|
|
"maximumThickness": 1,
|
|
"useThicknessAsDepth": false,
|
|
"tintColor": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"tintColorAtDistance": 1,
|
|
"dispersion": 0,
|
|
"diffusionDistance": [
|
|
1,
|
|
1,
|
|
1
|
|
],
|
|
"useMaskFromThicknessTexture": false,
|
|
"useGltfStyleTextures": true,
|
|
"applyAlbedoAfterSubSurface": false,
|
|
"legacyTranslucency": false,
|
|
"name": "PBRSubSurface",
|
|
"priority": 130,
|
|
"resolveIncludes": false,
|
|
"registerForExtraEvents": true
|
|
},
|
|
"DetailMapConfiguration": {
|
|
"tags": null,
|
|
"diffuseBlendLevel": 1,
|
|
"roughnessBlendLevel": 1,
|
|
"bumpLevel": 1,
|
|
"normalBlendMethod": 0,
|
|
"isEnabled": false,
|
|
"name": "DetailMap",
|
|
"priority": 140,
|
|
"resolveIncludes": false,
|
|
"registerForExtraEvents": false
|
|
}
|
|
},
|
|
"customType": "BABYLON.PBRMaterial"
|
|
}
|
|
],
|
|
"geometries": {
|
|
"boxes": [],
|
|
"spheres": [],
|
|
"cylinders": [],
|
|
"toruses": [],
|
|
"grounds": [],
|
|
"planes": [],
|
|
"torusKnots": [],
|
|
"vertexData": []
|
|
},
|
|
"metadata": {
|
|
"parentId": 1764786749143
|
|
},
|
|
"basePoseMatrix": [
|
|
-0.030168924525439955,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
1,
|
|
0,
|
|
0,
|
|
0,
|
|
0,
|
|
0.026842473618973555,
|
|
0,
|
|
0,
|
|
8.583544731140138,
|
|
0,
|
|
1
|
|
]
|
|
}
|