my favorite GLSL learning channel by far, thx guru
@marcasrealaccount5 жыл бұрын
9:40 not gonna lie, even though it screwed up the circles i still liked the effect.
@lordsqueak4 жыл бұрын
Indeed cool effect. Also the [buy him a beer] pop ,,,lmao
@changemaker97514 жыл бұрын
@@lordsqueak Haha ..He hides these kind of details in his videos as a movie director.Only the man who has divine wisdom can see them :O
@satychary5 жыл бұрын
Excellent way to show 'code -> art'.
@ryanfuxa67385 жыл бұрын
Man this some mind control level stuff right here man.
@BetaTester7045 жыл бұрын
The fact the you say Gif as Jif is unforgivable.
@TheArtofCodeIsCool5 жыл бұрын
You mean unforJifable?
@BetaTester7045 жыл бұрын
@@TheArtofCodeIsCool Possibly.
@MartinToernby5 жыл бұрын
Hurray! I've done a shader without sticking 100% to your approach. This is the first time, I've actually added something intentional and making it work - rather than just enjoying graphical screw-ups. I'll display my utter happiness by posting the entire thing: void mainImage( out vec4 fragColor, in vec2 fragCoord ) { // Normalized pixel coordinates (from 0 to 1) vec2 uv = (fragCoord-0.5*iResolution.xy)/iResolution.y; // Time varying pixel color vec3 col = vec3(0); vec4 mo = iMouse / iResolution.xyxy; vec2 gv = fract(uv * 10.)-.5; vec2 id = floor(uv * 10.); float dm = smoothstep(0.,6.,2./(length(mo.xy - (uv * 0.5) - vec2(.5,.5))*6. ) * 0.5); float m = 0.; for(float y = -1.; y
@TheArtofCodeIsCool5 жыл бұрын
nice one! Share it on the facebook group if you like :)
@prietjepruck2 жыл бұрын
Another great video Martijn. Dank je wel.
@ikesau6 жыл бұрын
super cool. Definitely a fan of these short and sweet effects. They cover a lot of ground.
@xamogxusx6 жыл бұрын
Cheers man! You are great teacher! And that shader looks very cool
@rtcwkillz5 жыл бұрын
Could you do a tutorial explaining each Built-in Functions in glsl?
@davidmurphy5633 жыл бұрын
Sorry, I'm up to 6:25 - shouldn't line 15 be `gv-offs` not `gv+offs` as you put?? It doesn't make a difference with perfect circles but with a non-symmetric shape you'll have the wrong side surely? Maybe I've miscalculated, I'll play around with it this evening. I'm so blown away by your channel btw, this stuff was always a black art and you just make it so clear. Thank you so much buddy.
@gijsb47086 жыл бұрын
Incredible recreation!
@afr655366 жыл бұрын
Thank you for creating this video. It is very informative.
@changemaker97514 жыл бұрын
Anyone who wants to convert radian into degree ,just do this: float radianToDegree = (45 * 3.14 ) / 180; float sine = sin(radianToDegree); float cosine = cos(radianToDegree);
@СергейФёдоров-щ8ш5 жыл бұрын
Nice Shader Coding space FX ) thanx
@JustYesntMan6 жыл бұрын
another great tutorial !
@mkgamesartvisuals2 жыл бұрын
Love your videos, awesome work!!!
@DaveAlexKD6 жыл бұрын
Love your videos man!
@4.0.46 жыл бұрын
This was a very good explanation.
@grodzillaaa6 жыл бұрын
This is so cool, I love it!
@mecdos2 жыл бұрын
i wasn't able to recreate this in Metal. I can't get the circles to animate at different pace.
@DenilsonSa6 жыл бұрын
Feedback: the keyboard noises are painful to hear when using headphones. Otherwise, great content, I learned some stuff from your video!
@lukegilb67836 жыл бұрын
yeah i definitely had to switch to speakers
@dimontools4 жыл бұрын
Great tuttorial. Thank's a lot !
@mrdixioner3 жыл бұрын
Big Thanks!!!
@lumixraku4 жыл бұрын
It is so amazing!
@d74g0n5 жыл бұрын
Do you pronounce it "Jraphic interchange" ? Dinosaur fan stuff?
@nietaki5 жыл бұрын
Hey Martijn, one more question: in line 28 in the final shader you use `smoothstep` where the second argument is smaller than the first argument. If I'm reading the GLSL docs right, the first arg should be smaller than the second one or else the result is undefined. Can you say what result were you aiming for and why it's going to work in the configuration you put in the video? Once again thanks for making these videos, they are incredibly useful and inspiring
@TheArtofCodeIsCool5 жыл бұрын
When you swap the values it goes from high to low, instead of low to high. in other words: smoothstep(high, low, t) = 1 - smoothstep(low, high, t) For some reason this is not in the spec but it works, and everyone is using it.
@nietaki5 жыл бұрын
@@TheArtofCodeIsCool thank you!
@Bubatu76 жыл бұрын
Great video, thank you!
@clearwavepro1005 жыл бұрын
Great video!
@CCV3345 жыл бұрын
Add .5 to id to center the effect e.g. vec2 id = floor(uv)+.5;
@TheArtofCodeIsCool5 жыл бұрын
Good point!
@ferhat32236 жыл бұрын
perfect.
@saege117310 ай бұрын
of course it is tea
@donaldviszneki82516 жыл бұрын
When you were writing your "xor" function it might have been nice if you plotted this function on its own
@TheArtofCodeIsCool6 жыл бұрын
You are right. Maybe in a future video!
@GrinyaPLAY6 жыл бұрын
Thank you! Do you know local or offline version of Shadertoy or alternative?
@TheArtofCodeIsCool6 жыл бұрын
No, but I'm sure there are programs like that. You could also use unity (see my beginners shader tutorial for unity) and convert shaders from shadertoy to unity (I also have a video on that)
@grodzillaaa6 жыл бұрын
During shader battles (showdowns) people use Bonzomatic (github.com/Gargaj/Bonzomatic)
@limbicD6 жыл бұрын
VS Code + shader-toy
@AmanKumar-tu2og5 жыл бұрын
Kodelife
@BriceMarnier5 жыл бұрын
Also found "Shader Editor" on Google Play Store to work on my tablet (or smartphones...)
@filmarto125 жыл бұрын
awesome thx
@MrNixaboo4 жыл бұрын
Thanks!
@sumloser86505 жыл бұрын
what's iResolution... Its coming up as a undeclared variable
@TheArtofCodeIsCool5 жыл бұрын
It shouldn't, are you sure you spelled it right?
@stephaneduhamel77066 жыл бұрын
0.707 is not pi/4 but it's (approximately) sin(pi/4)=cos(pi/4)=inversesqrt(2)
@TheArtofCodeIsCool6 жыл бұрын
Yeah I got my constants mixed up. 0.707 is about 1/sqrt(2) like you mentioned. It does need to be pi/4 though which is about 0.785
@josephkalathil93546 жыл бұрын
Noooiiiiccceee
@frequencymanipulator Жыл бұрын
Ahh, the use of the word 'Interweb' denotes an individual of class and sophistication.
@bhuwansharmaa4 жыл бұрын
buy him a beer! :xd ... lol
@ArthurStammet6 жыл бұрын
...-and another one : www.shadertoy.com/view/WsXXWr using a complex wave for turning on and off many lights
@euglossine_tristanwhitehill6 жыл бұрын
🔥🍄🌳❤️⭐️
@LightManDavid5 жыл бұрын
Wow, I just discovered this channel, my 'watch it later' list just exploded. Nice effect, kind of reminds me to this part of this demo kzbin.info/www/bejne/nIbEqKurp6qEgLc
@LightManDavid5 жыл бұрын
An also this one: kzbin.info/www/bejne/Y4vbgZt6eJKladk also related to the torus video effect ;)
@ruben74205 жыл бұрын
Did he just say JIF .... I swear to jod I am going crazy.
@TheArtofCodeIsCool5 жыл бұрын
I know, what I did was unforJifable.
@shahriyarshahrabi63216 жыл бұрын
hey, wanted to say thanks, used your idea as geometry pattern for my procedural color scheme algorithm www.shadertoy.com/view/3s23D3
@TheArtofCodeIsCool6 жыл бұрын
Very nice!
@Anticitizen6666 жыл бұрын
JIF = Jraphical interchange Format :)
@Tynach6 жыл бұрын
Just like how NASA = National Ahronautics and Space Administration? Acronyms and abbreviations can be pronounced differently than how the letters are used in the words they're derived from. The developers of the .gif standard chose to pronounce it like the peanut butter brand, so it is correct to pronounce it that way.
@TheArtofCodeIsCool6 жыл бұрын
LOL ;)
@Anticitizen6666 жыл бұрын
@@Tynach Thanks Cholin!
@СергейФёдоров-щ8ш5 жыл бұрын
Terminology - weapon of manipulator. Oo
@coleraby5 жыл бұрын
I made use of that pattern here... www.shadertoy.com/view/tdsXWf
@Rend3d2 жыл бұрын
Why did you lie? I know you drank beer. You can't do this job sober. )))