MENU

Fun & Interesting

An In-Depth look at Lerp, Smoothstep, and Shaping Functions

SimonDev 170,273 lượt xem 2 years ago
Video Not Working? Fix It Now

Exploring some common math that game developers use, let's look at linear interpolation and apply it to everything.

🛒 Recommended books (on Amazon): https://www.amazon.com/hz/wishlist/ls/1IMV0IR3QIZMQ?type=wishlist&tag=simondev01-20&sort=priority&viewType=grid
❤️ Support me on Patreon: https://www.patreon.com/simondevyt
🌍 My Gamedev Courses: https://simondev.teachable.com/

Disclaimer: Commission is earned from qualifying purchases on Amazon links.

Follow me on:
Twitter: https://twitter.com/iced_coffee_dev
Instagram: https://www.instagram.com/beer_and_code/

In this video, I cover lerp, also known as mix in GLSL, a common mathematical function used in game dev. It's extremely versatile, and we'll go through basic uses, as well as some problems and how to overcome them.

Some easing functions to try out:
https://easings.net/
https://iquilezles.org/articles/functions/

Comment