21 lines
No EOL
690 B
C#
21 lines
No EOL
690 B
C#
using System.Numerics;
|
|
|
|
namespace LandblockExtraction.AtlasMaker;
|
|
|
|
public class SubTerrain {
|
|
public int terrainIndex { get; set; }
|
|
public float minPitch { get; set; }
|
|
public float maxPitch { get; set; }
|
|
public Vector4 Color { get; set; }
|
|
public Vector4 farColor { get; set; }
|
|
public SubTerrain(int terrainIndex, float minPitch, float maxPitch, Vector4 color, Vector4 farcolor) {
|
|
this.terrainIndex = terrainIndex;
|
|
this.minPitch = minPitch;
|
|
this.maxPitch = maxPitch;
|
|
this.Color = color;
|
|
this.farColor = farcolor;
|
|
}
|
|
public bool MatchesPitch(float pitch) {
|
|
return pitch >= minPitch && pitch <= maxPitch;
|
|
}
|
|
} |