fix(fix-system): 调整热力图温度插值与区间逻辑

This commit is contained in:
2026-04-11 14:44:49 +08:00
parent ef7fc8d697
commit ed5b06b9e8
@@ -178,14 +178,10 @@ public class HeatMapController : MonoBehaviour
public void SetDataToMaterial()
{
if (tempture == 0)
if (tempture >= 0 && tempture <= 1)
{
uftempture = 0.5f;
}
else if (tempture >= 0 && tempture <= 1)
{
uftempture = Mathf.Lerp(2.5f, 3.3f, tempture); // 线性插值
modulesTempture = Mathf.Lerp(1.5f, 1.8f, tempture);
uftempture = Mathf.Lerp(2.0f, 2.8f, tempture); // 线性插值
modulesTempture = Mathf.Lerp(1.2f, 1.6f, tempture);
backtemture = Mathf.Lerp(1.5f, 2.25f, tempture);
}
else if (tempture >= 1 && tempture <= 2)