TSL : Signed Distance Fields
Playlist : • Three.js Shading Language (TSL)
Documentation : https://sbcode.net/tsl/2d-sdf
We have been using SDFs several times throughout the course without really knowing much about them.
In the next few lessons, we will delve much further into SDFs, starting from the basics of using SDFs in 2D scenes and then up to more advanced 3D scenes with camera movement, colouring, shadows and reflections.
What is an SDF?
An SDF is a function that takes a 2D or 3D point as input and returns a scalar distance value.
This distance represents how far the point is from the nearest surface of an object:
If the value is positive, the point is outside the object.
If the value is zero, the point is on the surface.
If the value is negative, the point is inside the object.
#three
#threejs
#tsl
#ThreejsShadingLanguage
#ThreeShaderLanguage
#SignedDistanceFields
#sdf
#sdfdrawing
Other Videos By SBCODE
2025-03-18 | Learn Threejs Shading Language and Signed Distance Fields |
2025-03-03 | Learn Threejs Shading Language and Signed Distance Fields |
2025-03-02 | #lamb #newborn Not going to make it :-( |
2025-03-02 | #lamb #newborn A minute after being born. |
2025-03-01 | #sundial |
2025-02-28 | TSL : Getting Started |
2025-02-23 | #horizonSails #stackpack #sailing |
2025-02-22 | TSL : Raymarching |
2025-02-20 | TSL : Colouring SDFs |
2025-02-19 | TSL : Distance Lines |
2025-02-18 | TSL : Signed Distance Fields |
2025-02-17 | #ScratchedWoodenFloor |
2025-02-15 | #jammedFurler |
2025-02-14 | TSL : Uniform and UniformArray |
2025-02-13 | #jammedFurler #thamesEstuary |
2025-02-13 | TSL : Lines - Part 2 |
2025-02-13 | TSL : Lines - Part 1 |
2025-02-12 | #threeshaderlanguage #tsl #threejs |
2025-02-11 | Three Shader Language Patterns |
2025-02-10 | TSL : PositionLocal |
2025-02-10 | TSL : What Do We Have |