Godot Ocean/Water Shader Showcase

Поделиться
HTML-код
  • Опубликовано: 21 дек 2024
  • Custom Ocean/Water shader written in Godot game engine, Inspired by sea of thieves ocean and I wanted to see how far I get with Godot. I am impressed with the engine so far.

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

  • @Yukiixs
    @Yukiixs 2 месяца назад

    Very cool effect! Would you share it ? I would like to try to modify its code to make it work on sphere / planets ( with a local up vector instead of a global one ) ; did you use the fourier tranform approach with gpu tesselation?

  • @illustratum42
    @illustratum42 2 месяца назад

    can you share your script or project? I'd love to mess with it a bit!

  • @Dragon20C
    @Dragon20C 2 месяца назад +1

    Maybe another way to improve it , is by adding depth so you can see a little on the surface but as deep it gets you lose the transparency.

    • @StylizedSchools
      @StylizedSchools  2 месяца назад +1

      Thanks, it already has that functionality but there is nothing in the scene here for it to fade from so it just looks opaque :)

    • @Dragon20C
      @Dragon20C 2 месяца назад

      @@StylizedSchools ah I see, then it's perfect, how's the performance?

    • @StylizedSchools
      @StylizedSchools  2 месяца назад +1

      @@Dragon20C With just water in scene, mesh 60m x 60m 168,000triangles (resolution is lower further from camera point on mesh) fps is around 500 at fullscreen in editor comparing that with water mesh hidden editor is running at 1100 fps according to the frame time tooltip
      GPU time at 2ms vs 0.9ms hidden.
      I'm not very well versed in optimization so there is probably an explanation but it surprised me that simulating 0 waves and simulating 164 waves resulted in no performance difference :D

    • @Dragon20C
      @Dragon20C 2 месяца назад

      @StylizedSchools I can't remember the algorithm but there is one optimization where in close distance the full detail mesh is being used but as the distance increases the mesh becomes simpler, I think its LOD.

    • @StylizedSchools
      @StylizedSchools  2 месяца назад

      @@Dragon20C Yeah thats basic LOD's. Godot has an auto LOD system but you cant import custom LOD's which is annoying. Can create your own LOD system with a script but I'm not sure how efficient it would be :D

  • @SpaceDorito
    @SpaceDorito 15 дней назад

    Bro dropped 4 amazing tutorials on stylized modeling and disappeared 😭