Lerp is not working
So i have Day/Night cycle (TOD) script and i converted it from javascript to c# using m2h.com now the script works perfetly except lerping skyboxes when the script was in js lerp worked fine but now i don't know what to do so here is part of the script in c# : RenderSettings.skybox=SkyBoxMaterial1; RenderSettings.skybox.SetFloat("_Blend", 0); RenderSettings.skybox.SetFloat("_Blend", (Tod/2)-2); SkyBoxMaterial1.SetColor ("_Tint", Color.Lerp (NightTint, DuskTint, (Tod/2)-2) ); RenderSettings.ambientLight = Color.Lerp (NightAmbientLight, DuskAmbientLight, (Tod/2)-2); RenderSettings.fogColor = Color.Lerp (NightFogColor,DuskFogColor, (Tod/2)-2);
Thanks for any help
Is it between 0 and 1? Could think TOD means TimeOfDay: exp. 1800h
((18/2)-2) = 7 -> wont work with Lerp
Your answer
Follow this Question
Related Questions
Tilting a camera around an object 0 Answers
Acces shader color and lerp 1 Answer
If statement not getting called after Lerping a Scale 1 Answer
Lerp to Gaze Location Smoothing Motion Issues (Cardboard) 0 Answers
Lerp a vector2?,Lerp a Vector2? 0 Answers