From 3b3b39a72a9fbe50037c458f1a5d7a6cefcab856 Mon Sep 17 00:00:00 2001 From: Cailean Finn Date: Wed, 17 Apr 2024 15:55:00 +0100 Subject: [PATCH] removed debuglog in shader --- Assets/8_Scripts/2_General/DissapearShader.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/Assets/8_Scripts/2_General/DissapearShader.cs b/Assets/8_Scripts/2_General/DissapearShader.cs index afe89e0..d7b8ae6 100644 --- a/Assets/8_Scripts/2_General/DissapearShader.cs +++ b/Assets/8_Scripts/2_General/DissapearShader.cs @@ -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;