Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

267
Vistas
THREE.JS displacement map not affecting shadows

I'm struggling with getting the shadows working correctly with a displacement map. I've looked the problem up on Google and as far as I understand, the displacement map distorts the vertices. So in theory there shouldn't be a problem.

However, the displacement map has no effect on the shadows. image of the problem

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Try using a custom depth material on your shadow casting sphere like so:

sphere.customDepthMaterial = new THREE.MeshDepthMaterial( {
    depthPacking: THREE.RGBADepthPacking,
    displacementMap: displacementMap,
    displacementScale: displacementScale,
    displacementBias: displacementBias

});
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda