Beispiel #1
0
    public void UpdateMesh()
    {
        if (meshGenerator == null)
        {
            faceMeshData = new FaceMeshData
            {
                Direction     = Direction,
                Resolution    = planetSettings.MeshResolution,
                Offset        = Offset,
                LevelOfDetail = LevelOfDetail
            };

            meshGenerator = new FaceMeshGenerator(faceMeshData, shapeGenerator);
        }

        meshGenerator.UpdateMesh(Mesh);
    }
 public FaceMeshGenerator(FaceMeshData data, ShapeGenerator shapeGenerator)
 {
     this.data           = data;
     this.shapeGenerator = shapeGenerator;
 }