<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/an-in-depth-look-at-lerp-smoothstep-and-shaping-functions-b0i9png04" -->

---
title: An In-Depth look at Lerp, Smoothstep, and Shaping Functions
description: Exploring some common math that game developers use, let's look at linear interpolation and apply it to everything.  🛒 Recommended books (on Amazon):...
canonical: https://daily.dev/posts/an-in-depth-look-at-lerp-smoothstep-and-shaping-functions-b0i9png04
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: An In-Depth look at Lerp, Smoothstep, and Shaping Functions | daily.dev
og:description: Exploring some common math that game developers use, let's look at linear interpolation and apply it to everything.  🛒 Recommended books (on Amazon):...
og:url: https://daily.dev/posts/an-in-depth-look-at-lerp-smoothstep-and-shaping-functions-b0i9png04
og:image: https://api.daily.dev/og/posts/b0I9PNg04.png
og:image:alt: An In-Depth look at Lerp, Smoothstep, and Shaping Functions
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[SimonDev](https://daily.dev/sources/simondev758)** · 8 min read · 0 upvotes · 0 comments

## Summary

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/

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=YJB1QnEmlTs>

---

Tags: [#game-development](https://daily.dev/tags/game-development)

[View this post on daily.dev](https://daily.dev/posts/an-in-depth-look-at-lerp-smoothstep-and-shaping-functions-b0i9png04)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"An In-Depth look at Lerp, Smoothstep, and Shaping Functions","url":"https://daily.dev/posts/an-in-depth-look-at-lerp-smoothstep-and-shaping-functions-b0i9png04","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/an-in-depth-look-at-lerp-smoothstep-and-shaping-functions-b0i9png04"},"datePublished":"2026-02-13T12:34:20.047Z","dateModified":"2026-02-13T14:23:11.226Z","description":"Exploring some common math that game developers use, let's look at linear interpolation and apply it to everything.\n\n🛒 Recommended books (on Amazon):...","image":"https://i.ytimg.com/vi/YJB1QnEmlTs/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/YJB1QnEmlTs/sddefault.jpg","isAccessibleForFree":true,"articleSection":"SimonDev","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"SimonDev","logo":"https://media.daily.dev/image/upload/s--QPCbPzt5--/f_auto,q_auto/v1770986046/logos/simondev758","url":"https://daily.dev/sources/simondev758"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/an-in-depth-look-at-lerp-smoothstep-and-shaping-functions-b0i9png04","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"game-development","timeRequired":"PT8M","video":{"@type":"VideoObject","name":"An In-Depth look at Lerp, Smoothstep, and Shaping Functions","description":"Exploring some common math that game developers use, let's look at linear interpolation and apply it to everything.\n\n🛒 Recommended books (on Amazon):...","thumbnailUrl":"https://i.ytimg.com/vi/YJB1QnEmlTs/sddefault.jpg","uploadDate":"2026-02-13T12:34:20.047Z","duration":"PT8M","url":"https://api.daily.dev/r/b0I9PNg04","embedUrl":"https://www.youtube.com/embed/YJB1QnEmlTs"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"SimonDev","item":"https://daily.dev/sources/simondev758"},{"@type":"ListItem","position":3,"name":"An In-Depth look at Lerp, Smoothstep, and Shaping Functions"}]}
```

