Godot 3D Spatial Shaders: Getting Started

  Рет қаралды 35,396

jitspoe

jitspoe

Күн бұрын

Пікірлер: 122
@homelessbag
@homelessbag 2 жыл бұрын
came for the shaders, stayed because of the moustache, and subbed because i learned how to pronounce godot :)
@WuCSquad
@WuCSquad 8 ай бұрын
Love all the different pronunciations of Godot.
@J_A_C023
@J_A_C023 7 ай бұрын
I think you covered every single pronunciation of the engine for us all, thank you :P That was EPIC
@jitspoe
@jitspoe 7 ай бұрын
Nah, still around 60 more to go.
@J_A_C023
@J_A_C023 7 ай бұрын
@@jitspoe true story
@BastiaanOlij
@BastiaanOlij 2 жыл бұрын
Great stuff Jits!!
@MrEliptik
@MrEliptik 2 жыл бұрын
Really cool! Super dynamic and packed with information, awesome!
@akienK
@akienK 2 жыл бұрын
Really nice format, that was really fun and packed with good tips. Goodoo...
@jburtson
@jburtson 2 жыл бұрын
This absolutely made me less afraid of shaders, I’ll definitely be gettin’ silly in Gootdoot
@Quandinis
@Quandinis 2 жыл бұрын
i think my favourite part isn't the knowlage i now have about shaders in godot, but that the pronunciation of godot changes everytime. by far the best injection of humor in a tutorial!
@jitspoe
@jitspoe 2 жыл бұрын
I've discovered at least 64 possible permutations. Should be able to keep this gag going for a lot of tutorials!
@crabsoft
@crabsoft 2 жыл бұрын
Tried a lot of tutorials, this was the first one that didn't abruptly fly off the rails with crazy math. I made a shader. Thanks, yo.
@PhilGorley
@PhilGorley 2 жыл бұрын
In all seriousness, this is a succinct intro to 3D spatial godot shaders. Much of the learnings are transferred to canvas shaders too, so, this tutorial was a tremendous help for getting me to understand shaders. I've kept the tab open to this video for the past two weeks while I've done some shader work. Thanks for the content and cheers!
@aloglo22
@aloglo22 11 ай бұрын
best godot tutorial I've ever seen please keep making these
@Obeah111
@Obeah111 2 жыл бұрын
Great Gerdoot tutorial! I have don't several game jams, and have still been intimidated by shader---this video presents it in a very approachable manner!
@jeremiahlampkey3137
@jeremiahlampkey3137 10 ай бұрын
I googled for godot shader tutorials. Saw one that was 22 mins long and then this one for ~ 7 minutes. Absolutely pleased with how much, how fast, and how concise the information was presented in this video!
@nowherebrain
@nowherebrain 2 жыл бұрын
I love how your pronunciation for godot keeps changing...I get it...greatintro to shaders vid...short, simple and to the point...yet full of info.
@sigterm_
@sigterm_ Жыл бұрын
This was really excellent. The fun step-by-step examples really distilled how to break down the basics for me. Off to experiment!
@the-guy-beyond-the-socket
@the-guy-beyond-the-socket Жыл бұрын
dude your videos are hidden gold.
@jitspoe
@jitspoe Жыл бұрын
Hopefully the gold becomes more discovered in the future! :)
@kitastro
@kitastro Жыл бұрын
saying godot different each time XD
@ступид-й8ъ
@ступид-й8ъ Жыл бұрын
very informative. i like how you made me question my sanity everytime you pronounce godot so that the brain gears dont get rusty
@jitspoe
@jitspoe Жыл бұрын
What? I just said "Godot".
@Gizrah
@Gizrah Жыл бұрын
I haven't heard someone say godot as godot in so many different ways. Thanks for demistifying some of the shader voodoo for me!
@jitspoe
@jitspoe Жыл бұрын
I just called it "Godot".
@_-_o-o_-_
@_-_o-o_-_ Жыл бұрын
@@jitspoe Weird. I always pronounce it "Godot"
@CaptainCarrotzz
@CaptainCarrotzz Жыл бұрын
Best intro to shader video I've seen. Thanks.
@konker4243
@konker4243 3 ай бұрын
Damn, that was actually a fantastic video. Ive been trying to make a grid fade out and I was afraid I would have to resort to shaders but this video gave me the determination to get it done!
@jitspoe
@jitspoe 3 ай бұрын
If it's a simple fade, you can actually adjust the alpha (or maybe it's modulate?) on the material without having to make a custom shader, but learning shaders is a useful skill, so go for it! You can do almost unlimited cool things!
@konker4243
@konker4243 3 ай бұрын
@@jitspoe Sorry I meant I wanted only part of the grid to fade out. Ultimately the goal is to have the grid be stationary and be able to move around a point from which the grid fades out around. (So it looks “endless”) Thanks again!
@wisconsinwintergreen6296
@wisconsinwintergreen6296 8 ай бұрын
Very well done video. It managed to give just the right amount of information in under 7 minutes. Other videos would have spent well over half the length of this video just regurgitating random boilerplate knowledge about shaders that anyone could guess. Much thanks from a beginner and you have earned a subscriber!
@Nickname-lm7ch
@Nickname-lm7ch Жыл бұрын
Thank you man what a cool thing. I am quite keen on the gada engine
@jitspoe
@jitspoe Жыл бұрын
Yeah, gudoot is pretty neat!
@mr._gear
@mr._gear Жыл бұрын
"Scary, black magic and voodoo" was epic😂
@4.0.4
@4.0.4 Жыл бұрын
I was worried this tutorial would be too outdated but it's still valid!
@jitspoe
@jitspoe Жыл бұрын
Fortunately not TOO much has changed regarding shaders between Godot 3 and 4. Godot 4 has a lot of new nice things like includes, defines, and other preprocessor stuff, too!
@Paruthi.618
@Paruthi.618 2 жыл бұрын
one of the best godot shader tutorial
@microdavid7098
@microdavid7098 2 жыл бұрын
jits tutorials? Hype!
@D.E.Nicolas.Goncalves
@D.E.Nicolas.Goncalves Жыл бұрын
You made it simple for me! thanks!
@jitspoe
@jitspoe Жыл бұрын
Glad I could help!
@craniummatter
@craniummatter Жыл бұрын
this video is gold. thanks!
@JulezChilluminati
@JulezChilluminati 2 жыл бұрын
Finally, a godot shader video that makes sense to me! Thank you so much, funny beard man!
@sakari.niittymaa
@sakari.niittymaa 9 ай бұрын
Instant sub after watched this video! Really well explained!
@DelicateTask
@DelicateTask 3 ай бұрын
Ok, mind blown in the first two minutes alone. What I’ve learned is that the only limit is my creativity. Therein lies the problem. I don’t have the knowledge to understand what I can do and therefore my imagination is sadly lacking.
@jitspoe
@jitspoe 3 ай бұрын
It can help to go to sites like shadertoy or follow shader artists to get inspiration for what can be done.
@jeffreystephens2658
@jeffreystephens2658 8 ай бұрын
This video contained the answer I needed. Thank you very much. Liked, subscribed, saved.
@jitspoe
@jitspoe 8 ай бұрын
Awesome! Glad it helped!
@ClokworkGremlin
@ClokworkGremlin Жыл бұрын
One of the things I love about shaders is they're INCREDIBLY powerful for procedural asset creation. Because the shader runs on the GPU, ideally entirely within the span of a single frame, you can set some parameters as Uniforms which the Godot UI will let you play with in the editor and see the results of those tweaks in realtime, instead of having to wait for the CPU to process your changes and send them to the GPU (which can sometimes take a few seconds, especially with very large datasets)
@jitspoe
@jitspoe Жыл бұрын
Material Maker basically takes that to the extreme. 😁
@spimortdev
@spimortdev 2 жыл бұрын
That's awesome! Thanks for that tutorial 🙂
@michaelorlev9925
@michaelorlev9925 Жыл бұрын
Dude, you're like the Ian hubert of Godot..! Just found your channel, subbed liked, and now commented
@jitspoe
@jitspoe Жыл бұрын
Haha, that's the best complement I could receive! That's definitely what I'm going for. Bothers me when people take 10 minutes to explain something that could be done in 15 seconds! Just wish I had the time to make more tutorials.
@sinecure5
@sinecure5 2 жыл бұрын
Great tutorial, thanks for making this!
@fahadhasn
@fahadhasn Жыл бұрын
Gruda, Garuda, Grudo. I am groot. XD Nice Tut Mate
@ruthmoreton6975
@ruthmoreton6975 Жыл бұрын
I'm glad you pronounce it correctly - "Godot" as in the Samuel Becket play "Waiting for Godot" to which the name is a reference ( Developer stated this ) and not "G'doh" as some people pronounce it. Ahh crap. Seriously dude? Gadoot and Go Dot? I will assume you are trolling people and I just fell for it.
@PinguinoSod
@PinguinoSod 3 ай бұрын
Amazing, thank you!!
@Failfer
@Failfer 11 ай бұрын
Really good explanation and I apprecaite the wave thing as I was able to replicate it before but still don't fully understand how and this helped, thank you
@davidmurphy563
@davidmurphy563 2 жыл бұрын
Could I request a further tutorial to get me over the fear of your mustache? ;)) Great little tutorial, thanks!
@crispyghoul
@crispyghoul 2 жыл бұрын
Wow, this was a great tutorial. I could think of a way to use the uv method to make a moving gore texture for creatures in my.project.
@jitspoe
@jitspoe 2 жыл бұрын
You can create a lot of cool effects by simply animating UV's!
@yukku121
@yukku121 3 ай бұрын
You had me at Goduut! 0:21 x)
@Combine7355
@Combine7355 2 жыл бұрын
Goodness gracious... 6:11
@NonUnknownDev
@NonUnknownDev 2 жыл бұрын
what a tutorial bro, what a tutorial.....
@adrinuk_gamedev
@adrinuk_gamedev 2 жыл бұрын
I really liked this video :D Thanks a lot for the help!
@GameFactsSpecial
@GameFactsSpecial Жыл бұрын
thanks even though I'm using godot 4 this was still helpful
@thecringeslayer4897
@thecringeslayer4897 3 ай бұрын
shaders are scary black magic wizardry, we're all just magical
@jitspoe
@jitspoe 3 ай бұрын
Maybe the real wizards were the friends we made along the way.
@herrwoland3500
@herrwoland3500 2 жыл бұрын
Thank you so much for this!
@RhevoRamirez
@RhevoRamirez Ай бұрын
Thanks my friend
@jitspoe
@jitspoe Ай бұрын
You're welcome!
@PenguinMaths
@PenguinMaths Жыл бұрын
perfect tutorial
@mch43856
@mch43856 Жыл бұрын
thank you, amazing!
@everlastingmedia
@everlastingmedia Жыл бұрын
gadoot... stahp it
@JRHainsworth
@JRHainsworth Жыл бұрын
Has the spacialmaterial been replaced with StandardMaterial3D in godot4?
@jitspoe
@jitspoe Жыл бұрын
Yep! The also added another one called ORMMaterial which reads ambient occlusion, roughness, and metallic all packed into a single texture to be more optimal.
@SLSat
@SLSat Жыл бұрын
This was a really helpful
@fahrulrozy7838
@fahrulrozy7838 Жыл бұрын
Shader in godot use glsl or hlsl?
@jitspoe
@jitspoe Жыл бұрын
GLSL, but with a bit of a Godot wrapper so there's some built-in functionality.
@DhararAl-Rasshoud
@DhararAl-Rasshoud Жыл бұрын
You actually spooked me at 6:11 haha
@jitspoe
@jitspoe Жыл бұрын
😆 Forgot I even had that in there.
@perfredelius
@perfredelius 8 ай бұрын
I love the condensed format! The next thing I'd want to learn here is how to bend the mesh along a 3d curve or something like that. I.e. how to use a bit more complex external "non-mesh" data in the shader. And then see how the mesh changes as the curve is interacted with.
@jitspoe
@jitspoe 8 ай бұрын
In the end, it's all math! Just have to figure out what the math is to generate the curve you want. Alternatively, you can actually use an image if you want to do something more elaborate. You can read a texture within the vertex() function and use that to alter the vertex positions. Great for making leaves rustle in the wind and such with a noise texture.
@perfredelius
@perfredelius 8 ай бұрын
​@@jitspoe Ah, yeah that's true. I suppose you only need to send in the control points and then calculate the curve from inside the shader. That's probably how to do it.
@metanoimenos
@metanoimenos Жыл бұрын
waiting for guh-dough
@creationsmarko
@creationsmarko 2 жыл бұрын
Great video but it kills me when he says "Godoot" lmao
@jitspoe
@jitspoe 2 жыл бұрын
RIP
@PaperMouseGames
@PaperMouseGames 10 ай бұрын
This is absolutely fantastic. I wonder if there's any way to create more than 3 color masks though. Rather than using rgb from a texture could you specify certain colors to be identified by the shader and then changed to new colors?
@jitspoe
@jitspoe 10 ай бұрын
Technically you can do 4 with RGBA textures. You could potentially use ranges of colors, like first half of red maps to one color and the second half of red to another, but keep in mind you'll have less precision with this (unless using a high precision image format, but that takes more memory), and you might run into some poor quality or glitches, especially if you're using texture compression.
@PaperMouseGames
@PaperMouseGames 10 ай бұрын
@@jitspoe Thanks much for the reply! I'm working with pixel art textures, so each color is very clearly defined and I think it could work, but what I need to figure out is if there's a way to pick up a texture's individual pixel color in 3D the way you can in 2D, I'll keep experimenting 🤞
@jitspoe
@jitspoe 10 ай бұрын
@@PaperMouseGames Shouldn't be a problem, but keep in mind that, by default, the albedo texture gets converted from sRGB to Linear, then everything gets converted from linear to sRGB back in the end, so you might not get the exact values you expect. You could take the texture value and multiply it by 255 and round it to an integer to pick exact values, though.
@cucubob9535
@cucubob9535 5 ай бұрын
Im getting this error: "Cannot call method 'set_shader_param' on a null value' when i try to change the parameter value.
@jitspoe
@jitspoe 5 ай бұрын
Might be because "onready" was changed to "@onready" in Godot 4. Try adding the @ before it.
@lucazfc
@lucazfc 2 жыл бұрын
Hi. Do you know how to simulate lighting using a spatial shader? For example, f I'm using 'render_mode unshaded' or 'render_mode ambient_light_disabled' and then I want to simulate the effects of a directional light using only the shader. How can I achieve that?
@jitspoe
@jitspoe 2 жыл бұрын
In short, you need to do the dot product of the surface normal with the direction to the light, make sure it's not less than 0 (ex: max(0.0, dot(light_dir, normal)) and multiply that by the albedo to get some super basic lighting. If you want parts of the shader to be lit and other parts unaffected by light, though, you're probably better off not using unshaded and using EMISSION for the parts you don't want impacted by lighting instead.
@ClaudioCavalcanteTonha
@ClaudioCavalcanteTonha Жыл бұрын
Does someone knows the difference set color by using COLOR or ALBEDO?
@jitspoe
@jitspoe Жыл бұрын
COLOR is used for 2D canvas item shaders and can include alpha. ALBEDO is just the diffuse color (lighting and such will be applied if it isn't unshaded).
@ClokworkGremlin
@ClokworkGremlin Жыл бұрын
COLOR is used for Canvas shaders, and Vertex shaders if you want to set the vertex color. ALBEDO is used for Fragment shaders. Basically that's the whole thing, ALBEDO is the pixel color, COLOR is the vertex color. Godot will yell at you if you try to set COLOR in the Fragment shader, so it's not a mistake you're likely to make for long.
@jitspoe
@jitspoe Жыл бұрын
@@ClokworkGremlin Oh, right, forgot about the vertex color!
@Arthur-jg4ji
@Arthur-jg4ji Жыл бұрын
do you know how to have shadow with the shader in 3D ?
@jitspoe
@jitspoe Жыл бұрын
Just don't put "unshaded" in the render_mode and it should have lighting and shadow applied.
@Arthur-jg4ji
@Arthur-jg4ji Жыл бұрын
@@jitspoe thx you for the reply. But i have found a solution with the scatter plugin.
@nyuh
@nyuh 2 жыл бұрын
nice moustache oh and nice vid too i guess :^)
@jitspoe
@jitspoe 2 жыл бұрын
Thanks, I grew it myself!
@x1expert1x
@x1expert1x Жыл бұрын
with the final downfall of Unity at least your channel will get a lot more attention. I am not gonna lie, I loved Unity and spent a lot of time learning it. But I love open source more. Like my dad always says, there's a pony under that pile of sh*t!
@7fantasy7
@7fantasy7 10 ай бұрын
Thank you! This video made me believe, I can do complex shaders one day... After losing confidence from another tutorials
@mineralbrewer2289
@mineralbrewer2289 2 жыл бұрын
is it possible to add shaders to a glb file?
@jitspoe
@jitspoe 2 жыл бұрын
I'm not sure if the glb specification allows for that. I'm pretty sure you can store basic materials in them, but I don't know if you can do any sort of programming with them.
@so_easy23
@so_easy23 Жыл бұрын
epic
@pwnitgames
@pwnitgames 2 ай бұрын
Gadoot, Godah, Gad'oo. Thanks. I hate it! Great tutorial though.
@ChristopherYabsley
@ChristopherYabsley Жыл бұрын
It's pronounced Godot.
@computer9764
@computer9764 2 жыл бұрын
Almost didn't watch because the mustache. You're lucky I did 😉
@jitspoe
@jitspoe 2 жыл бұрын
*Whew* I'd hate to think of what might happen if you didn't.
@decqyd
@decqyd Жыл бұрын
its pronounced godot smh
@jitspoe
@jitspoe Жыл бұрын
That's what I said!
@mrglick5050
@mrglick5050 Жыл бұрын
lmao
@bobsondugnut4179
@bobsondugnut4179 2 жыл бұрын
gadort
@moonlightblue9196
@moonlightblue9196 Жыл бұрын
voodoh lol
@MrDoboz
@MrDoboz Жыл бұрын
it's still black magic. you can make pointless unsensible whacky things in a few minutes, but making anything realistic or actually useful will take a shitton of time and knowledge
@jitspoe
@jitspoe Жыл бұрын
Fortunately, the way Godot shaders are set up with the PBR (physically based rendering), really all you have to worry about is setting things like ALBEDO, ROUGHNESS, METALLIC, etc. It's typically just a matter of scrolling UV's or blending different textures together. You don't have to do all the math to make a realistic looking render. Is there something specific you're struggling with?
@iamcookie1170
@iamcookie1170 3 ай бұрын
this actively made my shader fear worse
Godot Developer Console Addon Tutorial
3:08
jitspoe
Рет қаралды 6 М.
An introduction to Shader Art Coding
22:40
kishimisu
Рет қаралды 1 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Welcome to Shaderland - An introduction to shaders in Godot
1:12:51
How To Shader (Fast) - using Godot Engine
7:10
PlayWithFurcifer
Рет қаралды 345 М.
I Made a Wave Function Collapse Castle Generator in Godot
25:30
RachelfTech
Рет қаралды 79 М.
Making Effects with Godot Visual Shaders
18:15
Daniel Ilett
Рет қаралды 23 М.
Godot Cel-Shading in 5 Mins
4:34
StayAtHomeDev
Рет қаралды 37 М.
I Made My First Game in Godot in 3 Weeks...
26:21
Jack Sather
Рет қаралды 458 М.
5 Blender Tips That Have Saved Me 100+ Hours
9:51
Smeaf
Рет қаралды 394 М.
Godot 4 Shader Tutorial for Absolute Beginners
13:18
Heartbeast
Рет қаралды 45 М.
Making a 3D Pixel Art Shader Effect - Using Godot Engine
9:55
DevPoodle
Рет қаралды 1,9 М.
A new way to generate worlds (stitched WFC)
10:51
Watt
Рет қаралды 548 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН