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

89
Visualizações
Weakening of the shadow

There is a tree with alpha leaf textures. The falling shadow strongly darkens the leaves "below", which is why the model itself becomes dark.

enter image description here enter image description here

Is there any way to avoid this blackout without affecting the rest of the shadows?
Demo and code in the same place

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

0

There is a shadowMaterial that is invisible but only renders shadow. You can set its opacity to mimic shadow darkness, here is a demonstration:

var planeMaterial = new THREE.ShadowMaterial();
planeMaterial.opacity = 0.5;
var shadowPlane = new THREE.Mesh( geometry, planeMaterial );
shadowPlane.receiveShadow = true;

Drawback: In older releases there has been a shadowDarkness-property that has been removed. Now you need extra geometry and material to emulate what has been a simple property.

about 4 years ago · Juan Pablo Isaza Relatório

0

enter image description here

I created another DirectionLight (slightly less bright than the main one, with a shadow) that only illuminates, on the opposite side from the main one, thereby it highlights the shaded places.

It's a stupid idea, but it helped me.

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