All about Fog Shader in Godot 4.0

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ธ.ค. 2024

ความคิดเห็น • 46

  • @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

  • @ilyamiller4131
    @ilyamiller4131 23 วันที่ผ่านมา +1

    Amazing! Definitely the best video on fog I've seen for godot. Thank you so much for sharing

  • @HevonCZR
    @HevonCZR 4 หลายเดือนก่อน +1

    3:40 could you elaborate on this further more? How to get this negative space inside a fogvolume, just put negative density and thats it? using the same shader? how so?

  • @peiyihou8609
    @peiyihou8609 ปีที่แล้ว +2

    good job

  • @thygrrr
    @thygrrr ปีที่แล้ว +1

    Super good, your knowledge of godot is excellent.

  • @GoGameDeveloper
    @GoGameDeveloper ปีที่แล้ว +3

    Looks great!

  • @solitary200
    @solitary200 ปีที่แล้ว +2

    Great overview!

  • @fabians7807
    @fabians7807 หลายเดือนก่อน +2

    Hi, thanks for your video. With Godot 4.3 fog is not moving over time. Do you have any ideas? Thanks

  • @Joao-pb4ep
    @Joao-pb4ep ปีที่แล้ว +1

    Great video, really informative!

  • @andres_mpr
    @andres_mpr ปีที่แล้ว +1

    This is great, thank you so much!

  • @AleksandrK51228ruswi
    @AleksandrK51228ruswi ปีที่แล้ว +1

    very helpful big thanks

  • @mattseaton5832
    @mattseaton5832 11 หลายเดือนก่อน +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  11 หลายเดือนก่อน

      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: th-cam.com/video/dRu0vIkRLtw/w-d-xo.html

    • @mattseaton5832
      @mattseaton5832 11 หลายเดือนก่อน

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

  • @MokarromHossain
    @MokarromHossain ปีที่แล้ว

    In two word? - Very Nice 👌

  • @UhGoomba
    @UhGoomba ปีที่แล้ว +2

    Very nice!

  • @da_cat
    @da_cat ปีที่แล้ว

    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__ 6 หลายเดือนก่อน

      you'd use particles for that anyways

  • @question_mark
    @question_mark ปีที่แล้ว +3

    thanks =)

  • @thesynalice
    @thesynalice 11 หลายเดือนก่อน +3

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

    • @mohsenzare2511
      @mohsenzare2511  11 หลายเดือนก่อน +1

      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 9 หลายเดือนก่อน

      all i need is 60 FPS

    • @trickster721
      @trickster721 หลายเดือนก่อน

      It's important to remember that framerate is a curve, so the "number of frames lost" isn't meaningful, it's better to think in actual time. Turning on volumetric fog added about 3 milliseconds to the frame. That brings 500fps down to 300fps, but that same amount of added work would only bring 100fps down to 77fps.

  • @dueddel
    @dueddel ปีที่แล้ว +1

    In one word? - Nice. 👍

  • @semaph0re
    @semaph0re ปีที่แล้ว +1

    good tutorial

  • @Rogueixpresents
    @Rogueixpresents ปีที่แล้ว +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  ปีที่แล้ว

      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 ปีที่แล้ว +1

    Hello, is there any way to download the shader?

    • @mohsenzare2511
      @mohsenzare2511  ปีที่แล้ว +1

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

  • @spirittek
    @spirittek ปีที่แล้ว

    This is not working for me

  • @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)

  • @miusoft
    @miusoft 10 หลายเดือนก่อน +1

  • @MarkWallbridge
    @MarkWallbridge 8 หลายเดือนก่อน

    Fantastic! Many thanks 👍👍