Mark Sibly 7 лет назад
Родитель
Сommit
c37434a2ed
1 измененных файлов с 134 добавлено и 0 удалено
  1. 134 0
      test-scene.mojo3d

+ 134 - 0
test-scene.mojo3d

@@ -0,0 +1,134 @@
+{
+	"instances":[{
+		"ctor":{
+			"args":[],
+			"decl":"mojo3d.Scene.New",
+			"type":"Void()"
+		},
+		"id":"@0",
+		"state":{
+			"AmbientLight":[0,0.125,0.25,0.25],
+			"FogColor":[0,0.5,1,1],
+			"FogFar":200
+		},
+		"type":"mojo3d.Scene"
+	},{
+		"ctor":{
+			"args":[null],
+			"decl":"mojo3d.Camera.New",
+			"type":"Void(mojo3d.Entity)"
+		},
+		"id":"@1",
+		"state":{
+			"LocalMatrix":[1,0,0,0,1,0,0,0,1,0,2.5,-5],
+			"Visible":true
+		},
+		"type":"mojo3d.Camera"
+	},{
+		"ctor":{
+			"args":["@1"],
+			"decl":"mojo3d.FlyBehaviour.New",
+			"type":"Void(mojo3d.Entity)"
+		},
+		"id":"@2",
+		"state":{
+
+		},
+		"type":"mojo3d.FlyBehaviour"
+	},{
+		"ctor":{
+			"args":[null],
+			"decl":"mojo3d.Light.New",
+			"type":"Void(mojo3d.Entity)"
+		},
+		"id":"@3",
+		"state":{
+			"CastsShadow":true,
+			"LocalMatrix":[0.70710676908493042,0,0.70710676908493042,-0.49999997019767761,0.70710676908493042,0.49999997019767761,-0.49999997019767761,-0.70710676908493042,0.49999997019767761,0,0,0],
+			"Visible":true
+		},
+		"type":"mojo3d.Light"
+	},{
+		"ctor":{
+			"args":[[0.69999998807907104,1,0,1],1,1,false],
+			"decl":"mojo3d.PbrMaterial.New",
+			"type":"Void(std.graphics.Color,Float,Float,Bool)"
+		},
+		"id":"@4",
+		"state":{
+
+		},
+		"type":"mojo3d.PbrMaterial"
+	},{
+		"ctor":{
+			"args":[[-100,-1,-100,100,0,100],1,1,1],
+			"decl":"mojo3d.Mesh.CreateBox",
+			"type":"mojo3d.Mesh(std.geom.Box<monkey.types.Float>,Int,Int,Int)"
+		},
+		"id":"@5",
+		"state":{
+
+		},
+		"type":"mojo3d.Mesh"
+	},{
+		"ctor":{
+			"args":["@5","@4",null],
+			"decl":"mojo3d.Model.New",
+			"type":"Void(mojo3d.Mesh,mojo3d.Material,mojo3d.Entity)"
+		},
+		"id":"@6",
+		"state":{
+			"Material":"@4",
+			"Mesh":"@5",
+			"Visible":true
+		},
+		"type":"mojo3d.Model"
+	},{
+		"ctor":{
+			"args":[[1,0,0,1],0.05000000074505806,0.20000000298023224,false],
+			"decl":"mojo3d.PbrMaterial.New",
+			"type":"Void(std.graphics.Color,Float,Float,Bool)"
+		},
+		"id":"@7",
+		"state":{
+
+		},
+		"type":"mojo3d.PbrMaterial"
+	},{
+		"ctor":{
+			"args":[2,0.5,48,24],
+			"decl":"mojo3d.Mesh.CreateTorus",
+			"type":"mojo3d.Mesh(Float,Float,Int,Int)"
+		},
+		"id":"@8",
+		"state":{
+
+		},
+		"type":"mojo3d.Mesh"
+	},{
+		"ctor":{
+			"args":["@8","@7",null],
+			"decl":"mojo3d.Model.New",
+			"type":"Void(mojo3d.Mesh,mojo3d.Material,mojo3d.Entity)"
+		},
+		"id":"@9",
+		"state":{
+			"LocalMatrix":[1,0,0,0,1,0,0,0,1,0,2.5,0],
+			"Material":"@7",
+			"Mesh":"@8",
+			"Visible":true
+		},
+		"type":"mojo3d.Model"
+	},{
+		"ctor":{
+			"args":["@9"],
+			"decl":"mojo3d.RotateBehaviour.New",
+			"type":"Void(mojo3d.Entity)"
+		},
+		"id":"@10",
+		"state":{
+			"Speed":[0.20000000298023224,0.40000000596046448,0.60000002384185791]
+		},
+		"type":"mojo3d.RotateBehaviour"
+	}]
+}