Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Issue with lighting simple mesh

Discussion in 'General Graphics' started by Hawkadium, Aug 9, 2018.

  1. Hawkadium

    Hawkadium

    Joined:
    Oct 7, 2014
    Posts:
    21
    This is a very simple mesh. One material, one texture. After the model is imported and given its material, it looks fine. However, once I set it a static prefab and start laying them out in my scene, auto generated lighting creates all this "smudging" on my models. This grass should be all one colour. And it's not bleeding from another colour on the texture because the texture is only one solid colour.

    I played around with the normal bias, strength and near plane on my Directional Light with no affect. I am using Soft Shadows, Mode Mixed and Forward Rendering.


     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    5,319
    Mixed Mode means anything flagged as static will be light mapped rather than dynamically shadowed. In that case the bias and soft shadow settings have no affect. This is a problem with your light map UVs on the mesh not being well laid out, and potentially too low res. Do you have Generate Lightmap UVs checked on for that mesh asset?
     
  3. Hawkadium

    Hawkadium

    Joined:
    Oct 7, 2014
    Posts:
    21
    @bgolus No I do not. I turn off everything. I just turned it on and generated the lighting again. Works perfectly, thank you!