Digvijaysinh Gohil
Digvijaysinh Gohil
  • 78
  • 140 875
Godot 4: Outline Post Process Shader
I will show you how to create a post processing shader in Godot Engine to create outlines.
Shader-Lib addon!
godotengine.org/asset-library/asset/2503
Shader-Lib docs!
github.com/DigvijaysinhGohil/Godot-Shader-Lib/blob/main/documentation/Documentation.md
Buy Cosmic roads on steam!
store.steampowered.com/app/2527340/Cosmic_roads/
Consider supporting the channel!
www.youtube.com/@iDigvijaysinhG/join
github.com/sponsors/DigvijaysinhGohil
www.patreon.com/DigvijaysinhG
#godot #shader #tutorial
zhlédnutí: 395

Video

Godot 4: Scene Depth Explained
zhlédnutí 591Před dnem
In this brand new episode of “Game Math Theory” series, I will explain everything you need to know about “Scene Depth”, “Depth Buffer or Z-Buffer” and “Depth Texture” in Godot Engine. Shader-Lib addon! godotengine.org/asset-library/asset/2503 Shader-Lib docs! github.com/DigvijaysinhGohil/Godot-Shader-Lib/blob/main/documentation/Documentation.md Buy Cosmic roads on steam! store.steampowered.com/...
Water Prison Jutsu! Godot Shader Tutorial
zhlédnutí 354Před 14 dny
In the brand new Recreation Series episode, I will show you how to recreate “Water Prison Jutsu” from the Naruto anime in Godot Engine using a shader. Shader-Lib addon! godotengine.org/asset-library/asset/2503 Shader-Lib docs! github.com/DigvijaysinhGohil/Godot-Shader-Lib/blob/main/documentation/Documentation.md Buy Cosmic roads on steam! store.steampowered.com/app/2527340/Cosmic_roads/ Conside...
Create AMAZING Water in Godot Engine - Step-by-Step Tutorial
zhlédnutí 1,1KPřed 21 dnem
In this step-by-step tutorial, we will dive into creating amazing sphere traced water in Godot Engine. Follow along as we explore water shaders in Godot and learn how to implement them in your game projects. Whether you're a beginner or an experienced developer, this tutorial will help you level up your game development skills. Raymarching template shader! www.patreon.com/posts/raymarcher-file-...
Unlock the Power of Gradient Nodes in Godot 4! Quick Tips!
zhlédnutí 421Před měsícem
Learn to use gradient in visual shader in Godot engine just like Unity’s gradient node for shader graph. Shader-Lib addon! godotengine.org/asset-library/asset/2503 Shader-Lib docs! github.com/DigvijaysinhGohil/Godot-Shader-Lib/blob/main/documentation/Documentation.md Buy Cosmic roads on steam! store.steampowered.com/app/2527340/Cosmic_roads/ Consider supporting the channel! www.youtube.com/@iDi...
Master Texturing & Coloring Raymarched Shapes in Godot 4! Godot Tutorial
zhlédnutí 288Před měsícem
I will show you how to setup different material properties such as color, texture etc, for different ray marched shapes. Raymarching is a rendering technique also known as Sphere Tracing! This is a 5th episode in the Raymarching series. Previous episode! czcams.com/video/YM_VOgUGb40/video.html Shader-Lib addon! godotengine.org/asset-library/asset/2503 Shader-Lib docs! github.com/DigvijaysinhGoh...
Raymarching! Why Even Bother? Godot 4! Modelling Techniques.
zhlédnutí 2,5KPřed měsícem
I will show you how to unleash the true power of ray marching. How to create more complex shape using something called ray marching operators! What are those? let’s find out! Previous episode! czcams.com/video/68G3V5Yr8FY/video.html Shader file! www.patreon.com/posts/raymarcher-file-107733006?Link& Shader-Lib addon! godotengine.org/asset-library/asset/2503 Shader-Lib docs! github.com/Digvijaysi...
Godot 4! Shading The Raymarched Shapes Based on Lights!
zhlédnutí 353Před měsícem
In this episode "Ray marching for dummies" Godot tutorial series, I have explained how we can properly shade our ray marched shapes based on lights. I have also covered exterior and interior distances for ray marching to we can shade our complex objects properly. For best experience set the video playback speed to 1.25x! Buy Cosmic roads on steam! store.steampowered.com/app/2527340/Cosmic_roads...
How To Render Basic Shapes! Godot 4! Raymarching!
zhlédnutí 387Před 2 měsíci
I will show you how to plot various SDFs function to render primitive shapes like sphere, cube, capsule, cylinder and a torus for ray marching / sphere tracing shader for Godot 4.2. Buy Cosmic roads on steam! store.steampowered.com/app/2527340/Cosmic_roads/ Previous episode! czcams.com/video/68G3V5Yr8FY/video.html Shader file! www.patreon.com/posts/106506549 Shader-Lib addon! godotengine.org/as...
"Twirl UV" Explained!
zhlédnutí 264Před 2 měsíci
This video is about the workings of "Twirl UV" in shader programming. I have also covered "Swirl UV" as a bonus content. Everything that I have talked in this one is platform independent so it can be applied to any game engines or software that uses shaders like Blender. I have also replicated the effect in Unreal engine 5's Material editor. If you find the video helpful, please consider like, ...
"Rotate UV" Explained!
zhlédnutí 454Před 2 měsíci
This video is about the workings of "Rotate UV" in shader programming. Everything that I have talked in this one is platform independent so it can be applied to any game engines or software that uses shaders like Blender. I have also shown how we can made a custom node in Unreal engine in Material editor. If you find the video helpful, please consider like, share and if you haven't already plea...
Group Shader Uniforms in Godot, Quick Tip!
zhlédnutí 188Před 2 měsíci
I will show you how we can group/categorize shader uniforms aka shader parameters in Godot. The initial idea of this video series is to make CZcams shorts with simple tips and tricks, however I really don't like the format of shorts especially the aspect ratio of 9:16 is not ideal for this kind of video so here we are! If you find the video helpful, please consider like, share and if you haven'...
Realistic water droplets shader in 45 minutes!
zhlédnutí 839Před 2 měsíci
I will show you, how to create a realistic rain drops effect on a glass window using nothing but a single shader in Godot 4.2. Buy Cosmic roads on steam! store.steampowered.com/app/2527340/Cosmic_roads/ Video inspiration! Martin Steinrucken aka The art of code youtube.com/@TheArtofCodeIsCool Ben Cloward youtube.com/@BenCloward Smoothstep function! czcams.com/video/w7c41h1g2_k/video.html Shader ...
"My Hotel" A Unity demo project
zhlédnutí 92Před 3 měsíci
"My Hotel" is a Unity demo project in strategy, simulation and management genres. The source code can be found here github.com/DigvijaysinhGohil/Unity-My-Hotel
Understanding the “Smoothstep” function!
zhlédnutí 958Před 3 měsíci
This video is about the workings of "Smoothstep" function in shader programming. Everything that I have talked in this one is platform independent so it can be applied to any game engines that supports GLSL or HLSL. If you find the video helpful, please consider like, share and if you haven't already please consider subscribing to my channel. It helps a lot. Buy Cosmic roads on steam! store.ste...
"Cosmic roads" out now!!
zhlédnutí 119Před 3 měsíci
"Cosmic roads" out now!!
Shader optimization tips!
zhlédnutí 1,8KPřed 4 měsíci
Shader optimization tips!
Coding a Star Field Sky Shader!
zhlédnutí 1,3KPřed 4 měsíci
Coding a Star Field Sky Shader!
Ray-marching for Dummies!! Introduction! Godot 4!
zhlédnutí 1,2KPřed 4 měsíci
Ray-marching for Dummies!! Introduction! Godot 4!
Chroma key visual shader in Godot 4! Green screen remover!
zhlédnutí 602Před 5 měsíci
Chroma key visual shader in Godot 4! Green screen remover!
RASENSHURIKEN! Visual shader tutorial
zhlédnutí 358Před 6 měsíci
RASENSHURIKEN! Visual shader tutorial
Camera shake in Godot 4 for beginners #howto #godot #godotengine #godottutorial #gdscript
zhlédnutí 467Před 6 měsíci
Camera shake in Godot 4 for beginners #howto #godot #godotengine #godottutorial #gdscript
Fake caustics visual shader! Godot 4 tutorial #howto #godot #godotengine #godottutorial
zhlédnutí 798Před 7 měsíci
Fake caustics visual shader! Godot 4 tutorial #howto #godot #godotengine #godottutorial
Shader-Lib update v2.0.0! Devlog episode 3 #devlog #godot #godotengine
zhlédnutí 291Před 7 měsíci
Shader-Lib update v2.0.0! Devlog episode 3 #devlog #godot #godotengine
Amazing skybox using visual shader in Godot 4 #Godot #godottutorial #howto #shader
zhlédnutí 1,2KPřed 7 měsíci
Amazing skybox using visual shader in Godot 4 #Godot #godottutorial #howto #shader
Shader-Lib update v1.2.0! Devlog episode 2 #devlog #godot #godotengine
zhlédnutí 349Před 7 měsíci
Shader-Lib update v1.2.0! Devlog episode 2 #devlog #godot #godotengine
Ice lake visual shader with Parallax mapping! Godot 4 tutorial #Godot #godottutorial #howto
zhlédnutí 1,6KPřed 7 měsíci
Ice lake visual shader with Parallax mapping! Godot 4 tutorial #Godot #godottutorial #howto
Input remapping! Godot 4 tutorial with GDScripts #Godot #godottutorial #howto
zhlédnutí 266Před 8 měsíci
Input remapping! Godot 4 tutorial with GDScripts #Godot #godottutorial #howto
KAMUI! visual shader tutorial
zhlédnutí 1,6KPřed 8 měsíci
KAMUI! visual shader tutorial
Cosmic Roads Godot Showreel submission 2023!
zhlédnutí 886Před 9 měsíci
Cosmic Roads Godot Showreel submission 2023!

