How to Use SHADERS in Godot 4 (everything to know)

Поділитися
Вставка
  • Опубліковано 20 чер 2024
  • Shaders are so useful when wanting to create on screen effects like a wave, wind, bounce, etc. Godot shaders aren't the easiest to use and so I wanted to create an everything to know about shaders tutorial to hopefully give a boost to your shaders learning journey! In this tutorial I go over shader basics, to shader examples, to different ways to interact with shaders. I am Hoping this Godot tutorial on shaders is able to help you out!
    Official Shaders Godot Doc: docs.godotengine.org/en/stabl...
    Chapters:
    0:00 Intro
    0:37 Basic Shader Effects - Example 1
    17:22 Enhance Game with Shaders - Example 2
    26:44 Shader Effect by Input - Example 3
    33:03 Main Takeaway + Outro
    Thank you so much for watching, I really hope this video helped.
    if you did enjoy or this video was helpful then all I ask is if you could please subscribe to help out the channel. It means so much and I love your feedback in the comments. I’ll look forward to getting back to you soon! Again thanks so much and I would love to see you again!
    These Tutorials take a lot of time to create and I’m working on becoming a better Teacher and learning how to explain Godot things in a better way, if you’d like to support this journey to expand knowledge and help other game dev’s learn to create their own games then please.. Become a Member! It would mean the world and you’ll help me out so much! Thank you!
    have a great rest of your day and of course be safe :)
    - thanks DevWorm

