Shader Coding: Over the Moon - Part 1

Shader Coding: Over the Moon - Part 1

The Art of Code

4 года назад

38,040 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

bodeman
bodeman - 16.11.2023 13:17

When can you use an if statement in shader programming and when can you not? I thought they where expensive to use.

Ответить
F re do m
F re do m - 24.08.2022 19:32

really like your tutorials! Your explanations are easy to take, and ideas in code are all so brilliant!

Ответить
TheXSpitfire
TheXSpitfire - 10.06.2022 11:21

Best help to get started with shaders. Thank you so much

Ответить
Hitesh Sahu
Hitesh Sahu - 02.08.2021 15:13

void mainImage( out vec4 fragColor, in vec2 fragCoord )
{
// Normalized pixel coordinates (from 0 to 1)
vec2 uv = (fragCoord-.5*iResolution.xy)/iResolution.y;


vec3 col =vec3(0);


float thickness = 1./iResolution.y;

if(abs(uv.x)<thickness) col.g = 1.;
if(abs(uv.y)<thickness) col.r = 1.;


// Output to screen
fragColor = vec4(col,1.0);
}

Ответить
Toca do Anão Comunista
Toca do Anão Comunista - 03.03.2021 22:30

Happy to have found this channel, you explain everything and is really quick on debugging issues on the fly. Thanks for the video and the lesson.

Ответить
ATLAS ua
ATLAS ua - 29.10.2020 05:32

How driwing Line without IF??

Ответить
MrNixaboo
MrNixaboo - 10.08.2020 18:11

Thanks! I learn a lot from every video, little useful tricks, like animating the uv.x with time to have a scrolling effect, or joining sin waves to create cool semi-random ground effect! Awesome work, really appreciate it!

Ответить
Yi Fan Huang
Yi Fan Huang - 29.06.2020 07:25

Thank you for your sharing! Looking forward to buy your books!

Ответить
Edvard Neset
Edvard Neset - 30.05.2020 14:04

Thank you for this, man. A joy to watch! Very inspiring

Ответить
Antoine Fortin
Antoine Fortin - 25.04.2020 08:54

Thanks a lot for this, learned a lot :D

Ответить
andres estevez
andres estevez - 04.03.2020 23:46

a doubt, what programming language is it?

Ответить
Alej M-C
Alej M-C - 02.03.2020 03:34

This is just too good. Loving it... the outcome, the process, the explanation.

Ответить
Syntax
Syntax - 09.01.2020 21:41

Most times I really battle to think in the shader mindset, ironically I write shaders almost daily lol. You are truly an inspiration! Thank you for imparting your knowledge as always, you have helped so many people immensely.

Ответить
Hữu Nguyễn
Hữu Nguyễn - 09.01.2020 15:58

I saw your piece long time ago but had no idea what happened then. Glad I found you now.

Ответить
rast check
rast check - 08.01.2020 19:28

Amazing graphics!! It is enough to follow your 4 video 'shader toy for beginner" to be able to do this or is it at a more advanced level?)

Ответить
Pattech
Pattech - 06.01.2020 21:54

I play piano, and I loved the Music so much.

Ответить
emteiks
emteiks - 05.01.2020 00:13

wow! great work and thanks for sharing. It's really helpful to see the way of thinking behind the code, looking forward to next episodes

Ответить
NameousIncognitus
NameousIncognitus - 03.01.2020 21:41

Thanks, Man! Your videos, as always, are amazing! I made shadows soft and curved with some little tweak :)

Ответить
Rick Beacham
Rick Beacham - 02.01.2020 23:31

Thanks for this! Shader coding is the hardest for me.

Ответить
Alon Regev
Alon Regev - 01.01.2020 16:44

Yes, finally

Ответить
Benjamin Brauer
Benjamin Brauer - 30.12.2019 15:14

What are the practical applications of this?

Ответить
Oliver Morgan
Oliver Morgan - 30.12.2019 08:24

How does the performance of doing this compare to creating textures and blitting them?

Ответить
Miles Chu
Miles Chu - 30.12.2019 06:54

Oh, man, I think You should write a book, that 'll be amazing...

Ответить
Ivan Kramarenko
Ivan Kramarenko - 30.12.2019 03:25

Very cool, thanks for u, this a lot of help me in my of shaders tuition, I like this and need more.

Ответить
Kirill Yerenkov
Kirill Yerenkov - 29.12.2019 23:03

Mad! We were waiting for the Musk's car but this is even more interesting for me.

Ответить
Snake
Snake - 29.12.2019 22:44

this is amazing and very useful

Ответить
Wind Bends Steel
Wind Bends Steel - 29.12.2019 18:45

raytraced graphics are overrated! canopy graphics are much cooler.

Ответить
Ivan Enzhaev
Ivan Enzhaev - 29.12.2019 18:07

Thanks for sharing your knowledge! I will try to export it to WebGL 1.0 and TypeScript.

Ответить
Max Noname
Max Noname - 29.12.2019 16:46

Is there an advantage of fract over mod?

Ответить
jamesfforthemasses
jamesfforthemasses - 29.12.2019 16:11

So glad you show the errors, and the finding of the solutions.
Watching the method to fix stuff is in many ways more illuminating than seeing it right first time.

Ответить
Icaro Amorim
Icaro Amorim - 29.12.2019 15:59

Best notification

Ответить
cqbs
cqbs - 29.12.2019 15:50

Thx for sharing!
./ivar

Ответить
Xavier Richter
Xavier Richter - 29.12.2019 13:10

Really cool as Always ! Continue !

Ответить
Marian Mihailescu
Marian Mihailescu - 29.12.2019 12:23

Can't get enough of you videos, you really know how to explain stuff. Keep up the great work!

Ответить
The Drhax14
The Drhax14 - 29.12.2019 10:58

Absolutely amazing

Ответить
Ferhat Avcı
Ferhat Avcı - 29.12.2019 09:39

thanks great tutorial.

Ответить
realcygnus
realcygnus - 29.12.2019 07:19

super !

Ответить
Alain Barrios
Alain Barrios - 29.12.2019 07:19

magician!

Ответить
Robin Bonhoure
Robin Bonhoure - 29.12.2019 06:51

Awesome as always !

Ответить
Douglas Andreani
Douglas Andreani - 29.12.2019 06:26

very nice effect. congratulations on your work

Ответить