Комментарии:
When can you use an if statement in shader programming and when can you not? I thought they where expensive to use.
Ответитьreally like your tutorials! Your explanations are easy to take, and ideas in code are all so brilliant!
ОтветитьBest help to get started with shaders. Thank you so much
Ответить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);
}
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.
ОтветитьHow driwing Line without IF??
Ответить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!
ОтветитьThank you for your sharing! Looking forward to buy your books!
ОтветитьThank you for this, man. A joy to watch! Very inspiring
ОтветитьThanks a lot for this, learned a lot :D
Ответитьa doubt, what programming language is it?
ОтветитьThis is just too good. Loving it... the outcome, the process, the explanation.
Ответить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.
ОтветитьI saw your piece long time ago but had no idea what happened then. Glad I found you now.
Ответить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?)
ОтветитьI play piano, and I loved the Music so much.
Ответить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
ОтветитьThanks, Man! Your videos, as always, are amazing! I made shadows soft and curved with some little tweak :)
ОтветитьThanks for this! Shader coding is the hardest for me.
ОтветитьYes, finally
ОтветитьWhat are the practical applications of this?
ОтветитьHow does the performance of doing this compare to creating textures and blitting them?
ОтветитьOh, man, I think You should write a book, that 'll be amazing...
ОтветитьVery cool, thanks for u, this a lot of help me in my of shaders tuition, I like this and need more.
ОтветитьMad! We were waiting for the Musk's car but this is even more interesting for me.
Ответитьthis is amazing and very useful
Ответитьraytraced graphics are overrated! canopy graphics are much cooler.
ОтветитьThanks for sharing your knowledge! I will try to export it to WebGL 1.0 and TypeScript.
ОтветитьIs there an advantage of fract over mod?
Ответить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.
Best notification
ОтветитьThx for sharing!
./ivar
Really cool as Always ! Continue !
ОтветитьCan't get enough of you videos, you really know how to explain stuff. Keep up the great work!
ОтветитьAbsolutely amazing
Ответитьthanks great tutorial.
Ответитьsuper !
Ответитьmagician!
ОтветитьAwesome as always !
Ответитьvery nice effect. congratulations on your work
Ответить