TSL : Signed Distance Fields

Channel:
Subscribers:
24,800
Published on ● Video Link: https://www.youtube.com/watch?v=klTvQXxFHJY



Duration: 0:00
103 views
1


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