Newer
Older
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class BiomeMaster : MonoBehaviour
{
[Header("Biome Parameters")]
[InfoBox("Contains the parameters required for each biome.")]
[Header("Biome Data")]
[InfoBox("Contains the actual biomes. Each biome targets one or more biome " +
"parameters. Every point on the terrain will be assigned differing " +
"proportions of each biome, depending on how close the calculated " +
"parameters are to the target parameter of that biome.")]
public List<BiomeData> datas;
[Header("Debug")]
public int debugSize = 500;
public float debugFrequency = 0.1f;
#region Buttons
[Button("Update Debug")]
private void UpdateDebug()
float x = i * debugFrequency;
float y = j * debugFrequency;
param.DrawDebug(x + mu, y + mu);
mu += debugFrequency / 10;
private void ReseedParameters()
{
foreach (var param in parameters)
{
param.ReseedOctaves();
}
}