M
M
Mimocodil2022-01-27 22:07:00
Unity
Mimocodil, 2022-01-27 22:07:00

How to make a parallax of the starry sky without pictures?

The game is a space flying game with a top view. Background is the background color of the camera, but it looks empty. I made several transparent pictures with white stars of different sizes and brightness, after which I moved them in the opposite direction from the movement of the camera, and the speed depended on the depth of the layer. So everything works, but I want to try to draw all this only with code.

Is it possible to do this with code without pictures? And if so, how?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2022-01-28
@rPman

google: unity shader skybox
can also be called procedural space
here like this, either you throw a finished picture, or draw literally objects or shaders

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question