DTM Trail完成
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user