removed debuglog in shader

This commit is contained in:
2024-04-17 15:55:00 +01:00
parent a34c1e2c59
commit 3b3b39a72a

View File

@@ -16,7 +16,6 @@ public class DissapearShader : MonoBehaviour
float value = Mathf.Clamp( Remap(this.transform.position.y, m_HeightThresholdMin, m_HeightThresholdMax, 1, 0), 0, 1 );
float slerpValue = Mathf.Lerp(1, 0, Mathf.SmoothStep(1, 0, value));
m_Material.SetFloat("_DissapearValue", slerpValue);
Debug.Log( slerpValue );
}
public float Remap (float value, float from1, float to1, float from2, float to2) {
return (value - from1) / (to1 - from1) * (to2 - from2) + from2;