Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

268
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!