Add Normal in vertex. And add light in shader.
This commit is contained in:
parent
8908ef1332
commit
0e96615b32
16 changed files with 221 additions and 85 deletions
15
LandblockExtraction/AtlasMaker/TerrainInfo/SubTerrain.cs
Normal file
15
LandblockExtraction/AtlasMaker/TerrainInfo/SubTerrain.cs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
namespace LandblockExtraction.AtlasMaker;
|
||||
|
||||
public class SubTerrain {
|
||||
public int terrainIndex { get; set; }
|
||||
public float minPitch { get; set; }
|
||||
public float maxPitch { get; set; }
|
||||
public SubTerrain(int terrainIndex, float minPitch, float maxPitch) {
|
||||
this.terrainIndex = terrainIndex;
|
||||
this.minPitch = minPitch;
|
||||
this.maxPitch = maxPitch;
|
||||
}
|
||||
public bool MatchesPitch(float pitch) {
|
||||
return pitch >= minPitch && pitch <= maxPitch;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue