public static SerializableSceneNode RemoveGeometry(this SerializableSceneNode node) => new SerializableSceneNode { Geometry = -1, Transform = node.Transform, Instance = -1, Parent = node.Parent, };
public VimSceneNode(VimScene scene, SerializableSceneNode source, int index, Matrix4x4 transform) { _Scene = scene; _Source = source; Id = index; Transform = transform; GeometryIndex = source.Geometry; geometry = scene.Geometries.ElementAtOrDefault(GeometryIndex); }