Exemple #1
0
 public void BeginSimulation()
 {
     ScaledTime.TimeScale               = 1.0f;
     diffusion_handler.SelectedMode     = DiffusionReaction2DFrag.SimulationModes.Coral;
     diffusion_handler.SimulationShader = diffusion_handler.SimulationShaderGame;
     menu_state = State.Game;
     diffusion_handler.InitializeTextures();
     diffusion_handler.DrawCenter();
     nc.SpawnNodes();
 }
Exemple #2
0
    public void UpdateMaterials(int r, int c)
    {
        diffusion_handler._ROWS = r;
        diffusion_handler._COLS = c;

        fungusRenderer.SetTextureResolution(r, c);
        DisplayMaterial.SetInt("_Rows", r);
        DisplayMaterial.SetInt("_Cols", c);
        diffusion_handler.InitializeTextures();
        diffusion_handler.DrawCenter();
    }