All about Fog Shader in Godot 4.0

Поделиться
HTML-код
  • Опубликовано: 3 авг 2024
  • In this video I explained about fudemental concept of fog shader in godot and how we can use that
    This was only just one example of what you can do with volumetric fog shader in godot
    I hope you can make other cool stuff with Fog in Godot 4.0
    video about distortion shader:
    • Distortion Shader in G...
    Chapters:
    00:00 - Intro
    00:16 - What is fog shader?
    01:04 - Change fog volume size
    01:55 - Get start with volumetric fog shader
    03:16 - Fog density
    03:41 - Fog color Albedo
    04:09 - SDF Signed distance field
    04:56 - Simple falloff for fog shader
    07:05 - OBJECT_POSITION
    07:20 - WORLD_POSITION
    07:37 - UVW
    08:14 - Sphere fog
    09:21 - Sandstorm Volumetric fog

Комментарии • 42

  • @ShellmanDeluxe
    @ShellmanDeluxe Год назад +10

    Thank you for doing so much about shaders for godot. There could never be enough sources about shaders IMO :)

    • @mohsenzare2511
      @mohsenzare2511  Год назад +3

      Your welcome, I am happy to be able to help

  • @thesynalice
    @thesynalice 6 месяцев назад +3

    The FPS drop from 500 to 200 when you enable Volumetric Fog, Jesus Christ 😢

    • @mohsenzare2511
      @mohsenzare2511  6 месяцев назад

      In the real game you should not bring the resolution of fog so high, unless the performance of this get better, This is just a tutorial about how you can use this shader, and obviously after you wrote your shader you should bring down the resolution of fog

    • @dmas7749
      @dmas7749 4 месяца назад

      all i need is 60 FPS

  • @MarkWallbridge
    @MarkWallbridge 3 месяца назад

    Fantastic! Many thanks 👍👍

  • @Joao-pb4ep
    @Joao-pb4ep 10 месяцев назад +1

    Great video, really informative!

  • @andres_mpr
    @andres_mpr Год назад +1

    This is great, thank you so much!

  • @thygrrr
    @thygrrr 10 месяцев назад +1

    Super good, your knowledge of godot is excellent.

  • @solitary200
    @solitary200 Год назад +2

    Great overview!

  • @GoGameDeveloper
    @GoGameDeveloper Год назад +3

    Looks great!

  • @MokarromHossain
    @MokarromHossain Год назад

    In two word? - Very Nice 👌

  • @AleksandrK51228ruswi
    @AleksandrK51228ruswi Год назад +1

    very helpful big thanks

  • @UhGoomba
    @UhGoomba Год назад +2

    Very nice!

  • @peiyihou8609
    @peiyihou8609 Год назад +2

    good job

  • @dueddel
    @dueddel Год назад +1

    In one word? - Nice. 👍

  • @question_mark
    @question_mark Год назад +3

    thanks =)

  • @semaph0re
    @semaph0re Год назад +1

    good tutorial

  • @da_cat
    @da_cat 9 месяцев назад

    Very good tutorial, nice shader. But im going to stick with the simple vanilla fog material in Godot. I'm using small portions of fog to hide the origin of a river so this would be overkill for me

    • @bam_bino__
      @bam_bino__ Месяц назад

      you'd use particles for that anyways

  • @miusoft
    @miusoft 5 месяцев назад +1

  • @mattseaton5832
    @mattseaton5832 6 месяцев назад +1

    Nice video. Why do you multiply the UV coordinates by noise_scale when sampling the noise texture? Isn't this the same as changing the frequency of the noise texture? Apparently not because the results don't look the same. But I expected them to be the same.

    • @mohsenzare2511
      @mohsenzare2511  6 месяцев назад

      So about your question, no it is not same as changing noise frequency, By chaniging the uv, you are Distorting the the texture that you are sampling, watch my distortion shader: ruclips.net/video/dRu0vIkRLtw/видео.html

    • @mattseaton5832
      @mattseaton5832 6 месяцев назад

      @@mohsenzare2511 I'm not talking about adding noise to the uv. I'm taking only about scaling the uv by a constant

  • @an4ximander
    @an4ximander Год назад

    Volumetric fog has similar effect right? I havent tried yet Godot 4, but I hope volumetric fog has enough options/settings ..so I wont have to get into shaders (haha)

  • @Rogueixpresents
    @Rogueixpresents 10 месяцев назад +1

    what are the GPU/CPU/RAM/VRAM usage for this shader? are they expensive? I just have this weird mental image of godot, using shaders could be slow? thanks in advance!

    • @mohsenzare2511
      @mohsenzare2511  10 месяцев назад

      Using shader by default is not slow, The performance depend on your shader code, If you write a good code it is fast, also if not use them godot will create automatically shaders for you in background

  • @alexeykurilo4381
    @alexeykurilo4381 11 месяцев назад +1

    Hello, is there any way to download the shader?

    • @mohsenzare2511
      @mohsenzare2511  11 месяцев назад +1

      For now no, I will try to put them in Github for later

  • @spirittek
    @spirittek Год назад

    This is not working for me