КОМЕНТАРІ • 45

  • @scotmcpherson
    @scotmcpherson 3 місяці тому +6

    shader knowledge is something I have SORELY lacked. This is a great primer!!!

    • @dev-worm
      @dev-worm  3 місяці тому

      hope it helps!! if you have any questions then please let me know!

  • @spectralo
    @spectralo 3 місяці тому

    Super happy you take my suggestion! Very great video ❤

    • @dev-worm
      @dev-worm  3 місяці тому

      thank you so much for your suggestion!! hope you found it helpful!

  • @melroysanthmayor1713
    @melroysanthmayor1713 3 місяці тому

    Thanks a lot for this shader tutorial, please continue making tutorials. Really helps the game dev community! Rooting for your tutorials dude!🔥

    • @dev-worm
      @dev-worm  3 місяці тому +1

      thanks brother!! means the world to me!

  • @janlaan9602
    @janlaan9602 3 місяці тому +1

    I'm excited for this one!

    • @dev-worm
      @dev-worm  3 місяці тому +1

      hope it helps!

  • @jeffreystephens2658
    @jeffreystephens2658 2 місяці тому

    Excellent starter tutorial! Thank you for sharing.

    • @dev-worm
      @dev-worm  2 місяці тому

      of course anytime! thank you so much! and I am glad it was helpful

  • @jeremiahaemile2008
    @jeremiahaemile2008 3 місяці тому +1

    thanks dude 💗
    i was looking for tutorials about shaders and how to use it
    and you upload one🥰

    • @jeremiahaemile2008
      @jeremiahaemile2008 3 місяці тому

      man you must continue in this series/101/

    • @dev-worm
      @dev-worm  3 місяці тому +1

      Wow!! so happy I could deliver one!! thanks it means the world jeremiah!

  • @user-qq6nv6hy4e
    @user-qq6nv6hy4e Місяць тому

    Thank you, DevWorm! I really resonate with the way you have implemented your teaching style into the tutorials that you have created. They have helped me understand how to create more games with efficiency, not overcomplicate things, and how to implement GDScript into my projects effectively. It really makes a difference in he type of experience a player will have overall. I will definitely recommend your channel to other game developers that can benefit from your content. Have a safe rest of your week!

    • @dev-worm
      @dev-worm  Місяць тому

      Thank you so much for this really wonderful comment!! you have made my week and I really appreciate it!! I am so glad to hear you love the teaching style and I am happy to hear that it was able to help!! thank you so much!! have a wonderful day and of course be safe!

    • @user-qq6nv6hy4e
      @user-qq6nv6hy4e Місяць тому

      You are so very welcome! Thank you for the kind reply. I just wanted to take the time to show my appreciation and recognition for all the awesome hard work you put into making these. I tried finding tutorials that I could utilize, but I didn't really resonate with many of them like I have with yours, because my ADHD would be all over the map per se. With your tutorials, I have had a much easier time focusing on everything. Breaking it down step by step helps me retain the info and correct any mistakes afterwards so there is less errors to fix later on. So thank you again and I'm so happy this made your week and you have made mine as well! Be safe too.

  • @sleepymushroom9403
    @sleepymushroom9403 Місяць тому

    this was a cool tutorial

  • @mediaandme
    @mediaandme 2 місяці тому

    This might be the best shader introduction tutorial that I've seen here. I would love to see more shader tutorials from you. Maybe about what to achieve with noise textures, how blend modes work or what the vortext() and light() functions are. Keep it up!

    • @dev-worm
      @dev-worm  2 місяці тому

      thank you so much, it means the world. I will look into making a more advanced one soon!! thanks!

  • @NoodlepieDevelopments
    @NoodlepieDevelopments 3 місяці тому +2

    Great stuff man.
    Bro could you maybe please try make a merge game tutorial?
    I have been dying to make one, but seen that im a noob in Godot im having quite a bit of trouble and i cant seem to find any tutorials on that subject.
    Please bro

    • @dev-worm
      @dev-worm  3 місяці тому

      Ill look into it! I'm working on a hack'n'slash series now... once thats over in a month then Ill make the merger game!! sorry for the little wait I do apologize.. but in the mean time if you need anything then please let me know!

    • @NoodlepieDevelopments
      @NoodlepieDevelopments 3 місяці тому

      @dev-worm thank you man. I can wait a month.
      Would love to see the hack n slash series.
      If i get stuck with something i will pop you a message.
      Keep up the great work

  • @user-kd6lt3lw4z
    @user-kd6lt3lw4z 3 місяці тому

    Great video, do you know of a way to disable the shader itself? Even when parameters are set to zero or not visible it constantly lags the viewport.

  • @r4kt1ap
    @r4kt1ap 17 днів тому

    I love you bro

    • @dev-worm
      @dev-worm  16 днів тому

      i love you bro thanks!

  • @maty64xd68
    @maty64xd68 3 місяці тому

    You should recreate your grappling hook in Godot 4 it would be very useful. ❤

    • @dev-worm
      @dev-worm  3 місяці тому

      looking into it currently!! saw the other comment you posted!! thank you so much for letting me know!

  • @StepTheGlow
    @StepTheGlow 3 місяці тому +2

    THANKS I SERIOUSLY NEEDED A VIDEO OF SHADER BUT EVERY VIDEO WAS OUTDATED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    • @dev-worm
      @dev-worm  3 місяці тому +1

      so happy I could deliver, if you have any questions then please let me know!

    • @StepTheGlow
      @StepTheGlow 3 місяці тому

      @@dev-worm please add tutorials about platformer enemies with knockback and other things and there's also a certain notification that comes with killing enemies I hope u will feature it too
      (u have enemies but zelda-style not platformer ones)

  • @Roddev776
    @Roddev776 3 місяці тому +1

    How creat light and shadow pixeleted with shader

  • @jasonwilliams8730
    @jasonwilliams8730 3 місяці тому

    👍

  • @owenbyrne3496
    @owenbyrne3496 3 місяці тому

    Hey! I'm using AnimatedSprite2D for my player character and they have a 2 hit combo attack. I want to move from the first animation to the second if they press the attack button a second time but I can't figure out how to do this without using a animation tree meaning I have to restructure all my code. Could you possibly do a video showing how to achieve this using AnimatedSprite2D? I'm having a similar issue with holding attacks until the player releases the key if you could also help with that. Thanks for the great content!

    • @owenbyrne3496
      @owenbyrne3496 3 місяці тому

      I did it!

    • @dev-worm
      @dev-worm  3 місяці тому +1

      aw sorry I am just getting to the comment now!! but I'm so happy to hear you go it!! good work brother!

  • @YGamer8YT
    @YGamer8YT 19 днів тому

    In the game I am making, I have a base enemy scene that all the other enemies inherit from, and on it I want to make it so that the enemies will flash white when you hit them using shaders. But the problem is right now when you hit an enemy, ALL enemies that are on screen flash white. Does anyone know how to fix this? And is this even something I should be using shaders for in the first place?

  • @Tetravalence1
    @Tetravalence1 9 днів тому

    I felt that yawn 32:37

  • @hogan4621
    @hogan4621 3 місяці тому

    Can you make a video about set get ,cus i don't even know the point of them

    • @dev-worm
      @dev-worm  3 місяці тому

      it is basically just a way to change the variable, and a way to get the variable value

    • @Fragrom59
      @Fragrom59 3 місяці тому

      The set is actually nice, it is a function that will be called everytime you affect a value to it.
      That way for example you can check that your variables doesn't exceed a certain value (Example : you don't want your player to have more than 100 health when healing)
      Like Dev-worm said, a Get is just a function that return the variables.
      Hope it helps

  • @MinecraftGamerLR
    @MinecraftGamerLR Місяць тому

    18:39 Just so you know, that whole time, it said "progess," not "progress."

    • @dev-worm
      @dev-worm  Місяць тому

      ahh!! sorry! thanks!

  • @joseph9126
    @joseph9126 26 днів тому

    face reveal when

    • @dev-worm
      @dev-worm  25 днів тому

      im just a worm.. that likes to teach Godot

  • @user-kd6lt3lw4z
    @user-kd6lt3lw4z 3 місяці тому

    Great video, do you know of a way to disable the shader itself? Even when parameters are set to zero or not visible it constantly lags the viewport.