# How do you fade between two values using geometry nodes?

I have a lot of points on a plane that go from a random rotation to pointing towards a mesh in my animation. The problem is that I want the points to be shown turning instead of an instantaneous switch using the switch node.

I'm using version 3.2.2 and there is no mix node of any sort that I can think of. The math node is so far not helpful.

• okay i will do that. Sep 17, 2023 at 21:52
• Well, Markus has already given you an answer, but just a tip in general: when you say "there is no mix node of any sort", it might help if you just use the Search function in the Geometry Nodes Editor. If you want a mix node of any sort, just enter "mix" in the search field and this would have shown you MixRGB as result. The search function can really help you out sometimes, especially if you do not use it from the Add menu (Shift+A) but directly open the search with F3 which gives even more results. Sep 18, 2023 at 6:00
• I mean i did look up mix and i saw mixrgb but the rgb made me think it would not be helpful Sep 18, 2023 at 21:02

$$a(1-t) + bt$$
It's a weighted average, where $$t = 0.5$$ divides both $$a$$ and $$b$$ by two and adds them together (normal average), and for all $$t$$, the sum of $$t$$ and $$1-t$$ is exactly $$1$$.