Komentáře

  • @Foxguyanimation
    @Foxguyanimation Před dnem

    Nice tutorial! Very simple and useful. Thx! how to calculate depth differences to make an outline?

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 23 hodinami

      Thanks and for the outlines check out my latest video.

  • @edouardwinder661
    @edouardwinder661 Před dnem

    The Raymarching template shader file linked is not the same anymore that the one used in the tutorial

  • @DarkeyPro
    @DarkeyPro Před dnem

    the depth part at the end was very helpful thinks

  • @anomalyaces9204
    @anomalyaces9204 Před 2 dny

    I was really hoping to see that foam color implementation. Is it simple to add or am I missing something? Great video friend!

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 2 dny

      Yup it is easy enough, just something like ALBEDO = water_color + (foam * foam_color);

    • @anomalyaces9204
      @anomalyaces9204 Před dnem

      @iDigvijaysinhG oh excellent! Still learning shader code and this video was a great. Thanks for the follow up!

  • @Daveea
    @Daveea Před 2 dny

    Thanks bro I just started playing this and that was bugging me

  • @user-ed8ir4mp1y
    @user-ed8ir4mp1y Před 2 dny

    You are a magician! Full of inspiration😂🎉

  • @juanestban
    @juanestban Před 3 dny

    thank man! you are amaizing, i was having troubles with the thickness 'cause I had "0" on the thickness_outline

  • @ano7371
    @ano7371 Před 3 dny

    I just learned about the Unity Graph Shader thanks for making this awesome tutorial

  • @flynsarmy
    @flynsarmy Před 4 dny

    Thanks for the tutorial! A common usecase in third person games is to outline the object your char is looking at. How would you adapt this to only highlight specified objects in your scene?

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 4 dny

      Hey, thanks! And I believe that this approach is not well suited for the said requirement. To highlight specific objects, I would still use my earlier simple outline approach. I have a video about that in Unity but it can easily be converted to use in Godot.

    • @flynsarmy
      @flynsarmy Před 3 dny

      @@iDigvijaysinhG A Godot version would be wonderful!

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 2 dny

      @@flynsarmy It is easy enough. Basically in vertex processor you just do VERTEX * outline_scale. In fragment processor you can apply color. Also make sure you are only rendering the back faces. And apply the outline material onto the "next pass" of the original material.

  • @Infinte_log
    @Infinte_log Před 4 dny

    Good video 🎉.

  • @auroraRealms
    @auroraRealms Před 6 dny

    Welcome aboard. Any time I see C# I become afraid that Microsoft is exercising its ability to bully people into using Microsoft only software. Unity has been bathing in C# software. All I have heard about Unity is the dumpster fire Unity has become. I chose Godot out of the gate, and I really like the Python like syntax. I started attempting to write a game engine in C++, realised that it would take way too long. I tried Python, and realized that would still take to long (less too long than C++) and either way, there was massive challenges around running on different platforms. Once I realized I need to be working in a game engine, Godot was the obvious choice. I hope that Godot can resist the Microsoft push into C#. For any Godot Executives out there. The next time Microsoft makes a major donation and starts pushing its demands - please push back. Tell them that you will be taking a turn into C++.net rather than C#.net if possible. C# is a Java'ish language, which does not make it well suited for game engines. Godot's GdScripts Python'ish syntax is not a real performance booster, either. But Python syntax has a very easy, quick, and inexpensive development cycle. So if performance is going to suffer at least there a strong asset gained. That being said, by being disciplined in your approach, to architecture and programming. And keeping things simple, by using the built in features of Godot; the code ends up compiled in super efficient C++ anyway. All without the burden of C++ programming syntax. I strongly appreciate your expertise in Godot, especially the shaders. I wrote my first Game in Godot 3. I am now working in Godot 4, and Roblox. I have to relearn shaders, for Godot 4, which is not my strong suit. Godot is much easier and more fun to work with, but Roblox has built in product marketing which is crucial to where I am as a game developer.

  • @petersblock
    @petersblock Před 6 dny

    Awesome tutorial!! Earned a sub 😁. Do you think you could do a Buoyancy tutorial in the future using your shader? The tutorials that are currently on CZcams don't seem to work with Godot 4.3... Keep up the good work!

  • @ZhaunVsto
    @ZhaunVsto Před 7 dny

    4 years ago and this is still helpful tyyy

  • @IberianInteractive
    @IberianInteractive Před 8 dny

    doesn't work

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 7 dny

      Could you elaborate on what went wrong exactly?

  • @insidiousmaximus
    @insidiousmaximus Před 8 dny

    Amazing if you live in 1970

  • @tunmixx
    @tunmixx Před 9 dny

    Also be aware of divide operation in shaders, it's very heavy operation for processor. So instead where you can switch it for multiplication for example: instead of dividing by 2, multiply it by 0.5 Also you can chcek your frame time and frame sample data in applications like nvidia's Nsight Graphics and you can also capture the frames from builds too

  • @BushwhackBlue
    @BushwhackBlue Před 10 dny

    0:58 what menu is that?

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 10 dny

      That is the shader editor tab. And I have opened the visual shader in it.

  • @stayathomedev
    @stayathomedev Před 10 dny

    Hey! Came across your video. Thanks for the mention!

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 10 dny

      Hey, I did not expect to get the comment from you, you are the inspiration for me.

    • @stayathomedev
      @stayathomedev Před 9 dny

      @@iDigvijaysinhG keep up the great work 👍

  • @Boildroid
    @Boildroid Před 11 dny

    Thank you.

  • @ayushsidam289
    @ayushsidam289 Před 11 dny

    Bhai audio and video synchronized perfectly 🙂🙌 and thanks for the video.🙏🏻

  • @Infinte_log
    @Infinte_log Před 11 dny

    Thank you for this video ❤.

  • @nullvoid3545
    @nullvoid3545 Před 11 dny

    Wow. This was super informative! Thanks for the visualized math sections, they help me understand things like the matrix values much better.

  • @devcond1198
    @devcond1198 Před 13 dny

    Thank you so much for your tutorials, you are way too underrated

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 13 dny

      I am glad you liked them, and based on your comment I think I am on the right track.

  • @near-js1lf
    @near-js1lf Před 15 dny

    Cool and inspiring

  • @lukdev
    @lukdev Před 16 dny

    awesome work, rlly cool. You guided me into a diff solution to something else. tnks!

  • @bamfyjifu
    @bamfyjifu Před 17 dny

    For those having issues, you might have tried it on a "plane" rather than a "quad" a plan is flat in the y axis so it appears invisible when the shader is applied. A quad does not.

  • @Xcelfamily
    @Xcelfamily Před 24 dny

    Love this tutorial 🖐️🖐️👍👍

  • @WiLDbEAsTGameSHere
    @WiLDbEAsTGameSHere Před 25 dny

    maybe try a trendy cut and run the trimmer (on 0 or 1) on facial hairs (grow beard too) , you will look good. btw awesome tutorial edit: small amount of facial hairs will look good (trimmed to be precise)

    • @psyantologist
      @psyantologist Před 24 dny

      Beard length allocation scales logarithmically with programming expertise while maximum allocated hair length scales exponentially

    • @WiLDbEAsTGameSHere
      @WiLDbEAsTGameSHere Před 24 dny

      @@psyantologist bro 😭

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 23 dny

      @psyantologist

  • @owenlloyd2528
    @owenlloyd2528 Před 25 dny

    Thank you. Also, good to see your face. :)

  • @psyantologist
    @psyantologist Před 25 dny

    neat! good tutorial :)

    • @psyantologist
      @psyantologist Před 25 dny

      I'll have to admit that I already fail at reproducing the sun-like DirectionalLight and getting the WorldEnvironment to look like yours 😅

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 25 dny

      No worries, I have a World environment node in my scene, there you just need to set procedural sky material. There you can play around with colors in sky and ground section and for sun you can tweak sun settings. Then you need a Directional light3d node and set the color you want your Sun to be. Cheers!

    • @psyantologist
      @psyantologist Před 25 dny

      @@iDigvijaysinhG Thank you kindly :)

    • @psyantologist
      @psyantologist Před 25 dny

      @@iDigvijaysinhG Is the child of the Directional light what gives the sun this sphere shape that reflects on the surface of the water?

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 24 dny

      No, there is the "sun" section in the procedural sky material, there you can tweak the settings for sun shape and then the sun will automatically follow the directional light angle. The reflection on water will come from the metallic and roughness values from the shader.

  • @Infinte_log
    @Infinte_log Před 25 dny

    Bro do make a video about depth. By the way nice video

  • @robinj6997
    @robinj6997 Před 25 dny

    Very nice, I learned a ton. I think it would look good on a slanted deck on a ship; change direction and speed based on heave angle, maybe increase droplets size if stagnant (to look like small puddles), and increase dripping speed based on drop size. Loots of cool applications, gonna test around a bit. Maybe a performance version with less operations since it's further away from the eyes. Thank you

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 25 dny

      Somewhat similar effect I observed was in Batman Arkham knight's batmobile in rain.

    • @robinj6997
      @robinj6997 Před 25 dny

      I'm gonna check it out. I think I saw some talk from naughty dog, with the rain drop texture on their clothing, mixing with blood.

  • @robinj6997
    @robinj6997 Před 25 dny

    I love this kind of content, I'm always curious about performance cost

  • @MountainLabsYT
    @MountainLabsYT Před 28 dny

    would this be more preformant than full screen raymarching?

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 28 dny

      Not necessarily, like if I move close enough that my actual box covers the entire screen then at that point it is a full screen shader basically.

    • @MountainLabsYT
      @MountainLabsYT Před 27 dny

      @@iDigvijaysinhG So at worst its just as preformant?

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 27 dny

      @@MountainLabsYT pretty much.

  • @Maya___C
    @Maya___C Před měsícem

    Thank you so much for your super helpful videos, I learned so much! I do have a problem with my Moon/ Day-Night Cycle. Maybe you know how to solve it. I want my night time to be lit by moon light, however since Unity only let's me use one directional light, I wonder how I should light the night scene when I already use a dircetional light for the sun, do you have an idea? :)

    • @iDigvijaysinhG
      @iDigvijaysinhG Před měsícem

      Hey, thank you! You can use multiple directional lights just fine, but I think you need to tweak light settings a bit. Goto Lighting window -> Environment tab in the Sun source you can set none. Now Unity will automatically use the brightest directional light in the scene as the sun source. You can also experiment with environment light source setting. Instead of skybox use gradient or color. This way you have to change the color runtime through script but it is easy enough.

    • @Maya___C
      @Maya___C Před 29 dny

      @@iDigvijaysinhG Wow thank you so much for your in-depth reply! This is really helpful, thank you so much for your fast reply and your amazing videos! Have a nice day!

  • @oidafux
    @oidafux Před měsícem

    Hi Gohil, I see the Shader in the editor window - but not during runtime. What am I doing wrong? Thank you for this great tutorial! When I use the visual-shader it says: Parser Error: Class "VisualShaderNodeProceduralVoronoi" hides a global script class. When I convert visual to script it does not compile. mmh

    • @iDigvijaysinhG
      @iDigvijaysinhG Před měsícem

      Hey Michael, It seems like an issue with Shader-Lib itself (seems like I overcooked this time 😅). If you are on Godot 4.2 try using Shader-Lib v2.2.3 and see if it works or not.

  • @dirkschiller1637
    @dirkschiller1637 Před měsícem

    Can you share the code ?

    • @iDigvijaysinhG
      @iDigvijaysinhG Před měsícem

      Hey, are you having trouble? I mean I haven't used version control for the tutorials because I am stupid and just deleted the shader😅 I will rewrite it and upload it to the patreon (free) but might take some time.

    • @dirkschiller1637
      @dirkschiller1637 Před měsícem

      @@iDigvijaysinhG Hey no worries. Just wanted to save typing. But your tutorial is amazing! Thank you for doing this and sharing!! Two things i see and maybe the first one is not resolvable: 1. When stars are too small they flicker on movements which looks terrible and i believe there is no way to avoid that eg. with antialiasing or similar, right ? 2. It seems Godot automatically updates the Shader in the 3D Viewport even if the Shader is unsaved, that sometimes lead to crashes - i had one when i started to work on the nested for loops and it didn't have data, that moment Godot crashed and i even could not open the Project anymore. i needed to change the file directly in an editor, eg. VSCode and then i could load the Project again. Is there an Option i can set in order to make Godot use Shaders only then when they are saved ?

    • @iDigvijaysinhG
      @iDigvijaysinhG Před měsícem

      @@dirkschiller1637 Thanks and I am glad that you find the tutorial helpful. For the 1st question, we can mitigate the issue by tweaking the star layer and star size parameters. Basically the idea is to prevent the stars from being too small that aliasing becomes an issue. For 2nd question, as far as I know there is no way to prevent the auto updation of the shader, We need to be careful when writing the code that we don't run into an infinite loop situation or it will crash the editor/ entire system in some cases.

    • @ericomfg
      @ericomfg Před 19 dny

      @@iDigvijaysinhG Heyo I joined but not seeing this shader? thanks!

    • @iDigvijaysinhG
      @iDigvijaysinhG Před 18 dny

      @@ericomfg I haven't yet uploaded this one.