Godot 4: How to add a 2D fog layer to your game (tutorial)

Поділитися
Вставка
  • Опубліковано 7 жов 2024

КОМЕНТАРІ • 23

  • @spectre.garden
    @spectre.garden 7 місяців тому +1

    This looks fantastic. Thanks for walking through it.

  • @mohsenzare2511
    @mohsenzare2511 7 місяців тому +1

    Good tutorial, this can also be applied in 3D

  • @breakfastgun
    @breakfastgun 6 місяців тому +1

    This looks really nice. How did you hook up fog_fade to the location_fade?

    • @FencerDevLog
      @FencerDevLog  6 місяців тому +2

      Thanks! I believe it's done in another part of the project by this line:
      RenderingServer.global_shader_parameter_set("location_fade", fog_fade)

  • @phscful
    @phscful 7 місяців тому +1

    Great tutorial, however when I tried to apply the same effect options like normalized and seamless doesn't show on TextureRect. Also using Godot 4.2.1

    • @phscful
      @phscful 7 місяців тому +1

      Don't mind me, figured it out. Thanks so much!

    • @FencerDevLog
      @FencerDevLog  7 місяців тому +2

      @@phscful Great! And thanks for watching. 😎

  • @eymuro
    @eymuro 7 місяців тому +1

    Sorry im newbie and it says; global uniform location_fade does not exist. Create it in project settings...

    • @FencerDevLog
      @FencerDevLog  7 місяців тому +1

      This is just a specific thing in our game. If you use the fog on just a one place, you can remove the keyword "global". As for global uniform, please check out this video: ua-cam.com/video/kn8yOGEvCo0/v-deo.html

  • @olan-richman
    @olan-richman 6 місяців тому

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

    Hi, good tutorial, where can I get the source code?

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

      Thanks! I will add it to my Patreon soon.

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

      www.patreon.com/posts/multi-layered-110221783

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

      @@FencerDevLog thanks

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

      @@FencerDevLog can you please add the image you used as texture? thanks in advance

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

      @@DonceacVitalie The image is just a noise texture generated by Godot. Or do you mean the background with the forest? That's a screenshot from our game and can be replaced by any other image.

  • @autumnthomas970
    @autumnthomas970 7 місяців тому

    *Promo SM*

    • @FencerDevLog
      @FencerDevLog  7 місяців тому

      ?

    • @breakfastgun
      @breakfastgun 6 місяців тому

      @@FencerDevLog That's a spam bot. Just report it...