| 1234567891011121314151617181920212223242526 |
- using UnityEngine;
- using System.Collections;
- [CreateAssetMenu()]
- public class TerrainData : UpdatableData {
-
- public float uniformScale = 2.5f;
- public bool useFlatShading;
- public bool useFalloff;
- public float meshHeightMultiplier;
- public AnimationCurve meshHeightCurve;
- public float minHeight {
- get {
- return uniformScale * meshHeightMultiplier * meshHeightCurve.Evaluate (0);
- }
- }
- public float maxHeight {
- get {
- return uniformScale * meshHeightMultiplier * meshHeightCurve.Evaluate (1);
- }
- }
- }
|