- Home /
How to lerp smoothly between two numbers?
Hi,
I have a slider that is controlling the colour of a material, I want to be able to smoothly lerp between the values so that the jump is not so harsh, how do I go about doing this?
Comment
Can you clarify what you mean? What jump are you referring to?
Answer by efge · Mar 29, 2011 at 10:51 AM
You could take a look at the reference for Material.color.
There is an example to fade color over a defined duration.
Your answer
Follow this Question
Related Questions
Material doesn't have a color property '_Color' 4 Answers
Changing two different objects renderer colour 1 Answer
Burning Effect Lerp Not werking 2 Answers