Skip to content

Commit

Permalink
Scene rebuilder wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dalkia committed Dec 18, 2023
1 parent 3c49f6c commit 587b3fb
Show file tree
Hide file tree
Showing 21 changed files with 14,266 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist
dclMesh = new Cylinder();
serializer.Populate(jsonObject["cylinder"].CreateReader(), dclMesh);
break;
case MeshConstants.Plane:
dclMesh = new Plane();
serializer.Populate(jsonObject["plane"].CreateReader(), dclMesh);
break;
case MeshConstants.Sphere:
dclMesh = new Sphere();
serializer.Populate(jsonObject["sphere"].CreateReader(), dclMesh);
break;
}

return dclMesh;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public class MeshConstants
{
public const string Box = "box";
public const string Cylinder = "cylinder";
public const string Sphere = "sphere";
public const string Plane = "plane";

}

public class MaterialConstants
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"scene-coords": [-129,-77],
"scene-coords": [
-129,
-77
],
"rendereable-entities": [
{
"entityId": 512,
Expand Down Expand Up @@ -146,5 +149,5 @@
}
}
}
]
]
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 587b3fb

Please sign in to comment.