Search Unity

  1. New Unity Live Help updates. Check them out here!

    Dismiss Notice

Shading issues with procedural landmass generation

Discussion in 'World Building' started by ElysianOne, Apr 21, 2018.

  1. ElysianOne

    ElysianOne

    Joined:
    Aug 16, 2017
    Posts:
    7
    Hey guys! Experimenting with using perlin noise to generate a landmass. I've just been fiddling about trying to get collision to work, but after adding a collider, my landmass now looks like this:
    upload_2018-4-21_14-14-37.png
    With no texture,
    and this:
    upload_2018-4-21_14-15-5.png
    With a texture. As you can see, it's as if lighting and shading are having no effect on it whatsoever, and it's really strange. The shader of my material is set to standard, and even removing the collider has no effect on this strange behaviour. Increasing/decreasing my directional light intensity has no effect, though oddly it seems to light up the scene more brightly when pointed slightly left than it does when pointed slightly right. No clue what's going on here, but clearly I'm having some shading issues. Any ideas?
    Many thanks.
     
  2. ElysianOne

    ElysianOne

    Joined:
    Aug 16, 2017
    Posts:
    7
    Nevermind! I had to recalculate the mesh normals on generation. My bad, all fixed now.
     
    Kurt-Dekker likes this.
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    5,497
unityunity