Exemplo n.º 1
0
 public void generateVoxels(Vox.VoxelEditor editor)
 {
     editor.wipe();
     generationParameters.setTo(editor);
     editor.initialize();
     switch (selectedGenerationMode) {
     case 0:
         editor.setToHeight();
         break;
     case 1:
         editor.setToSphere();
         break;
     case 2:
         editor.setToProcedural();
         break;
     case 3:
         editor.heightmaps = generationParameters.heightmaps;
         editor.heightmapSubstances = generationParameters.heightmapSubstances;
         editor.setToHeightmap();
         break;
     }
     editor.generateRenderers();
     setupGeneration = false;
 }