clayjohn / godot-volumetric-cloud-demo

A demo implementing one way of drawing volumetric cloudscapes in Godot sky shaders
MIT License
306 stars 23 forks source link

Clouds are pixelated #12

Open CrayolaEater opened 7 months ago

CrayolaEater commented 7 months ago

Idk if I'm missing something but for me clouds margin looks pixelated. image image

I considered using a higher resolution noise texture but I have no idea how you generated those. Can you give some help?

clayjohn commented 7 months ago

There are a couple of things that could cause that.

  1. The clouds are rendered at half resolution for performance reasons, you could try using full resolution
  2. These could indeed be caused by the noise textures. Before creating higher res versions (you shouldn't need higher res) you should try re-importing the textures with compression disabled
  3. You might have downloaded this before https://github.com/clayjohn/godot-volumetric-cloud-demo/pull/11 which fixed a very similar issue
  4. There might be too few samples for your use-case, you can try increasing the number of steps

I wrote a custom cpp script to generate the noise textures years ago, I no longer have the original code accessible. But you could generate your own using https://github.com/sebh/TileableVolumeNoise which should provide pretty similar results