示例#1
0
 public static SerializableSceneNode RemoveGeometry(this SerializableSceneNode node)
 => new SerializableSceneNode
 {
     Geometry  = -1,
     Transform = node.Transform,
     Instance  = -1,
     Parent    = node.Parent,
 };
示例#2
0
 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);
 }