M
M
Mimocodil2021-11-26 17:57:05
Unity
Mimocodil, 2021-11-26 17:57:05

Why does lighting leave stripes on textures?

There are several models, including those assembled from unity primitives. I do a day / night cycle and in the evening such a striped effect appears on the textures (on the screen below). How to fix it?

I turn the sun like this:

void Update() {
  if (isEnabled) {
    timer += Time.deltaTime;
    if (timer >= 1) {
      timer = 0;
      Tick();
      sun.transform.Rotate(0.25f, 0f, 0f);
    }
  }
}


61a0f54c98050251484867.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Ente, 2021-11-28
@Ente

It looks like the texture is tiled in Y, and the texture itself is gradient, hence the effect

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question