DTM Trail完成

This commit is contained in:
SoulliesOfficial
2025-04-20 03:10:41 -04:00
parent 83241a5814
commit 957b1e3702
10 changed files with 595 additions and 58 deletions

View File

@@ -47,6 +47,11 @@ namespace Ichni.Editor
gridMaterial = GetComponent<MeshRenderer>().material;
// 同步网格平面的值到材质(方便 Shader 内部判断)
gridMaterial.SetFloat("_Plane", gridPlane);
float lineWidthOf3840 = 2;
float screenWidth = Screen.width;
float lineWidth = lineWidthOf3840 * (screenWidth / 3840f);
gridMaterial.SetFloat("_LineWidth", lineWidth);
}
void Update()