Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

360
Visualizações
Three.js - Shadow.bias fixes shadow static, but moves the shadows. How to fix?

I have a scene with a light casting shadows. It does well, except from the static from the shadow. Like so:

enter image description here

When I add a simple light.shadow.bias = -0.005;:

enter image description here

It fixes the issue, but causes another. As you can see from the building's shadow, the shadows are completely out of place! Is there a way to fix this, or an alternative method of getting rid of the shadow static?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You should be able to mitigate the issue by using the new normalBiasBias property. From the documentation:

Defines how much the position used to query the shadow map is offset along the object normal. The default is 0. Increasing this value can be used to reduce shadow acne especially in large scenes where light shines onto geometry at a shallow angle. The cost is that shadows may appear distorted.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda