Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm working on a 3d terrain. I tried out some existing GLSL implementations for bump mapping using normal maps from a Procedural Infinite 3D Cave Generation tutorial.

The actual code that I used is in the Cave3D repository, not the one in the post. Here's their vertex shader and their fragment shader. The textures can be found on the same repository.

Note that this shader uses tri-planar texturing.

The problem is that I'm getting the following artifacts - black spots:

enter image description here

Does anyone have a clue why this is happening?

share|improve this question
From a look at their sample images it might just be by design, and those are little peaks you're seeing the (black) back of. – doppelgreener Aug 20 '12 at 0:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.