Introduction to Signed Distance Fields

preview_player
Показать описание
In this GLSL shader tutorial, we will go over the basics of Signed Distance Fields (SDFs). We will start by setting up a GLSL shader in VS Code with proper UV coordinates. Then we will draw a circle using the SDF function available on Inigo Quilez’s website. Finally, we will add some visuals to help us understand how the SDF works.

== [ Resources ] ==

== [ Timestamps ] ==
00:00 Intro to SDFs
01:08 GLSL Shader Setup
02:03 UV Coordinates
03:23 Signed Distance Field
04:47 Exponential Shadow
06:04 Sin Waves
07:00 Smoothstep Border

== [ Tags ] ==
#suboptimal #glsl #shaders
Рекомендации по теме
Комментарии
Автор

Great video.
The fact that you had different commented-out lines ready to be uncommented one by one in order visualize the math, helped me quite a lot in grasping the concept.
Thank you very much, Suboptimal!

countessanise
Автор

May be use variable save result abs() function, calculate ony 1 time.

Please show how color versión show from 0:11 to 0:14 of video por favor.

FengXingFengXing
Автор

Thank you very much. The best explanation !!!

ДаниилНосов-хб
Автор

love it! more of shader gooodies needed! :)

emteiks
Автор

This is a pretty high quality tutorial! I'm surprised there aren't any comments yet

janus
Автор

You set the center to 0, 0 and subtract the UV from that? Why?

WomboBraker
Автор

thanks for video, do you know how make dashed outline for rounded rectangle ?

deadbit
Автор

great video dude imma save it and come back

Demixroxic
Автор

hi, how can i debug shaders like you are in visual stuido?

glebaltfromrovia
Автор

Love it, thanks for your great introduction and explanation!
I wonder, can this technique be used on internal corners and edges to calcular a kind of ambient occlusion? Just like the idea of messing with the parameters and seeing what happens!

suvetar
Автор

I still don't understand how the whole screen is updated without a loop or update function.

axMfqTI
Автор

I don't use webGL, but I'm learning openGL and I think GLSL should be the same for both(?) Came from some youtube comment, but this is pretty well made so subbed

Hobbes
Автор

Bro can you teach how we make a perfect game It's Magic Engine? this works in mobile

Shortom_Boy
Автор

+1 I really liked the way you asked for a sub and would like to be asked again :P

Lee-qjhk
Автор

why are you all asking for liking your video at the bery beginning? we dont even know if it is good or bad erh

drendelous