Happy holiday to my friends, acquaintances and the readers of my blog!
And I present to you an update for Defender of the Fatherland Day.

This time it's the surface of planets. The procedural planets and their surface are created without textures. You might object right away: how?! The answer is very simple: in reality, textures are not used to display mountains at all. The color of every pixel of the mountains is calculated at the moment it is drawn to the screen, at the given coordinates. But this approach requires a far from weak graphics card, because the surface is rebuilt every frame. And the higher the screen resolution, the higher the requirements. But that's not all: without textures, creating a realistic planet surface becomes more difficult, because we have to write formulas for every type of surface (grass, rocks, snow, water, earth). That is hard and takes a lot of time. So what are the advantages and disadvantages in the end?

Advantages of planets without textures:
- No memory is needed to store texture chunks
- A unique surface look
- The ability to set different material properties
- Real-time surface changes (lava, grass growth, icing, etc.)
There are disadvantages too:
- A good graphics card is required
- Creating new surface types is highly complex (rocks, sand, grass)
- Constant pixel calculation with no possibility of caching
Graphics cards keep getting better and faster, so this (hybrid) method will be in demand in the near future.

I deliberately limited the planet size to 13 km, removed the code for full-size planets and left only one planet shape. I also removed rocks and grass. And so that the planet would render for more people, I limited the number of noise passes to four. Of course, the image quality dropped sharply, but it lets more people look at the planet comfortably.
Why?!
Until the game is released, it will stay in this cut-down form. I have already run into my code migrating into other projects more than once (even without crediting the author or linking to where they swiped it from).
The update is available at:
play.dg8.ru
Controls in “Realistic Planet” mode:
W,A,S,D - move the camera
Q,E - tilt the camera
Left mouse button on the screen and drag - rotate the camera