mirror of
https://github.com/LazyDuchess/OpenTS2.git
synced 2025-01-22 08:11:47 -05:00
Set road normals
This commit is contained in:
parent
10d4ad5094
commit
ca6f51c493
1 changed files with 2 additions and 1 deletions
|
@ -104,7 +104,8 @@ namespace OpenTS2.Scenes
|
|||
|
||||
roadMesh.SetUVs(0, uvs);
|
||||
// TODO - Make this smoother, maybe generate a low res normal map from the terrain height map or calculate normals ourselves.
|
||||
roadMesh.RecalculateNormals();
|
||||
// roadMesh.RecalculateNormals();
|
||||
roadMesh.SetNormals(new[] { Vector3.up, Vector3.up, Vector3.up, Vector3.up });
|
||||
roadObject.GetComponent<MeshFilter>().sharedMesh = roadMesh;
|
||||
|
||||
if (!_roadMaterialLookup.TryGetValue(roadTextureName, out Material roadMaterial))
|
||||
|
|
Loading…
Reference in a new issue